On May 29, 1999 at 01:58, [EMAIL PROTECTED] wrote:
> Implementing this trick with MHonArc means either hacking code or post
> processing, since only the full email address is available in the
> rcfile, and there is no mechanism to mangle it. I'd like to attempt
> to patch MHonArc, because post processing large amounts of email is
> too much of a logistics headache.
>
> So the question is - any suggestions on how to best approach the
> problem? Which section of code is best to look at, and what mechanism
> is best for passing back email address fragments? (Should I try to
> define new resources, for example?)
The two main functions to target are:
mailUrl() in mhutil.pl:
This function is used in the conversion of address in converted
message headers.
replace_li_var() in mhrcvars.pl:
This is the general purpose function for doing resource
variable interpolation. If any new resource variables are desired,
this function would have to handle them.
What I propose is the following new resource variables:
$FROMADDRNAME$
The username portion of the email address
$FROMADDRDOMAIN$
The domain name of the email address
Example:
[EMAIL PROTECTED]
$FROMADDRNAME$ => "nobody"
$FROMADDRDOMAIN$ => "foo.com"
--ewh