extracting addresses from TO: field

2005-01-04 19:48:33
I have searched the archives, but couldn't find a solution
to the following problem:

I want to use MHonarc to archive my personal mail.  In the
index I would like to use php to replace email addresses with
names using a separate address-book file.  This works fine for
$FROMADDR$, but is there any way to strip out the "human" names
from a stored field that is recalled using $MSGHFIELD(CUR;to)$
for example?  It seems that ADDRESSMODIFYCODE works only on
the email parts of address-containing fields.

So, I would like MHonarc to render

  "Gil Bates" <gb(_at_)crisomoft(_dot_)com>, "Eve Bjosst" 


  gb(_at_)crisomoft(_dot_)com, eb(_at_)palpe(_dot_)com

or perhaps with the lt; and gt; chars stil in place.

I'm storing the index page as a "raw" (i.e., non-HTML) file
which is read and filtered by another php/HTML page, but is there
any way MHonarc can strip those names for me.  Otherwise, my
php code will have to do the dirty work.

Any ideas?


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