procmail
[Top] [All Lists]

Re: How do I save to a file that has the name of the subject?

2000-09-21 18:55:45
I am able to do it only when the subject doesn't have Fw: or Fwd: in it.

STORIES="/home/p/poohba/public-web/Stories"
SUBJECT=`formail -zxSubject:`

:0bc:
* ^From.*LaLa
$STORIES/$SUBJECT


You might need to pipe it through tr to remove colons - I think they cause the 
problem:

SUBJECT=`echo $SUBJECT | tr ":" "_"`


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail