nmh-workers
[Top] [All Lists]

Re: One-liner to retrieve an email's recipients?

2020-08-18 11:31:47
Anybody have a quick comment on good ways to retrieve an email's
recipients (e.g. To:, cc:) with an nmh command?  Perfectly happy to hear
there's no amazing solution and the closest thing would probably be a
custom mh-format — just noticed some old code which locates the file
with mhpath and then parses out the headers, which seems potentially
excessive..

scan -format "%{to} %{cc}" -width 1000

I mean, you can get a lot fancier, but that's the basic answer.

--Ken


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