View Single Post
Old 30 Dec 2019, 02:15 AM   #8
SideshowBob
Essential Contributor
 
Join Date: Jan 2017
Posts: 280
Quote:
Originally Posted by JamesHenderson View Post
You need two rules:

Any "To"/"CC"/"BCC" email-address is alias@domain.de and no "To"/"CC"/"BCC" email-address is main@domain.de> move the message to subfolder 'aliasfolder".

Any "To"/"CC"/"BCC" email-address is alias@domain.de and any "To"/"CC"/"BCC" email-address is main@domain.de> copy the message to subfolder 'aliasfolder".
Sieve doesn't really have a distinction between moving and copying. IMO that terminology is more confusing than useful. What :copy does is prevent the action from cancelling the implicit keep which is assumed if you don't tell sieve what to do with an email.

Using :copy doesn't guarantee that a copy goes into the Inbox (or alternate default folder), but an explicit "keep;" after the fileinto does.
SideshowBob is offline   Reply With Quote