nmh-workers
[Top] [All Lists]

[Nmh-workers] replcomps - %friendly() with table lookup?

2012-09-02 04:44:14
Hi,

I'm looking for a way to make the draft message templates more
clever...  Currently, in my "replcomps" I'm using 

        Dear %(decode(friendly {from})),

to automatically generate the greeeting.  This works reasonably well,
except in cases where I would like to use a less formal form for
specific, well known addresses.  For example, when replying to
"William R. Somebody" <somebody(_at_)some(_dot_)addr> I would get

        Dear "William R. Somebody",

But this is a good friend of mine, so I would rather have

        Dear Bill,

Is there a way to have friendly() [or some other function] doing some
table / database lookup to come up with such an even more friendly()
greeting?

Thanks in advance.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd(_at_)denx(_dot_)de
Time is an illusion perpetrated by the manufacturers of space.

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

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