[wellylug] Procmail recipie problem
Stephen Judd
sljudd at paradise.net.nz
Tue Jun 17 21:08:48 NZST 2003
On Tue, 2003-06-17 at 20:55, Jamie Dobbs wrote:
> I am trying to set up a procmail recipie that will take any emails
> coming from seek.co.nz, jobstuff.co.nz or monster.com.au forward them to
> a particular email address and then store the email in a folder .Jobs
> inside my Maildir
>
> The recipie that I have tried is:
>
> # Deliver anything job related to the Jobs directory and copy to work
> :0
> * ^From.*(seek|jobstuff|monster)*
I don't know procmail, but if it does regexes like other Unixy things,
that last asterisk is a quantifier which applies the thing preceding it;
ie in this case, the group in parentheses. Thus you are saying "match
seek or jobstuff or monster, zero or more times". Which is going to
match everything, since everything contains seek or jobstuff or monster
at leats zero times.
;-)
I imagine that simply adding a "." after the right parenthesis will work
for you.
[sorry for the smartarse tone, but it is kind of funny.]
Stephen
More information about the wellylug
mailing list