Procmail Decoding Mime Messages

Lowell Gilbert freebsd-questions-local at be-well.ilk.org
Thu Apr 25 13:45:47 UTC 2013


Polytropon <freebsd at edvax.de> writes:

> On Wed, 24 Apr 2013 16:07:35 -0500, 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?
>> [...]
>> 	Is there anything which will take a raw email message
>> and spit out linear strings which can be processed like normal
>> text?
>
> I think this is possible with uudecode, in this case b64decode.
> See "man uuencode" for more information.

uuencode predates MIME. Although there are MIME types defined for it,
the base-system tools don't handle the MIME headers or section marking. 

For this purpose, a MIME-aware tool (such as ripmime, or metamail, or
mmencode) will be much more useful as part of an automated filtering
system.


More information about the freebsd-questions mailing list