On Wed, Dec 29, 2010 at 07:54:08PM +0100, Philip Van Pelt wrote: > mouss schreef op wo 29-12-2010 om 19:20 [+0100]: > > Le 29/12/2010 18:25, Philip Van Pelt a écrit : [..]
> I use only one domain; t...@example.com is a normal (but virtual) user > and al...@example.com is an alias for this same user. Both emails > therefore end up in the same mailbox on my system. > My dovecot sieve just filters, based on the presence of the X-Spam-Flag > header: > > require ["fileinto"]; > # Move spam to spam folder > if header :contains "X-Spam-Flag" ["YES"] { > fileinto "Spam"; > stop; > } > > The strange thing is that, although the mail is correctly flagged, this > header disappears along the way. And only for the alias, otherwise it > works like a charm. It seems you have a condition in your sieve script which only matches t...@example.com but not al...@example.com. > Philip Dennis