A question about procmailrc
Don Russell
fedora at drussell.dnsalias.com
Thu Feb 2 20:08:27 UTC 2006
On 2/2/2006 7:40 AM, Hongwei Li wrote:
> Hi,
>
> I have a question about .procmailrc. Recently, our users received a lot of
> junk emails that have the subject like:
>
> Aaa Bbbb Ccc/Xxxx Yyy/Zzzz Dddd/Eeee is out of the office.
>
> I want to set a line in procmailrc to put those emails in folder Trash. I
> tried it as:
>
> :0:
> * ^Subject:.*.is.out.of.the.office*
> $MAILDIR/Trash
>
> But, it does not work -- the mail still does to inbox. I think the problem is
> the part "Aaa Bbbb Ccc/Xxxx Yyy/Zzzz Dddd/Eeee", especially the slash /
>
> How to change the code to do the job?
I think the problem is the trailing * when you're trying to match subject.
If I'm reading this correctly you want a subject that matches on"
"is out of the office*"
You're using the dots to accept any single character as a word
separator, but whats the * at the end doing for you?
Don
More information about the users
mailing list