need help on a procmail rule
Florian Diesch
diesch at spamfence.net
Thu May 28 19:58:10 UTC 2009
"Amedee Van Gasse (ubuntu)" <amedee-ubuntu at amedee.be> wrote:
> I would like some advice on procmail. I know it a bit, but my knowledge
> of regular expressions is not so good.
>
> I would like to move all mail from one sender to a certain mailfolder
> For that I use:
>
> :0:
> * ^From:.*jdoe1 at example\.com
> .JohnDoe/
>
> This works.
>
> But I would also like to move all replies, quotes,... with his name
> somewhere in the body to that mailfolder. Sometimes he signs with John
> Doe, sometimes with his middle name John F. Doe
> I tried this:
>
> :0:
> * ^.*John (|F\. )Doe
> .JohnDoe/
>
> But that didn't work.
Not tested but should work:
:0 B
* John (F\. )?Doe
.JohnDoe/
Florian
--
<http://www.florian-diesch.de/>
More information about the ubuntu-users
mailing list