Creating sieve script with image attachements

Michael Menge michael.menge at zdv.uni-tuebingen.de
Tue Oct 24 06:58:24 EDT 2006


Hi,

Content-Type filtering is done by the sieve body extenssion
http://www.ietf.org/internet-drafts/draft-ietf-sieve-body-04.txt

You want to have a look at the examples unter 4.2

---------------------------
if body :content "audio/mp3" :contains "" {
                 fileinto "jukebox";
}
--------------------------






Quoting Adam D <emlists at gmail.com>:

> Hello,
>
> I have been for a very long time trying to create a script using   
> sieve to move any file with an attachment to a particular directory   
> in the IMAP file system.  Every thing I have tried just does not   
> work.  I have been using the Content-Type header but it just does   
> not pick up the script.
>
> This is the basic script I have been trying to work:
>
> elsif anyof (header :contains "Content-Type" "gif") {
> fileinto "system.2-mail.missed-spam";
> }
>
>
> Thanks for the help
>
> -Adam
> ----
> 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
>



--------------------------------------------------------------------------------
M.Menge                                 Tel.: (49) 7071/29-70316
Universitaet Tuebingen                  Fax.: (49) 7071/29-5912
Zentrum fuer Datenverarbeitung          mail:  
michael.menge at zdv.uni-tuebingen.de
Waechterstrasse 76
72074 Tuebingen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5469 bytes
Desc: S/MIME krytographische Unterschrift
Url : http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20061024/a16cbc11/smime.bin


More information about the Info-cyrus mailing list