Eli the Bearded
2018-10-24 21:53:00 UTC
Do you use the formail program? If so maybe you could help test
something.
In a fit of frustration with RFC-2047 MIME encoded words, I added
code to formail that will decode them. (It cannot encode them, at
least yet.)
MIME words, if you don't know, are the things that look like this:
=?CHARSET?Q?Quoted=2Dprintable_content?=
That are frequently used in Subject: and From: lines (and rarely in
other headers) to encode non-ASCII content in a 7-bit safe way.
In my modified formail, everything works as in a stock 3.22 version
except that an additional flag has been added. When you use that
flag to specify an acceptable charset, formail will decode words
matching that charset on read, and all further actions with the content
will operate on the decoded version.
This is beta quality code and I'm looking for people to test it and
flush out any problems with it.
https://github.com/Eli-the-Bearded/procmail-formail
Note that this contains a complete procmail source package, but only
the formail program (and manpage) has been modified.
git clone https://github.com/Eli-the-Bearded/procmail-formail
cd procmail-formail
make
cp new/formail $YOUR_PREFERED_BIN_LOCATION
cp new/formail.1 $YOUR_PREFERED_MAN_LOCATION
And add "-M charset" to flags to activate the decoder.
(I'm also vaguely aware there have been security patches to the
procmail package since 3.22 came out in 2001 which are not incorporated
here.)
Elijah
------
procmail was clearly written by someone who hates whitespace in code
something.
In a fit of frustration with RFC-2047 MIME encoded words, I added
code to formail that will decode them. (It cannot encode them, at
least yet.)
MIME words, if you don't know, are the things that look like this:
=?CHARSET?Q?Quoted=2Dprintable_content?=
That are frequently used in Subject: and From: lines (and rarely in
other headers) to encode non-ASCII content in a 7-bit safe way.
In my modified formail, everything works as in a stock 3.22 version
except that an additional flag has been added. When you use that
flag to specify an acceptable charset, formail will decode words
matching that charset on read, and all further actions with the content
will operate on the decoded version.
This is beta quality code and I'm looking for people to test it and
flush out any problems with it.
https://github.com/Eli-the-Bearded/procmail-formail
Note that this contains a complete procmail source package, but only
the formail program (and manpage) has been modified.
git clone https://github.com/Eli-the-Bearded/procmail-formail
cd procmail-formail
make
cp new/formail $YOUR_PREFERED_BIN_LOCATION
cp new/formail.1 $YOUR_PREFERED_MAN_LOCATION
And add "-M charset" to flags to activate the decoder.
(I'm also vaguely aware there have been security patches to the
procmail package since 3.22 came out in 2001 which are not incorporated
here.)
Elijah
------
procmail was clearly written by someone who hates whitespace in code