Thx david! Crom!! (bows b4 master)
You solved my problem almost :)
Script is now
* ^Subject:[ ]*\/([^ ].*)?crontab\*.+"$MATCH"
"$MATCH"
and it works! (just need 2 find the place 2 put the files now )
My humble thanks
/Lars Andersen
"David W. Tamkin" <dattier(_at_)panix(_dot_)com>
Sent by: procmail-admin(_at_)Lists(_dot_)RWTH-Aachen(_dot_)DE
16-01-03 09:16
To: Lars Andersen <laa(_at_)dmdata(_dot_)dk>,
procmail(_at_)Lists(_dot_)RWTH-Aachen(_dot_)DE
cc: dman <dman%nomotek(_dot_)com%DMDATAINTER(_at_)dmdata(_dot_)dk>
Subject: Re: Procmail will not use a VAR as filename for mailbox
Lars asked,
| The thing i want procmail to do is as follows:
|
| Scan subject filed for match "crontab*"
| Then use the Subjectfield, as a filename for that mail. (field will be
| unique everytime because it is a text+time field and 1 mail will/can
| arrive at that time)
| A lot of files can be generated in a week so, I need the complete
| information in the Subject field as a filename.
You should also add some precaution to make sure it's really from your
system's cron daemon so that nobody sends you prank mail with "crontab*"
in
the subject. Also, make sure that the subject will never have any slashes
or
nulls in it. The first set of brackets enclose space and tab; the second
set
enclose caret, space, tab; and the soft quotes on the action line are
important:
:0:
* ^Subject:[ ]*\/([^ ].*)?crontab\*.+
"$MATCH"
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail