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  

Also, this fails for addresses with non-ASCII characters (email
addresses deleted).

$ formail +1 -ds formail -c -x From: < .evolution/mail/local/Inbox |sort
-u | grep ISO
 =?ISO-8859-1?Q?=22Alexander_Car=F4t=22?= <>
 =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?= <>
 =?ISO-8859-1?Q?Kristoffer_Lund=E9n?= <>
 =?ISO-8859-1?Q?Patrik_H=E4gglund?= <>
 =?ISO-8859-1?Q?Pelle_Lundstr=F6m?= <>
 =?ISO-8859-1?Q?Simo_Kivim=E4ki?= <>
 =?ISO-8859-1?Q?St=E9phane_Letz?= <>
 =?ISO-8859-2?Q?Piotr_Tajdu=B6?= <>
 Kristian =?ISO-8859-1?Q?Gr=F8nfeldt_S=F8rensen?= <>
 Milus =?ISO-8859-1?Q?J=E1nos?= <>

Lee

_______________________________________________
Evolution-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/evolution-list

Reply via email to