* Xavier Maillard <xma(_at_)gnu(_dot_)org> [01-24-09 04:48]:
I am trying to have a "general" recipe to do something based on
the X-BeenThere header.
Say I have a header like this one:
X-BeenThere: lolica(_at_)lolica(_dot_)org
I want procmail to "automagically" store any messages to this
list into list.org.lolica.lolica
If the header refers to clsql(_at_)b9(_dot_)com, I want list.com.b9.clsql
etc...
# -------------------------------------------------------
:0:
* ^X-BeenThere:(_dot_)*lolica(_at_)lolica(_dot_)org
$MAILDIR/list.org.lolica.lolica
# -------------------------------------------------------
# -------------------------------------------------------
:0:
* ^X-BeenThere:(_dot_)*clsql(_at_)b9(_dot_)com
$MAILDIR/list.com.b9.clsql
# -------------------------------------------------------
assuming mbox format
where
$MAILDIR = "$HOME/Mail"
:0 denotes the beginning of a recipe
* .... denotes the condition
$MAILDIR/.... denotes the delivery location
you should reference:
man procmail
man procmailrc
man procmailsc
man procmailex
http://www.ii.com/internet/robots/procmail/qs/
http://www.procmail.org/
--
Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711
http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2
Registered Linux User #207535 @ http://counter.li.org
____________________________________________________________
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