Hi guys,
The whole family recives mail from Facebook (like all I suppose) and I want to
send it to the family members which is not a problem.
However, I want a recipe that will check the following.
If it comes from Facebook AND it is addressed to dannydebont[AT]gmail[DOT]com I
want it
to go to it's folder. However, not all mail comes from Facebook, so I want an OR
that would do the following:
If it comes from Facebook (in the From: field) AND it is addressed to
dannydebont[AT]gmail[DOT]com (in the To: field) it must go to it's folder OR if
it DOES NOT come from Facebook but anywhere else and is still addressed to me in
the To: filed, I want it to go to another folder.
In other words, if it comes from Facebook AND is addressed to me it must go to
"facebook" foder ALL other that is addressed to me must go to "inbox" folder.
Here is my recipe:
SHELL=/bin/sh
HOME=$HOME
PATH=$HOME/bin:/usr/local/bin:/usr/bin:/bin:/sbin:/usr/sbin
SENDMAIL=/usr/sbin/sendmail
MAILDIR=$HOME/Mail
LOGFILE=/var/log/procmail.log
LOGABSTRACT="all"
VERBOSE="on"
DEFAULT=$HOME/Mail/inbox/inbox
#DEFAULT=/var/spool/mail/fetchmail
PMDIR=$HOME/.procmail
#INCLUDERC=$PMDIR/spam.rc
LOCKFILE=/var/lock/.procmail_lock
###################################
:0:
*
^(From|Cc|To|X-Loop|Sender|Bcc|X-BeenThere):(_dot_)*(_at_)facebookmail\(_dot_)com
* ^TO_dannydebont(_at_)gmail\(_dot_)com
$MAILDIR/incoming/internet/social/facebook
###################################
:0
$DEFAULT
Thanks guys
Danny
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail