Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > How read email headers?

Reply
Thread Tools

How read email headers?

 
 
PHP2
Guest
Posts: n/a
 
      04-05-2004
I wish read email headers... how do it with Perl?

I wish send email from server to
and if is invalid after some time I'll receive
'nodelivery' message... how I can read 'nodelivery' email header?

GP


 
Reply With Quote
 
 
 
 
Brian McCauley
Guest
Posts: n/a
 
      04-05-2004
"PHP2" <> writes:

> I wish read email headers... how do it with Perl?


Mail::Header

> I wish send email from server to
> and if is invalid after some time I'll receive
> 'nodelivery' message... how I can read 'nodelivery' email header?


You probably also want a module to read your mailbox.

There are modules in the usual place for reading various types of
mailbox (Unix, IMAP, POP3...)

--
\\ ( )
. _\\__[oo
.__/ \\ /\@
. l___\\
# ll l\\
###LL LL\\
 
Reply With Quote
 
 
 
 
Martien Verbruggen
Guest
Posts: n/a
 
      04-05-2004
On Mon, 5 Apr 2004 16:10:17 +0200,
PHP2 <> wrote:
> I wish read email headers... how do it with Perl?


Mail::Header, which comes as part of the MailTools package. It's
available from CPAN.

> I wish send email from server to
> and if is invalid after some time I'll receive
> 'nodelivery' message... how I can read 'nodelivery' email header?


First of all, you'll have to get the messages from your mailbox. It
depends on where that is stored on how you do that. There are Perl
modules available for POP and IMAP, as well as modules to parse
various mailbox file formats.

http://search.cpan.org/

Let me give you a little warning though: while 90% of the bounce
messages are reasonably formatted, and easy to parse, and fall in a
few categories, there are some cutesy mail admins out there, who've
customised the crap out of their mail gateway, with the result that
their bounce messages are almost impossible to recognise as such.

The best thing to do for this sort of thing, is to set up a dedicated
email address that you send your "probe" email from. That way, you
will get all replies on that account. You will still have some email
that you will need to deal with manually: the ones I mentioned above,
and the ones from real people who reply to your message themselves.

Martien
--
|
Martien Verbruggen |
Trading Post Australia |
|
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Email (gmail, MacMail) - delivery report (email opened/read) Elainie Computer Support 3 01-22-2007 10:42 PM
Help: Program to read from EOR end of last read? snoopy_@excite.com Java 3 04-07-2006 12:32 PM
Binary data stored in SQL Server: can't read from ASP.NET, *can* read from Access? Doug ASP .Net 3 11-04-2005 07:35 PM
Re: How to change Read Only Constraint to Read-Write Isaac VHDL 0 07-10-2003 01:43 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57