From: W. Trevor King Date: Wed, 4 Feb 2009 16:39:37 +0000 (+0000) Subject: Importing NanoBlogger post "Command line PGP/MIME" X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=adc01132bc678b7c3240466e9d3e4f060d2c7b07;p=mw2txt.git Importing NanoBlogger post "Command line PGP/MIME" --- diff --git a/posts/Command_line_PGP/MIME.mdwn b/posts/Command_line_PGP/MIME.mdwn new file mode 100644 index 0000000..2b34df5 --- /dev/null +++ b/posts/Command_line_PGP/MIME.mdwn @@ -0,0 +1,24 @@ +[[!meta title="Command line PGP/MIME"]] +[[!meta date="2009-02-04 11:39:37"]] + +I've been scripting up a few things recently and my inability to send +nicely formatted PGP/MIME messages was starting to really bug me. I +had been encrypting my logwatch output with gpg and just emailing the +raw gpg out to myself, but it's annoying to have to ESC-P every time I +want to decrypt a log. The tipping point came while I was writing up +a script to automatically email grades out to my students (not that +any of the student's care about PGP, but it's the principle of the +thing ;), since there's no way I'm going to send them raw gpg output +(they would die) and there's also no way I'm going to hold Mutt's hand +while it signs the emails. I dunno why Mutt doesn't have some --batch +mode options to support PGP, but there it is. + +So I wrote my own. Not very complicated really, just implementing the +[RFC 3156](http://www.ietf.org/rfc/rfc3156.txt) specs. There's +obviously room for improvement, but it works well enough to make me +happy at the momemt. You're welcome to [take a +look](/~wking/code/python/send_pgp_mime) and email me with +[encrypted!] feedback. + +[[!tag linux]] +[[!tag programming]]