Re: [Evolution] copying all email addresses from a folder .. how?



On Tue, 2006-01-10 at 23:10 -0500, Lee Revell wrote:
On Tue, 2006-01-10 at 23:56 -0400, Patrick O'Callaghan wrote:
On Wed, 2006-01-11 at 02:56 +0100, guenther wrote:
I was wondering if it is possible to grab all sender email addresses
from messages that have been sent to me and are in a specific folder. I
don't want to have to go through all the messages and copy each email
address to a text file. Thanks!

Want the output in a text file? Standard UNIX tools are your friend. :-)


Collect a list of email addresses including real names, sorted
alphabetically:

$ cd ~/.evolution/mail/local/
$ grep ^From: Inbox | sed -e "s/^From: //" | sort | uniq

Or:

cat Inbox|formail +1 -ds formail -c -x From:|sort|uniq  

Superfluous cat.

formail +1 -ds formail -c -x From:|sort|uniq < Inbox

Sorry, the lack of space between pipes threw me off.  Also sort -u is
more efficient than sort | uniq.

formail +1 -ds formail -c -x From: < Inbox |sort -u

Lee




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