procmail
[Top] [All Lists]

Re: How can I change a domain or extract only a username from ^TO

2005-06-07 07:43:34
On Fri, 03 Jun 2005 17:11:14 +0200
Dallman Ross <dman(_at_)nomotek(_dot_)com> wrote:

  :0 fw h
  *    ^Return-Path:.*<\/(_dot_)*(_at_)domain1(_dot_)com>
  *    MATCH ?? ^^\/.*[^>]
  * $! ^X-Loop:(.*\<)?$\MATCH$
  | formail -I "X-Loop: $MATCH"
 
    :0 a  # implies A
    *  MATCH ?? ^^\/[^(_at_)]+
    ! $MATCH(_at_)domain2(_dot_)com

Thank You very much, BUT... :) I'm trying to apply these rules,
changing ^Return-Path: to ^TO_ (or ^TO), as there's no return-path
header. Well, it doesn't work either way :-/. Procmail does process the
mails, if I feed it with simple forwarding it works all right. So I
guess there must be something wrong with the rules, or with the way I
try to modify them. 


-- 
Best regards,
Daniel

____________________________________________________________
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