nmh-workers
[Top] [All Lists]

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

2014-05-13 09:49:25
norm(_at_)dad(_dot_)org wrote:
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?

the formail command, which comes with procmail, may help:
    for x in $(mhpath all)
    do
        formail -c -x From: -x To: -x cc: < $x
    done  | more

paul



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:

     whom: illegal header line -- Received:
     whom: illegal header line -- Message-ID:
     whom: illegal header line -- Date:

    Norman Shapiro

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

=----------------------
 paul fox, pgf(_at_)foxharp(_dot_)boston(_dot_)ma(_dot_)us (arlington, ma, 
where it's 51.8 degrees)

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