Re: sieve question

Kevin Hill <[email protected]>
Newsgroups gmane.org.user-groups.luni.tech
Message-ID <[email protected]>
Hi,
First thing to check, is your mailserver actually adding x-attached 
headers to the messages?

-kevin

On 1/11/11 7:23 AM, Richard Reina wrote:
> I am trying to write a sieve recipe that rejects emails that has attachments that are not either pdf or tiff.  I found this
>
> if header :contains "x-attached"
>    [".exe",".bat",".js",".com",".cmd",".ini",".dll",".bas",".cpl",".drv",".inf",".sys",".pif"] {
>
>    discard;
>    stop;
> }
>
> in this tutorial http://wiki.fastmail.fm/index.php?title=SieveRecipes
>
>
> So I tried:
>
> if header :contains "x-attached"
>   [".tiff",".pdf"] {
>   fileinto "INBOX";
>   stop;
> } else {
>   reject "Your message was returned because of the attachment type. Please don't send me any attachment that are not pdf or tiff format.";
> }
>
> However, it does not work.  The emails get rejected regardless of their attachment type. That is, emails with pdfs and tiffs attached get rejected.  Anyone know what am I doing wrong?  Any help would be greatly appreciated.
>
> Thanks,
>
> Richard

-- 
Linux Users Of Northern Illinois (Chicago) - Technical Discussion 
http://luni.org/mailman/listinfo/luni
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.