Topal is the "glue" between Alpine and GnuPG. Hurray - somebody did it.
How do we use this... It's not the simplest thing in the world - but hey, what is?
I have Phil Brooke to thank for this working on my system.
Step 1. We need to install components that are required to build.
Obviously you should have Alpine and GnuPG.
sudo aptitude install build-essential gnat libreadline-dev
Step 2. We need to get the source code.
Go out to http://homepage.ntlworld.com/phil.brooke/topal/
Look at the Directories and go to the newest one.
Go down to "Files available are"
Download the source via "source code package"
Step 3. Unpackage the source code.
cd ~/DownloadDirectory
tar zxf topal-package-xx.tgz
cd topal-package-xx/
Step 4. Compile and install the source code.
make
sudo make install
Step 5. Configure Alpine.
Start alpine
S - Setup
C - Configure
Near the bottom of the list you will see Sending and Display filters.
Select Display Filters
Press A to add a value
Put this information in
_BEGINNING("-----BEGIN PGP ")_ /usr/bin/topal -display _TMPFILE_ _RESULTFILE_
Press Enter
Select Sending Filters
Press A to add a value
Put this information in
/usr/bin/topal -send _TMPFILE_ _RESULTFILE_ _RECIPIENTS_,
Press Enter
Select Display Filters
Press A to add a value
Put this information in
/usr/bin/topal -sendmime _TMPFILE_ _RESULTFILE_ _MIMETYPE_ _RECIPIENTS_
Press Enter
Yes, the sending filter takes up two lines. One filter for send and one for sendmime.
Step 6. Composing Emails.
When you are about to send an email.
Press ^X as normal
Press ^P to select a filter.
NOTES: I haven't finished getting this to work yet. Phil Brooke Is still helping me figure out the last little pieces.