[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [nmh-workers] mhstore saving pdf w/o decoding filename- soln apparen
From: |
valdis . kletnieks |
Subject: |
Re: [nmh-workers] mhstore saving pdf w/o decoding filename- soln apparently: mhfixmsg |
Date: |
Thu, 16 Aug 2018 18:09:21 -0400 |
On Thu, 16 Aug 2018 16:06:20 -0500, address@hidden 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.
pgpZ4HSfysQpL.pgp
Description: PGP signature
Re: [nmh-workers] config ? re Content-Disposition: attachment; ... filename=SOME_UTF-8_CODED_STRING, Ken Hornstein, 2018/08/24