nmh-workers
[Top][All Lists]
Advanced

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

Re: [Nmh-workers] Feature requests (or explanation of how to do 'em if a


From: Ken Hornstein
Subject: Re: [Nmh-workers] Feature requests (or explanation of how to do 'em if already there)
Date: Sun, 26 Oct 2014 22:24:38 -0400

>I wouldn't say a lot simpler.  This does what I want:
>
>%<(nonnull(getmymbox{to}))From: %(myname) <%(getmymbox{to})>\
>%?(nonnull(getmymbox{cc}))From: %(myname) <%(getmymbox{cc})>\
>%|From: %(myname) <%(localmbox)>%>

Right, but that's because %(myname) is always the same for your
entries.  It doesn't have to be, that's my point.

>> If you want to run it through %(addr), of course you have that
>> option, but that's one-way.
>
>If you mean in a user's format, I don't see a good way.  That's
>what I meant by the format engine won't return an addr, and
>%(addr) takes an addr.  Am I missing something?

Oh, hm.  I see what you mean now.  Things like %(addr) and %(proper) only
take a component name.  Fixing this might be tricky.  Changing the address
functions to take any string would be tough.  Maybe have a function that
converts "str" to a named component?  That seems not so great either.  I
guess absent a better solution what you've chosen is probably the best
we can do.

--Ken



reply via email to

[Prev in Thread] Current Thread [Next in Thread]