1 message in net.sourceforge.lists.courier-maildrop[maildropl] filtering on Content-Type...
FromSent OnAttachments
PollywogFeb 7, 2006 10:28 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[maildropl] filtering on Content-Type headerActions...
From:Pollywog (lin@shadypond.com)
Date:Feb 7, 2006 10:28:01 am
List:net.sourceforge.lists.courier-maildrop

I get many spams in the Cyrillic alphabet (I do not read Russian) and I want to filter them on the following:

Content-Type: text/plain;^M charset="windows-1251"^M

(The ^M is only to emphasize that the headers have line breaks)

The problem is that the header is actually on two lines and the following rule does not work:

if (/^Content-Type: text\/plain.*charset="windows-1251"/) { exception { EXITCODE = 0 exit } }

How would I get this to work when the header is split like that?

thanks