> 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 This time the addresses only: $ cd ~/.evolution/mail/local/ $ grep ^From: Inbox | sed -e "s/^.*<//" -e "s/>$//" | sort | uniq Note, these commands only work with local mails. If you want a different mail folder than Inbox, use the appropriate file rather than "Inbox" in the above commands. To redirect the output into a file in your $HOME append something like this (starting with the ">" char) to the command. Note: This will overwrite an existing file without warning, if you happen to have a file with the same name already in your $HOME. > ~/harvested-email-addresses-are-in-here NOTE: Works for me. Use anything above at your *OWN* RISK! Yet another note: The paths mentioned are correct for Evo 2.4.x. Don't recall if they are exactly the same for Evo 2.0.x, which you happen to use. ...guenther -- char *t="[EMAIL PROTECTED]"; main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1: (c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}} _______________________________________________ Evolution-list mailing list Evolution-list@gnome.org http://mail.gnome.org/mailman/listinfo/evolution-list