[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Message Page Address Display



On June 29, 2001 at 00:19, pegmgr@peg.com wrote:

> http://www.peg.com/lists/peg/web/msg03091.html
> 
> Above is a link to one of our mailing lists message pages. Notice the
> 
> 
> What resource controls the display of this address?

The SPAMMODE resource page of the docs lists the resources that
affect the display of addresses in message headers.

> I'd like to change the address from so it displays something like
> $FROMNAME$ <$FROMADDRNAME$.@DoNtSpAmMe  @  NoSpAm.@ $FROMADDRDOMAIN$>

The ADDRESSMODIFYCODE is the resource for rewriting how addresses in
headers are displayed.  The code is any Perl expressions, so resource
variables are NOT applicable, but you can achieve something like the
above as follows:

<ADDRESSMODIFYCODE>
s/([^@]+)@(.*)/$1.@DoNtSpAmMe  @  NoSpAm.@ $2/;
</ADDRESSMODIFYCODE>

Note, the code is untested.

Note, if you want also want the mailto URL to reflect what you have,
you will have to use the MAILTOURL resource.

--ewh


[Index of Archives]     [Bugtraq]     [Yosemite News]     [Mhonarc Home]