Sean Rima <[EMAIL PROTECTED]> wrote on Sat, 13 Nov 1999:
> Does the set from= allow you to use Regexp expresssions. I use 4 different
> email addresses from this account and wish to be able to set the from
> sometimes.

Well, as far as I've understood, the $from variable works practically
just like my_hdr From: with the only difference being that you can use
it with $reverse_name set.  That is, $reverse_name takes precedence over
$from.  With my_hdr From:, $reverse_name is overridden which is mostly
an undesired behaviour.

So depending on how you want to use regexp expressions this may or may
not help you.  You can already use a variable From header address based
on recipient with send-hooks (or other hooks too), as in
send-hook (condition) my_hdr From: (name and address)


This brings my mind a question to "those who know", can I choose to
use $reverse_name in send-hooks?  Ie. if I have

send-hook . set reverse_name; blah blah
send-hook '~t some@recipient' unset reverse_name; blah blah

Will something like that work?  The idea is of course that I only want
$reverse_name to work for *some* of my email addresses.  And
particularly, if someone happens to send me email at eg.
[EMAIL PROTECTED] I want the reply to go out as
[EMAIL PROTECTED]  I'm not sure if using send-hooks for
$reverse_name setting solves this problem, but it might help.


Regards,
Mikko
-- 
// Mikko H�nninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy & scifi, the Corrs /
Gather 'round like cattle and ye shall be herd.

Reply via email to