Re: A question about procmailrc

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

 



> On Fri, 2006-02-03 at 21:31, Hongwei Li wrote:
>> >
>> > Procmail does not recognize the notation [[:space:]] as representing any
>> > whitespace character, so the only solution I found is to replace each
>> space
>> > character with "[ 	]+" (without the quotes, of course, and the brackets
>> > actually contain just two characters, <SPACE> and <TAB>).  That makes the
>> > matcher work correctly regardless of how the line gets split.  Yes, it
>> looks
>> >like a mess, but I couldn't find anything else that works 100%.
>
>   Once
>> the subject line is wrapped, it adds extra char(s) in between "of" and
>> "the",
>> then it does not match.  So, I tried:
>>
>> * ^Subject:.*is.*out.*of.*the
>>
>> then, it works for all cases.  But, it seems that it is not always safe. It
>> may filter some normal emails?
>
> I think you missed the answer in the message you were responding to.
> * ^Subject:.*is[  ]+out[  ]+of[  ]+the
> should be the correct approach, with each of the []'s enclosing one
> space and one tab character.  The [  ]+ expression means match one
> or more (any number more) of the characters enclosed, so there has
> to be one space and it won't matter if more or tabs are introduced
> by the header wrap/indent.
>
> --
>   Les Mikesell
>    lesmikesell@xxxxxxxxx
>

I revised the procmailrc line, and it is working well now.  Gret thanks to you
and all other people!

Hongwei


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

  Powered by Linux