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: Paul Fox
Subject: Re: [Nmh-workers] Getting the addresses with comments of sent messages
Date: Tue, 13 May 2014 10:49:02 -0400

address@hidden 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
 > address@hidden
 > https://lists.nongnu.org/mailman/listinfo/nmh-workers

=----------------------
 paul fox, address@hidden (arlington, ma, where it's 51.8 degrees)



reply via email to

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