nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] Getting the addresses with comments of sent messages

2014-05-13 09:52:29
I have a directory containing a slew sent messages. I would like a list of all
of the addresses, including comments, of all of these messages. Does anybody
have a script that will do this?

whom does not seem an appropriate tool for this. It does not include comments
and it does not work well for sent messages; it fails with complaints like:

I think your best bet is to use scan with a custom format.  A super simple
one is:

        scan -format '%{to}'

Although this might be more complete:
        scan -format '%{to}%<{cc}\n%{cc}%>'

You might have to play with that a bit to get what you want.  I see that
you probably will need to add -width 9999 to that usage of scan.

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