nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] forcing a particular character set

2014-11-07 17:15:32

On Nov 7, 2014, at 2:35 PM, Anthony J. Bentley <anthony(_at_)cathet(_dot_)us> 
wrote:

Sometimes I want to force a particular character set. Specifically,
I send PGP mail by pasting ASCII armored encrypted GPG output into
the editor brought up by comp(1)/repl(1).

And that's your problem.  To pass along character set info you need to use the 
correct MIME structure.  What you want is a top-level multipart/encrypted 
wrapping an application/pgp-encrypted containing a text/plain with the 
appropriate character set attributes attached to it.

RFC1847 defines multipart/encrypted.  RFC3156 documents 
application/pgp-encrypted.

While you might be able to torture nmh into generating this directly, save your 
sanity and write something outside of nmh that builds the encrypted message for 
you.  I'm sure a few minutes with duckduckgo will turn up a boatload of scripts 
that solve this exact problem.

--lyndon

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers
<Prev in Thread] Current Thread [Next in Thread>