procmail
[Top] [All Lists]

Re: exact match

1997-01-13 13:35:27
Hi,
I found following statement in a readme file:

:0
* ^TO.*info
! user1(_at_)me(_dot_)com

But what this command also does is forwarding all messages
that contain "info" in the To: field, i.e.  

  abcinfo(_at_)domain(_dot_)com
  infoxyz(_at_)domain(_dot_)com

end even

  abcinfoxyz <otheraddress(_at_)domain(_dot_)com>

Could somebody help me out with the correct command to 
forward only mails to

  info(_at_)domain(_dot_)com and whatever <info(_at_)domain(_dot_)com>

        How about:

         :0
         * ^TO(_dot_)*info(_at_)domain(_dot_)com
         ! user1(_at_)me(_dot_)com

        or:

        :0 
        * ^TO[ :][      ]*info(_at_)domain(_dot_)com
        ! user1(_at_)me(_dot_)com
        :0 
        * ^TO.*<info(_at_)domain(_dot_)com>
        ! user1(_at_)me(_dot_)com

        
Thank you very much!
   Costa

<Prev in Thread] Current Thread [Next in Thread>