Using GPG with Alpine

From FedoraProject

Jump to: navigation, search

Adapted from http://spevack.org/AlpineGPG

General Setup

The goal is to be able to use Alpine and GPG as follows:

You need:

Install

Aline is packaged as an RPM, and is easily installed. ez-pine-gpg is shipped as a .tgz file -- you should extract it, and run the installation tool that comes with it.

Configuration

You'll have to make some changes to your ~/.pinerc file. Here's a sample of mine:

# This variable takes a list of programs that message text is piped into
# after MIME decoding, prior to display.
display-filters=_LEADING("-----BEGIN PGP")_ /home/max/bin/ez-pine-gpg-incoming

# This defines a program that message text is piped into before MIME
# encoding, prior to sending
sending-filters=/home/max/bin/ez-pine-gpg-sign _INCLUDEALLHDRS_,
    /home/max/bin/ez-pine-gpg-encrypt _RECIPIENTS_ gpg-identifier,
    /home/max/bin/ez-pine-gpg-sign-and-encrypt _INCLUDEALLHDRS_ _RECIPIENTS_ gpg-identifier

Make the following changes: