I need assistance with procmail and/or sendmail

Nov 07, 2010 19:53

I need to do two things ( Read more... )

tech, question

Leave a comment

Comments 2

redrob November 8 2010, 05:51:53 UTC
The 'non-ascii' subject is probably not literal non-ascii, but rfc2047-encoded non-ascii.

if so, this perl regex will identify anything with rfc2047-encoding. You might want to filter both "Subject:" and "From:" for this.

/=\?.*\?[qbQB]\?.*\?=/

Of course, while the sender isn't supposed to put raw high-ascii in the message headers, that doesn't mean they won't. This regex !should! catch high-ascii, but no guarantees.

/[\200-\377]/

Note that neither are anchored either at the beginning or end of the string. This is deliberate.

Hope this helps.

Alex

Reply

luna_torquill November 11 2010, 03:30:46 UTC
Thanks for the reply... I'll find some time to screw around with it later this week, and let you know what happens. :)

Reply


Leave a comment

Up