Re: [Evolution] I want to collect all email address in a folder




finally, I wrote a simple shell script to collect mail addresses. I provided
it here for further reference.

first, create a shell script

#! /bin/sh
sed -n -r '/^[fF]rom.*:.*\w+([-+.]\w+)* \w+([-.]\w+)*\.\w+([-.]\w+)*/p' - |
egrep -o '\w+([-+.]\w+)* \w+([-.]\w+)*\.\w+([-.]\w+)*' >>
/home/xiang/tmp/addr.txt

or 

maybe a simple one:
#! /bin/sh
sed -n -r '/^From: /p' - | grep -E -o
'\w+([-+.]\w+)* \w+([-.]\w+)*\.\w+([-.]\w+)*' >> yourfile.txt

next, one should create a filter in evolution. In the filter, take the
action of "pipe to program" and choose the file created above.

apply the filter for those mails you want.
-- 
View this message in context: 
http://gnome-evolution-general.1774414.n4.nabble.com/I-want-to-collect-all-email-address-in-a-folder-tp2251554p2259693.html
Sent from the Gnome Evolution - General mailing list archive at Nabble.com.



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