On Thu, 16 Aug 2018 16:06:20 -0500, nmh@trodman.com said:
Should mhfixmsg run on each incoming message, or at least
each one with mime headers? Maybe by adding to ~/.procmailrc?
What I do (after dealing with robo-mail from servers I know won't generate
anything needing fixing)
# Set here rather than earlier so we don't splat out zero-length files for stuff
# we filed before this, so we didn't fixmsg...
TMPFILE=`mktemp -p /home/valdis/tmp fixmsg.XXXXXXXXXX`
# Canonify to 8-bit UTF-8
:0 wf
*!^Content-type:.*multipart/signed
| tee $TMPFILE | mhfixmsg -noverbose -file - -outfile -
And then a cron job that cleans up the temp files once in a while..
(Can probably punt the mktemp and tee, that's a legacy from when mhfixmsg
misbehaved sometimes. I can't remember what the exact problem with /signed
was, signatures got broken sometimes, I suspect a pissing match between exmh,
nmh, and gpg about what "canonical form" is.
:0 wf
| mhfixmsg -noverbose -file - -outfile -
is (or should be) sufficient, I think.
pgpqNrxdd7zR3.pgp
Description: PGP signature
--
nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers