Hello,
Trying to get mailing list folders to be created on the fly (using
straight procmail).
This seems to only work when the folder is created.
Relevent rc follows:
# Generic Listname identification
# 20030517/1134 SBS Updated to handle quoted Sender text
:0
* 9876543210^0 ^(Sender:[ ]*owner-|X-BeenThere:[ ]*|Delivered-To:\
[ ]*mailing list )\/[-A-Za-z0-9_+]+
* 9876543210^0 ^(List-Post:[ ]*(<mailto:)?|List-Owner:\
[ ]*(<mailto:)?owner-)\/[-A-Z0-9_+]+
#* 9876543210^0 ^Sender:.* List"? <(mailto:)?\/[-A-Z0-9_+]+
* 9876543210^0 ^Sender:.* List? <(mailto:)?\/[-A-Z0-9_+]+
{
LISTNAME=$MATCH
}
:0E
* ^Sender:[ ]*\/[-A-Z0-9_+]+-owner
{
LISTNAME=`echo $MATCH | sed -e s/-owner//i`
}
# If the listname isn't blank, emit it to the logfile.
# (at this stage, you could just as easily dump the message to a
# $LISTNAME-ed file
:0
* ! LISTNAME ?? ^^^^
{
# :0Wic
# * ? test ! -d $MAILBAG/.$LISTNAME
# | maildirmake -f $LISTNAME $MAILBAG
Thanks,
Bill
____________________________________________________________
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