[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: debian-private and Gmail

On Wednesday 06 December 2006 08:08, Nelson A. de Oliveira wrote:
> What I am wanting is to redirect all my @debian.org emails to my Gmail
> account (the field "email forwarded to") and to read debian-private
> emails on a Debian machine.
> Is it easy to do this (using procmail maybe)?

Yes, you can do this using procmail, though not quite in the way you 
describe. (Maybe it can be done like you describe too, but this seems 

If you clear the "email forwarded to" field and then create a 
~/.procmailrc on master.d.o with the following content, you should get 
the desired result.

SHELL = /bin/sh
#DEFAULT=$MAILDIR/incoming      #completely optional
LOGFILE=$MAILDIR/_procmail.`date +%Y%m`.log   #recommended
YEARMONTH=`/bin/date +%Y%m`

# Keep mail from debian-private list on master
* ^X-Loop: debian-private@lists.debian.org

# Forward the rest to gmail account
! naoliv@gmail.com

With this your debian-private mail should end up in ~/Mail/private, so you 
need to read it (on master) using:
$ mutt -f ~/Mail/private


Attachment: pgpaXzQnXouwT.pgp
Description: PGP signature

Reply to: