Hello, For my manager I need to write a script to extract the From: e-mail addresses from his e-mail account. Then they are sent invitations to join our mailing list(s). I inherited this Dovecot server, I have not done anything with Dovecot before. Could you give me some direction on if/how can this be done? We run Dovecot 1.0.1 (dovecot --version) Thank you, Iv
On Sun, 25 Jul 2010 12:35:46 +0200 Iv Ray <pobox at verysmall.org> articulated:> For my manager I need to write a script to extract the From: e-mail addresses from his e-mail account. Then they are sent invitations to join our mailing list(s). > > I inherited this Dovecot server, I have not done anything with Dovecot before. > > Could you give me some direction on if/how can this be done? > > We run Dovecot 1.0.1 (dovecot --version) > > Thank you, IvFor starters, you should update your version of Dovecot; it is deprecated. Second, are you looking for a Perl script, I would assume so, or something else? -- Jerry ? Dovecot.user at seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________ A foolish consistency is the hobgoblin of little minds. Ralph Waldo Emerson
On 25/07/2010 12:35, Iv Ray wrote:> Hello, > > For my manager I need to write a script to extract the From: e-mail addresses from his e-mail account. Then they are sent invitations to join our mailing list(s). > > I inherited this Dovecot server, I have not done anything with Dovecot before. > > Could you give me some direction on if/how can this be done? > > We run Dovecot 1.0.1 (dovecot --version) > > Thank you, Iv >In maildir i did something like: foreach (files in maildir) as $i do sed -n "s/^From.*<\(.*\)>$/\1/p" $i >> $outfile done -- Simone Caruso IT Consultant p.iva: 03045250838
Hi, > For my manager I need to write a script to extract the From: e-mail addresses from his e-mail account. Use reformail with "-x": http://www.courier-mta.org/reformail.html > Extracting headers > > The -x and -X options extract the indicated headers from the message, and print them to standard output. Multiple -x and -X options can be specified at the same time, and may be intermixed. > > The -x option extracts and prints the contents of the header. The -X option prints the name of the header as well.