Hi,

Quoting Martin Schweizer <[EMAIL PROTECTED]>:

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;
}


You don't need the else case. Sieve has the implicit keep wich will be used for all mails that had no actions performed on them.

The else case is only for the

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

all eMails that don't have Deny in the Subject you call the action keep



--------------------------------------------------------------------------------
M.Menge                                 Tel.: (49) 7071/29-70316
Universitaet Tuebingen                  Fax.: (49) 7071/29-5912
Zentrum fuer Datenverarbeitung mail: [EMAIL PROTECTED]
Waechterstrasse 76
72074 Tuebingen

Attachment: smime.p7s
Description: S/MIME krytographische Unterschrift

----
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Reply via email to