View Single Post
Old 31 Dec 2019, 01:09 AM   #17
SideshowBob
Essential Contributor
 
Join Date: Jan 2017
Posts: 278
Quote:
Originally Posted by JamesHenderson View Post
Can you expand on this as I didn’t fully understand it; why would redirect make fileinto :copy not work?
Because a redirect, by default, cancels the implicit keep.

:copy is misleading, it would have been more accurate to call it :withoutsideeffect.

One of the most serious problems with procmail was that you have to tell it what to do with each email or it will discard it by default. Sieve addressed this with the implicit keep. However if you send an email somewhere outside your normal workflow, when you need to read it locally, you have effectively regressed to the procmail situation.

The copy extension was created to solve that problem by allowing a redirect or fileinto that doesn't cancel the implicit keep.

The problem of sending an email to two folders is easily solved without :copy by two fileintos, or fileinto+keep. You could do it with :copy if you really want to, but there's more that can go wrong.

Quote:
Originally Posted by JamesHenderson View Post
  • ... which means copying/duplicating the email to the alias folder (and leaving the original in the inbox).
  • ... which means moving (to the alias folder).
Again, there is no distinction between moving and copying here. And there isn't an original in the Inbox.
SideshowBob is offline   Reply With Quote