base64, quoted-printable pre-processor for bogofilter

Allyn Fratkin allyn at fratkin.com
Wed Oct 23 06:11:58 CEST 2002


attached is a preprocessor that i use to decode base64 and quoted-printable
text attachments before feeding to bogofilter.  note that i do not
use the -p feature to add the bogofitler header to the email.

THIS IS NOT TO BE USED WITH -p !!

this is a very quick-and-dirty script that does not really understand
mime syntax very well and is not intended to transform the message
in syntactically correct ways.  this is only useful as a dead-end
"nobody but bogofilter will be looking at the output so it doesn't
need to be correct" filter.  in fact, non-text base64 attachments are
completely removed from the output!

THIS IS NOT TO BE USED WITH -p !!

it uses a state machine to notice when a text attachment is approaching
and starts decoding until it thinks it finds the end of the attachment.
it can be easily fooled during quotable-printed attachments.

THIS IS NOT TO BE USED WITH -p !!

i am sending it because someone might find it useful.
-- 
Allyn Fratkin             allyn at fratkin.com
Escondido, CA             http://www.fratkin.com/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: unbase64
URL: <http://www.bogofilter.org/pipermail/bogofilter/attachments/20021022/29f4f684/attachment.ksh>


More information about the Bogofilter mailing list