| Newsgroups |
gmane.org.user-groups.luni.tech |
| Message-ID |
<1901096324-1294760410-cardhu_decombobulator_blackberry.rim.net-1233839852-@bda2142.bisx.prod.on.blackberry> |
Good question. I will ask the admin.
Watch our 3 minute movie: http://www.rushlogistics.com/movie
-----Original Message-----
From: Kevin Hill <[email protected]>
Sender: [email protected]
Date: Tue, 11 Jan 2011 09:04:11
To: Linux Users Of Northern Illinois (Chicago) - Technical Discussion<[email protected]>
Reply-To: "Linux Users Of Northern Illinois \(Chicago\) - Technical
Discussion" <[email protected]>
Subject: Re: [LUNI] sieve question
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
--
Linux Users Of Northern Illinois (Chicago) - Technical Discussion
http://luni.org/mailman/listinfo/luni