Ken Hornstein <kenh(_at_)pobox(_dot_)com> writes:
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}%qqqq>'
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.
That puts multiple addresses on the same line, delimited by commas. But commas
can also occur in comments, so I would have to go to some trouble to parse the
output. Is there a variant that would put each address on on a separate line?
I tried sprinkling '\n's in your format string, to no avail.
I could try to RTFM, i.e. to read and understand the man page for mh-format,
but I've been hoping to die before that.
Norman Shapiro
_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers