nmh-workers
[Top] [All Lists]

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

2014-10-26 21:25:03
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

_______________________________________________
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>