Do you want to fork a copy of your incoming email off to Gmail for archival? Here are a few procmail recipes that I use to get the job done. Note that these also modify the subject a bit; prepending the archive label so I can do filtering on the Gmail side and also still keeping the original subject intact. The second recipe shows how to not forward certain messages off; in this case two high traffics lists whose contents I don’t care to archive.
PMDIR=$HOME/.procmail
LOGFILE=$PMDIR/procmail.log
VERBOSE=yes
SENDMAIL=/usr/sbin/sendmail
FORMAIL=/usr/bin/formail
SUBJECT=`$FORMAIL -xSubject:`
:0c
| $FORMAIL -i”Subject: Schwer.us – Archive [ $SUBJECT ]” | $SENDMAIL -oi augie.schwer@gmail.com
PMDIR=$HOME/.procmail
LOGFILE=$PMDIR/procmail.log
VERBOSE=yes
SENDMAIL=/usr/sbin/sendmail
FORMAIL=/usr/bin/formail
SUBJECT=`$FORMAIL -xSubject:`
:0c
* !^Subject: \[(root-status|ops-status)\]
| $FORMAIL -i”Subject: Sonic.net – Archive [ $SUBJECT ]” | $SENDMAIL -oi augie.schwer@gmail.com