OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Pine With Gnupg, Configuring imap mail client for pgp
ratki
post Sep 13 2007, 01:27 PM
Post #1





Group: Members
Posts: 22
Joined: 13-January 06
From: Hungary, Budapest
Member No.: 8,922



Hi,

I use on desktop Thunderbird with enigmail, but I couldn't reach it on Z yet. (Capn_Fish!)

I've compiled pine earlier, but I missed the feature of enigmail, that the encrypted messages are stored encrypted with my own key, too. So they can not be read in plain text but I can read with my secret key.

Two days ago I tried it again and here is the solution:

1. Some new scripts are created:
CODE
# cat .gnupg/encrypt
#!/bin/sh
TOLIST=`echo $* |awk '{for(i=1;i<=NF;i++) {printf(" -r %s", $i)}}'`
/usr/bin/gpg -ea $TOLIST

# cat .gnupg/encryptsigned
#!/bin/sh
TOLIST=`echo $* |awk '{for(i=1;i<=NF;i++) {printf(" -r %s", $i)}}'`
/usr/bin/gpg -sea $TOLIST

# cat .gnupg/sign  
#!/bin/sh
/usr/bin/gpg --clearsign


2. Insert them as filters to .pinerc:
CODE
...
# This variable takes a list of programs that message text is piped into  
# after MIME decoding, prior to display.
display-filters=_BEGINNING("-----BEGIN PGP MESSAGE-----")_ /usr/bin/gpg -t,
       _BEGINNING("-----BEGIN PGP SIGNED MESSAGE-----")_ /usr/bin/gpg -t

# This defines a program that message text is piped into before MIME
# encoding, prior to sending
sending-filters=~/.gnupg/encrypt _RECIPIENTS_ my.name@my.domain,
       ~/.gnupg/encryptsigned _RECIPIENTS_ my.name@my.domain,
       ~/.gnupg/sign
...

Pine will ask you for filter before sending. The two encypting filter encrypt the message for each recipient (To: and Cc:) and for myself (my.name@my.domain,}, too.

One feature is missing: It doesn't encrypt the attachment!

Tamas
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 29th July 2014 - 02:53 PM