nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: norm
Subject: Re: [Nmh-workers] Getting the addresses with comments of sent messages
Date: Wed, 14 May 2014 06:49:49 -0700

Ken Hornstein <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]