Home

Advertisement

Alpine and GPG

  • Nov. 25th, 2008 at 7:11 PM

Originally published at Random Geekage You can comment here or there.

For a while I have been trying to get used to using the command line for all of my application needs. One of the sticking points for me is email. As far as I can see, the two main text based email clients are Alpine and Mutt.

Mutt seemed to be a pain to configure, I couldn’t find an entry in the config file to put in my details and it brought in a whole bunch of other packages onto my system. Mutt seems to only be able to retrieve mail on its own. Sending requires the extra software which is a downside to me. Extra stuff to update, more possibility of security holes. Alpine on the other hand, has no such problems.

The other main part of email for me is GPG functionality. The default email client in Ubuntu, Evolution, has a really simple way of configuring GPG, just put your key ID into a text field and it does the rest. However, Evolution has a ton of bells and whistles like calendars and address book functionality. Plus I can’t have it backgrounded.

Klaatu did a Hacker Public Radio episode on how to integrate GPG and Alpine but I felt that during the main part he spoke too fast and never went over the proper syntax of the configuration lines, like the need for correct capitalisation. After hunting around a bit more, I found a page that had the correct lines ready for copy and paste (Edit: the symlinks are needed to use the filters properly).

First, open a shell and do the following commands:

sudo ln -s /usr/bin/gpg /usr/bin/encrypt

sudo ln -s /usr/bin/gpg /usr/bin/sign

Then open your .pinerc file and amend the display and sending filters to this:

display-filters=_LEADING("-----BEGIN PGP SIGNED MESSAGE")_ /usr/bin/gpg --decrypt,
_LEADING("-----BEGIN PGP MESSAGE")_ /usr/bin/gpg --decrypt

sending-filters=/usr/bin/encrypt --encrypt -r _RECIPIENTS_ -a,
/usr/bin/sign --clearsign

Whack that into your .pinerc file in the right places and so long as you have GPG set up encrypted mail should work.

Latest Month

December 2009
S M T W T F S
  12345
6789101112
13141516171819
20212223242526
2728293031  

Tags

Page Summary

Syndicate

RSS Atom
Powered by LiveJournal.com
Designed by Lilia Ahner