[nmh-workers] Oddball question... %(num) and friends...

2019-05-04 Thread Valdis Klētnieks
I know %(num) gets you the current message number in a folder. Is
there an easy way to get the *name* of the folder?

(Part of a truly bletcherous plan to use Fcc: and/or Bcc: to subvert GMail's
auto-suppression of messages that result in you usually not getting a copy of
mail you post to a list, because it saw the Message-ID: outbound so it munches
the copy from the list.  If I get something that works that isn't too 
nausea-inducing
I'll send a copy for the contrib/ directory.)



pgpBWlA8Jxosz.pgp
Description: PGP signature
-- 
nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers

Re: [nmh-workers] Oddball question... %(num) and friends...

2019-05-04 Thread Ken Hornstein
>I know %(num) gets you the current message number in a folder. Is
>there an easy way to get the *name* of the folder?

I almost said no ... but I would have been wrong!

% fmttest -raw -format '%(profile Current-Folder)' ''
inbox

And I learned something new today.  Time to updare the documentation.

(The usual caveats apply about that being the CURRENT folder, but depending
on your use case it might be good enough).

--Ken

-- 
nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers