------------------------------------------------ On Tue, 29 Jul 2003 01:49:19 +0000, Pablo Fischer <[EMAIL PROTECTED]> wrote:
> Hi! > > Reading the thread: "Extracting string", extracting the extension and the > basename I got sorprised that exists a module to do that (today I was doing > that, to separate the basename and extension, but now that I have finish I > know that exists a module :-(). > > So I would like to know if exists a module that could parse mails, I need to > identify the reasons of WHY a mail couldnt be delivered. I found Mail::Box > and Mail::Box::Grep (If I remember fine), but exists a module that check only > the headers of the messages? > Its not the simplest of modules to use but Mail::Box provides a very good foundation for doing what you want. Essentially you load the message using one of the box manager methods (or directly reading from a filehandle) depending on where the message is located, then you can use the message object methods to access the header, then use any of the header methods to access its parts. Very extensive documentation and a mailing list exists. You may also want to check out MIME::Parser for similar functionality with not quite as steep of a learning curve. Whatever way you choose you should definitely use a module for this kind of work as messages are incredibly complex... http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
