Re: Creating sieve script with image attachements

2006-10-25 Thread Michael Menge
Hi, you need require ["fileinto", "body"] and Cyrus 2.3.0 or greater Quoting Adam D <[EMAIL PROTECTED]>: Michael Menge wrote: 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 exa

Re: Creating sieve script with image attachements

2006-10-24 Thread Adam D
Michael Menge wrote: > 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 "" { >

Re: Creating sieve script with image attachements

2006-10-24 Thread Phil Pennock
On 2006-10-24 at 01:54 -0700, Adam D wrote: > This is the basic script I have been trying to work: > > elsif anyof (header :contains "Content-Type" "gif") { > fileinto "system.2-mail.missed-spam"; > } Michael Menge has explained what to look at. I'll explain why your approach isn't working. Whe

Re: Creating sieve script with image attachements

2006-10-24 Thread Michael Menge
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"; } --

Creating sieve script with image attachements

2006-10-24 Thread Adam D
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.