Re: demiming, was Body check failing?

"Ruud H.G. van Tol" <[email protected]> Tue, 31 Oct 2017 13:15:04 +0100
Newsgroups gmane.mail.procmail
Message-ID <[email protected]>
On 2017-10-31 11:21, John Levine wrote:
> In article <[email protected]> you write:
>> On Oct 30, 2017, at 12:03 AM, @lbutlr <[email protected]> wrote:

>>> I am now matching the subject against the UTF-8 string for each word.
>>
>> how would I convert "=3D?UTF-8?B?IEdhcmFnZSBNb3Rpb24=3D?=3D" into decode=
d ascii using only pipe-able comand line tool?
> =

> Here's the usual way.
> =

> # put demimed headers into $HEADER
> :0 Hi
> HEADERS=3D| formail -fXsubject -Xfrom |perl -MEncode -ne 'print encode("U=
TF8",decode("MIME-Header",$_))'

If you prefer to do it in "pure procmail",
then create an "UTF-8" variant of:

https://rvtol.home.xs4all.nl/procmail/ -> b64_demo.rc
https://rvtol.home.xs4all.nl/procmail/inc/b64.inc
https://rvtol.home.xs4all.nl/procmail/inc/b64.inc.inc

-- Ruud