procmail
[Top] [All Lists]

Re: Newbie From Question (Regex)

2003-02-28 05:42:44
On Fri, Feb 28, 2003 at 09:35:29AM +0100, Tom Beer wrote:

I read man procmail and a regex script. What
I want to accomplish is pretty simple and
I hope it's not to low end.
Ok, that's for now. I want to sort
all mails coming From daemon(_at_)system into
the folder network control/daemon
My (not) matching expression is

:0
* ^(From)(_dot_)*daemon(_at_)system
.network\scontrol/daemon/

which doesn't work.

Thanks for your help Tom


Have you turned on verbose logging?  Have you looked in the logs?
Your recipe has a couple of problems, but should have done *something*.
Can you be more specific about what happens than "doesn't work"?
Is procmail being invoked at all?

Your condition line doesn't need parens around From.

        * ^From(_dot_)*daemon(_at_)system

That would not be the cause of your problem, however.
Your path on the action line looks weird.  What's with the
"\s"?  Or was that something else that got munged in
transit?  Do you want a dot in front of "network" or not?
You don't have one in your text description, but you do in
the recipe.  Does the dir you want to save to really have a
space in its name, as you wrote in your your text?

-- 
dman

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