Duplicatet mails after sieve scripts

Craig White craigwhite at azapple.com
Wed Sep 26 01:18:19 EDT 2007


On Wed, 2007-09-26 at 07:10 +0200, Martin Schweizer wrote:
> Hello
> 
> I have sieve script which sorts some mails in different folders but I
> get now the e-mails twice. One of the copy is going in the responsable
> subfolder and the other copy is going in the INBOX. What is going
> wrong here?
> 
> Here my script:
> 
> require ["fileinto"];
> 
> if allof (header :matches "subject" "*Ausw**") {
>      fileinto "INBOX.Auswertung";
> }
> 
> if allof (address :matches ["from"] "*Charlie**") {
>      fileinto "INBOX.System";
> }
> 
> if allof (header :matches "subject" "*Postmaster**") {
>      fileinto "INBOX.Postmaster";
> }
> 
> if allof (header :matches "subject" "*Cron**") {
>      fileinto "INBOX.Cron";
> }
> 
> if allof (address :matches ["from"] "*disks**") {
>      fileinto "INBOX.Disks";
> }
> 
> if allof (header :matches "subject" "*Deny**") {
>      fileinto "INBOX.DenyHosts";
> }
> 
> else {
>      keep;
> }
> 
> Any hints are welcome.
----
need a 'stop' after each one

if allof (header :matches "subject" "*Deny**") {
    fileinto "INBOX.DenyHosts";
    stop;
}

that's what prevents duplicates

Craig



More information about the Info-cyrus mailing list