procmail
[Top] [All Lists]

Re: Matching literal dot in To

2015-06-13 05:19:46
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 abc.def@some.domain.

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.

Erik

-- 
"The difference between theory and practice is much smaller in theory
than in practice..."
____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail