[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Procmail question/puzzle



The following procmail recipe was copied form a blog about how to set
up Debian/Exim/Procmail/Mutt to use Bogofilter. It is intended to do a
first cut at getting rid of junk that confuses Bogofilter, and appears
just before the recipe that pipes incoming mail through Bogofilter.
But I can't figure out how it works (or even if it does work). It may
just be garbled in copying somewhere along the trail from an original
good idea to a hadly formed helpful hint on the internet. (Procmail
does have its own special tweeks to reg. expressions.) In its original
form it had a particularly infelicitous name for the action file,
which I have changed, but otherwise what you see is GUI window cut and
paste form the internet. Does this make sense? Explain, please.

## 'unreadable' mail
:0:
* 1^0 ^\/Subject:.*=\?(.*big5|iso-2022-jp|ISO-2022-KR|euc-kr|gb2312|ks_c_5601-1987|windows-1251|windows-1256)\?
* 1^0 ^\/Content-Type:.*charset="(.*big5|iso-2022-jp|ISO-2022-KR|euc-kr|gb2312|ks_c_5601-1987|windows-1251|windows-1256)
unreadable_
####

## bogofilter spam filtering:
:0fw
| /usr/bin/bogofilter -eplu

Also, this is a regexp. Regexp.s can be garbled in email because of
line folding.  If the above is garbled on the list, I'll welcome
suggestions as to how to format it in a reposting.

TIA

-- 
Paul E Condon           
pecondon@mesanetworks.net


Reply to: