On Thu, 2010-02-04 at 10:49 +0100, frantisek holop wrote:
hi there,
i am trying to automate the following process:
let's say there is a helpdesk, or some such entity that
gets email in the form: country(_at_)brand(_dot_)com
i'd like to create a recipe to automatically sort
incoming mails into folders in the form of: brand-country
e.g.
austria(_at_)mybrand1(_dot_)com -> mybrand1-austria
germany(_at_)mybrand1(_dot_)com -> mybrand1-germany
germany(_at_)mybrand2(_dot_)com -> mybrand2-germany
etc.
as far as i can tell from the man pages, MATCH is not
too flexible for this....
thanks for any pointers
-f
You can use sed:
sed -e 's/\(^.*\)@\(.*\)\.com/\2-\1/'
--
JW Simpson <john(_at_)swajime(_dot_)com>
SwaJime's Cove℠
____________________________________________________________
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