procmail
[Top] [All Lists]

Re: reading subjects into variables

1996-11-21 07:19:29
On Thu, 21 Nov 1996, James V. Di Toro III wrote:

:0
* Subject: [0-9]*
$HOME/folders/$MATCH

You forgot the \/ to indicate where the match should start. Also, it's 
better to use a lockfile, in case two mails get saved to the same folder. 
So the recipe should be:

# There's a tab and a space between the first []
:0:
* ^Subject:[    ]*\/[0-9]*
$HOME/folders/$MATCH

--
Guy Geens <guy(_dot_)geens(_at_)elis(_dot_)rug(_dot_)ac(_dot_)be>: Ph.D. 
student at ELIS -- TFCG / IMEC 
Home Page: http://www.elis.rug.ac.be/ELISgroups/tfcg/staff/gg.html 
finger ggeens(_at_)elis(_dot_)rug(_dot_)ac(_dot_)be for PGP public keys (or use 
keyserver) 

<Prev in Thread] Current Thread [Next in Thread>