Convert to tags from "*" to "tags/*".
[blog.git] / posts / Command_line_PGP-MIME.mdwn
1 [[!meta  title="Command line PGP/MIME"]]
2 [[!meta  date="2009-02-04 11:39:37"]]
3
4 I've been scripting up a few things recently and my inability to send
5 nicely formatted PGP/MIME messages was starting to really bug me.  I
6 had been encrypting my logwatch output with gpg and just emailing the
7 raw gpg out to myself, but it's annoying to have to ESC-P every time I
8 want to decrypt a log.  The tipping point came while I was writing up
9 a script to automatically email grades out to my students (not that
10 any of the student's care about PGP, but it's the principle of the
11 thing ;), since there's no way I'm going to send them raw gpg output
12 (they would die) and there's also no way I'm going to hold Mutt's hand
13 while it signs the emails.  I dunno why Mutt doesn't have some --batch
14 mode options to support PGP, but there it is.
15
16 So I wrote my own.  Not very complicated really, just implementing the
17 [RFC 3156](http://www.ietf.org/rfc/rfc3156.txt) specs.  There's
18 obviously room for improvement, but it works well enough to make me
19 happy at the momemt.  You're welcome to [take a
20 look](/~wking/code/python/send_pgp_mime) and email me with
21 [encrypted!] feedback.
22
23 [[!tag tags/linux]]
24 [[!tag tags/programming]]