Procmail Decoding Mime Messages

Warren Block wblock at wonkity.com
Thu Apr 25 01:10:01 UTC 2013


On Wed, 24 Apr 2013, Martin McCormick wrote:

> 	Is there a filter that one can run in procmail in which
> base64 encoded data go in and text comes out so one can allow
> procmailrc to do its work?
>
> 	I use bogofilter to filter spam and it does a very good
> job after one builds a core of spammishness, but legitimate
> messages are often-times filled with base64 sections that look
> like garbage to the regular expressions that one puts in
> .procmailrc for sorting mail.
>
> 	When searching for information, I found something called
> mimencode which both encodes and decodes these attachments, but
> there is no FreeBSD port called mimencode so it occurred to me
> that some other application might exist which is in the ports
> that does basically the same thing.
>
> 	Is there anything which will take a raw email message
> and spit out linear strings which can be processed like normal
> text?

mail/maildrop has a reformime program which may be useful.  maildrop 
itself is like a better and easier to use procmail.


More information about the freebsd-questions mailing list