Re: [nmh-workers] mhstore saving pdf w/o decoding filename- soln apparently: mhfixmsg
On Thu, 16 Aug 2018 16:06:20 -0500, n...@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.XX` # 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. pgpiOVTZw7t4S.pgp Description: PGP signature -- nmh-workers https://lists.nongnu.org/mailman/listinfo/nmh-workers
Re: [nmh-workers] mhstore saving pdf w/o decoding filename- soln apparently: mhfixmsg
Hi Tom, > Should mhfixmsg run on each incoming message, or at least each one > with mime headers? Maybe by adding to ~/.procmailrc? I think David Levine, mhfixmsg's author, runs it on every incoming email in some way. See the two `Integration' in the man page. -- Cheers, Ralph. https://plus.google.com/+RalphCorderoy -- nmh-workers https://lists.nongnu.org/mailman/listinfo/nmh-workers
Re: [nmh-workers] mhstore saving pdf w/o decoding filename- soln apparently: mhfixmsg
Hi Ralph: On Thu 8/16/18 21:47 +0100 nmh-workers@nongnu.org wrote: >> $ mhstore >> storing message 1446 part 1.1 as file tmp/nmh/1446.1.1.txt >> storing message 1446 part 2 as file >> tmp/nmh/=?UTF-8?b?Y2xpbWF0ZSBmbHllciB1cGRhdGVkLnBkZg==?= >> $ >> >> Notice the filename for part 2 is munged. > >Search for `2047' in mhfixmsg(1). $ mhfixmsg 1446 mhfixmsg: did not find semicolon in Content-Type: application/pdf $ mhs + mhstore -auto storing message 1446 part 1.1 as file tmp/nmh/pED/1446.1.1.txt storing message 1446 part 2 as file tmp/nmh/pED/climate flyer updated.pdf Thanks Ralph. Should mhfixmsg run on each incoming message, or at least each one with mime headers? Maybe by adding to ~/.procmailrc? -- regards, Tom -- nmh-workers https://lists.nongnu.org/mailman/listinfo/nmh-workers