LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Switch from PGP/MIME to ASCII Armor? (http://www.linuxquestions.org/questions/linux-server-73/switch-from-pgp-mime-to-ascii-armor-4175423541/)

jbiggs12 08-23-2012 02:40 AM

Switch from PGP/MIME to ASCII Armor?
 
Hi,

For the last few years I've been using a system where my server snatches email via POP from several of my accounts, deletes it on the remote server, and encrypts it via GPG where I can read it on my computer.

However, I've recently acquired a new mobile phone and I'd like to read my email with K-9, which doesn't support messages with the PGP document attached. I was wondering how I could modify my ~/.procmailrc to change this. Here it is for the moment:

Code:

DEFAULT=/home/jack/Maildir/
MAILDIR=/home/jack/Maildir/
LOCKFILE=/home/jack/Maildir/procmail.lock
LOGFILE=/home/jack/Maildir/procmail.log
VERBOSE=yes

# :0:
# * ^X-Spam-Status: yes
# .Spam/cur

:0 H
# modify your filter, which mails to encrypt, here:
* ^To.*@.*
{
  MYHDRS=`formail -XContent-Type: -XContent-disposition: -XContent-transfer-encoding:`
  :0 fh
  | formail -I 'Content-Type: multipart/encrypted; protocol="application/pgp-encrypted";boundary="MfFXiAuoTsnnDAfX"' -I Content-transfer-encoding: -I Content-disposition:

  :0 fb
  # replace with your PGP key ID here:
  | { cat ~/.gpg-mime-start ; { echo "$MYHDRS" ; echo ; cat - ; } | gpg --batch --quiet --always-trust -a -e -r 2452A44C; cat ~/.gpg-mime-end; }
}

I'd appreciate any and all help.


All times are GMT -5. The time now is 05:56 AM.