Re: demiming, was Body check failing?
"John Levine" <[email protected]> 31 Oct 2017 10:21:11 -0000
| Newsgroups | gmane.mail.procmail |
|---|---|
| Message-ID | <[email protected]> |
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 decoded = 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("UTF= 8",decode("MIME-Header",$_))'