Re: A question about procmailrc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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
>

The * is a wild char because there are probably other letters after office,
e.g. . ] or space etc.  I also tried:

:0:
* ^Subject:.*is out of the office*
$MAILDIR/Trash

The situation remains the same -- not working.

Hongwei


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux