procmail
[Top] [All Lists]

Re: if-then or something similar

2001-07-20 09:44:34
Hello!

On Fri, Jul 20, 2001 at 05:48:38AM -0700, Andrew Edelstein wrote:
Ok, it works now, just had some errors because I forgot $HOME.
Everything seems fine, but I now have some trouble with my $FROM.
It's like $FROM=User Name <user(_at_)host(_dot_)com>, like in my 
alias-file, but
when the User changes his Name to e.g. "User :-) Name" I have a problem
;-)
Is there any chance to make formail just extract the last part between
the "<" and ">" or to invoke sed to cut away the first part?
I just tried to use sed, but it had no effect. The LOG said it was
skipping my sed-line in my .procmailrc :-(

Untested, but...

:0:
* ? grep -i `formail -rtzxTo:` .mutt.aliases
| $PERLSCRIPT

Keep in mind if there's a Reply-To: field in the message, it will try to match
on that instead of the From: field.

So, you probably mean `formail -rtzxFrom:`? Coz the To should be my
address... Or did I got something wrong now?

Best regards,
Arvid

-- 
 .''`. [Arvid Warnecke] [Arvid(_dot_)Warnecke(_at_)TU-Clausthal(_dot_)de] 
[05323-715724]
: :' : [ICQ 55906559] [ http://up.to/suck ] [PGP-Subject:"get pgp key"]
`. `'  Linux 2.4.2 i686  XFree86 Version 4.0.2  Uptime: 3 days, 2:35
  `--  BOFH #435: Internet shut down due to maintainance
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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