Re: Matching literal dot in To

"Ruud H.G. van Tol" <[email protected]> Sat, 13 Jun 2015 12:58:19 +0200
Newsgroups gmane.mail.procmail
Message-ID <[email protected]>
On 2015-06-13 12:22, Erik Christiansen wrote:
> On 12.06.15 21:14, Moby wrote:

>> Thanks Lukreme and Chuck.
>> Chuck, the goal is to put the message in a particular folder if ~any~
>> of the addresses in the To field is of the form [email protected].
>
> Then how close does something like this take us?:
>
>     :0
>     * ? formail -X"To:" | egrep '\<[^.@]+\.[^.@]+@'
>     particular_folder
>
> That is agnostic about the number of addresses, triggering on any one or
> more. Not tried - only run through the wetware simulator, so might need
> a whack on a corner.

Why call external processes like formail and egrep?

Try this:

:0
* ^To:.*\<[^.@]+@
particular_folder

or use a macro:

:0
* ^TO_.*\<[^.@]+@
particular_folder


-- 
Greetings, Ruud