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 <[EMAIL PROTECTED]>:

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