Visible-light-promoted synthesis of secondary and tertiary thiocarbamates from thiosulfonates and N-substituted formamides.