gmail imap, gpg, and procmailrc

Jamon Camisso jamon.camisso-H217xnMUJC0sA/PxXw9srA at public.gmane.org
Sun Oct 28 02:26:40 UTC 2007


I've been working away at setting up a custom procmailrc file to encrypt 
and send a copy of each email I receive to a gmail account I intend to 
use for redundant IMAP accessible storage (they're rolling that out on 
some accounts now).

My .procmailrc looks like this:

###############################
## Dump spam before encrypting and forwarding ##
###############################
:0
* ^X-Spam-Status: Yes
.spam/cur

###############################
## f for filter (fifo), b for body only, w wait for filter ##
## check it's exitcode, fail if not successful;          ##
## encrypt the body, then send a copy to gmail  ##
###############################
:0
* ^X-Original-To: me-hcDgGtZH8xNBDgjK7y7TUQ at public.gmane.org
{
        :0fbw
        | gpg --encrypt -r 0x01234567 --armor --output -
        :0c
        ! me-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
}

###############################
## mv logchecks to logcheck/new, reduce clutter ##
###############################
:0
* ^From: logcheck-hcDgGtZH8xNBDgjK7y7TUQ at public.gmane.org
.logcheck/new

Everything is working, I've tested spamassassin with GTUBE and mail is 
successfully tagged and procmail moves it before the encryption kicks 
in. The encryption and forwarding works as well, I end up with an 
encrypted message in gmail's inbox. Accessing that via KMail, and 
KGPG's transparent decryption process kicks in.

However, ideally what I'd like to do is store the local message 
unencrypted and just encrypt the gmail message. Reason being I want to 
use their free IMAP service, but not have that data mined for whatever 
purposes google sees fit. In fact, it is fine that I leave the copy on 
my server encrypted as well, but I've spent long enough fighting with 
this that I'd just like to know if it's even possible to encrypt the 
copy but not the local version.

Thoughts?

Jamon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://gtalug.org/pipermail/legacy/attachments/20071027/bb4a7f0e/attachment.sig>


More information about the Legacy mailing list