Re: Duplicatet mails after sieve scripts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You should replace all "if" except first one with "elsif",
or remove last "else" block.

On Wed, 26 Sep 2007 14:10:47 +0900, Martin Schweizer <schweizer.martin@xxxxxxxxx> 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.
>
> Kind regards,
>
>



-- 
"Of course I love NetBSD":-)
OBATA Akio / obata@xxxxxxx

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

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux