Re: [PHP] Parsing mail file

2007-01-31 Thread Dotan Cohen
On 01/02/07, Richard Lynch <[EMAIL PROTECTED]> wrote: Actually, I suspect most people at least make some kind of attempt to read docs before posting here... Reading does not guarantee comprehension. For that matter, reading WHICH docs is always an interesting challenge. Clearly, nobody can re

RE: [PHP] Parsing mail file

2007-01-31 Thread Richard Lynch
On Tue, January 30, 2007 11:06 am, Jay Blanchard wrote: > [snip] > of course people read documentation before asking help > [/snip] > > ROFLMMFAO! Sorry, that just made my day! Actually, I suspect most people at least make some kind of attempt to read docs before posting here... Reading does not

Re: [PHP] Parsing mail file

2007-01-31 Thread Richard Lynch
An mbox file is pretty much just a whole bunch of email files smushed together into one big file. If you pretend that your single email *IS* an mbox, by putting it into a file, it will work. On Tue, January 30, 2007 3:32 am, Pierre Pintaric wrote: > Jim Lucas a écrit : >> Pierre Pintaric wrote: >

Re: [PHP] Parsing mail file

2007-01-31 Thread Richard Lynch
Just leave the email in your Inbox (or whatever mailbox you want) and use this: http://php.net/imap You cna also open up a local file with that, if it's more convenient. On Tue, January 30, 2007 2:58 am, Pierre Pintaric wrote: > Hello there, > > I'm sure this question was ask 1,000 times, but I

Re: [PHP] Parsing mail file [RESOLVED]

2007-01-31 Thread Pierre Pintaric
Finally, after a long course about the fishing philosophy :-) A private discussion with Jon give me a very good way to find a solution. I would to share it with guys who need it : PECL mailparse package: http://pecl.php.net/package/mailparse It parses mail files with attachments (rfc822 and rfc2

Re: [PHP] Parsing mail file

2007-01-30 Thread Jon Anderson
I realize I'm probably stepping on some toes here, but I'm going to assume that there is (judging from the wording) a language barrier here. While I'm all for the "teach a man to fish" philosophy, I'm not sure that language isn't getting in the way of the lesson... Pierre Pintaric wrote: I don

Re: [PHP] Parsing mail file

2007-01-30 Thread Pierre Pintaric
Roman Neuhauser a écrit : Because otherwise you cannot possibly understand how to use a ready-made library correctly? All of them (those who teach how to use Google) certainly knows all about GD (jpeg, gif, png, ...), zip, EXT3/FAT32/NTFS system, ... I am certainly on the wrong place, sorry.

Re: [PHP] Parsing mail file

2007-01-30 Thread Pierre Pintaric
Jim Lucas a écrit : But don't just ask us to hand you the answer. We are all here to teach each other to become better programmers. We should not be cut/paste junkies. Thanks for your help... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

Re: [PHP] Parsing mail file

2007-01-30 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-30 18:03:22 +0100: > I am so sorry, I'm so inferior to you great developper. [...] > Now, if you don't have any useful response - not sarcastic, :) > I only wanted to use libraries, but I can see that you never use them, > you code your onw low levels functions. No,

Re: [PHP] Parsing mail file

2007-01-30 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-30 10:35:34 -0600: > Jim Lucas wrote: > >he wants a cut/paste answer to his problem. He doesn't want to build > >something and learn how it all works. He just wants it to work out of > >the box. > > > Why would someone want to read an RFC if he didn't have to? May

RE: [PHP] Parsing mail file

2007-01-30 Thread Tim
> -Message d'origine- > De : Dotan Cohen [mailto:[EMAIL PROTECTED] > Envoyé : mardi 30 janvier 2007 12:48 > À : Pierre Pintaric > Cc : php-general@lists.php.net > Objet : Re: [PHP] Parsing mail file > > On 30/01/07, Pierre Pintaric <[EMAIL PROTECTED]>

Re: [PHP] Parsing mail file

2007-01-30 Thread Jim Lucas
Pierre Pintaric wrote: Myron Turner a écrit : Jim Lucas wrote: he wants a cut/paste answer to his problem. He doesn't want to build something and learn how it all works. He just wants it to work out of the box. Why would someone want to read an RFC if he didn't have to? Maybe we should a

Re: [PHP] Parsing mail file

2007-01-30 Thread Myron Turner
Jim Lucas wrote: he wants a cut/paste answer to his problem. He doesn't want to build something and learn how it all works. He just wants it to work out of the box. Why would someone want to read an RFC if he didn't have to? Maybe we should all start by writing our own GUI's. Nothing like

Re: [PHP] Parsing mail file

2007-01-30 Thread David Giragosian
On 1/30/07, Jay Blanchard <[EMAIL PROTECTED]> wrote: [snip] of course people read documentation before asking help [/snip] ROFLMMFAO! Sorry, that just made my day! Wow. I learned a new acronym. What a great day! David

RE: [PHP] Parsing mail file

2007-01-30 Thread Jay Blanchard
[snip] of course people read documentation before asking help [/snip] ROFLMMFAO! Sorry, that just made my day! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Parsing mail file

2007-01-30 Thread Pierre Pintaric
Myron Turner a écrit : Jim Lucas wrote: he wants a cut/paste answer to his problem. He doesn't want to build something and learn how it all works. He just wants it to work out of the box. Why would someone want to read an RFC if he didn't have to? Maybe we should all start by writing our

Re: [PHP] Parsing mail file

2007-01-30 Thread Jim Lucas
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-30 12:17:01 +0100: Roman Neuhauser a écrit : That's probably because you don't know enough about the field to use the right search terms, since PEAR *does* contain a package for parsing email messages, and I have no problems arriving at it fr

Re: [PHP] Parsing mail file

2007-01-30 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-30 12:17:01 +0100: > Roman Neuhauser a écrit : > >That's probably because you don't know enough about the field to use the > >right search terms, since PEAR *does* contain a package for parsing email > >messages, and I have no problems arriving at it from the search bo

Re: [PHP] Parsing mail file

2007-01-30 Thread Dotan Cohen
On 30/01/07, Pierre Pintaric <[EMAIL PROTECTED]> wrote: If somebody uses a great function and want to share, I will please him... :-) Er, could you please define "I will please him"? I think that you've scared off a few potential helpers Dotan Cohen http://lyricslist.com/lyrics/artist_a

Re[2]: [PHP] Parsing mail file

2007-01-30 Thread Mauro Lorenzutti
Hi Pierre, I have the same problem: I'm searching a function to parse an email file. I found this one: http://pear.php.net/package/Net_IMAP/ I think that you can extract the code you need from the function getParsedHeaders. Regards, Mauro Lorenzutti e-mail: [EMAIL PROTECTED] --

Re: [PHP] Parsing mail file

2007-01-30 Thread Pierre Pintaric
Roman Neuhauser a écrit : That's probably because you don't know enough about the field to use the right search terms, since PEAR *does* contain a package for parsing email messages, and I have no problems arriving at it from the search box on http://pear.php.net/ ... ftp://ftp.rfc-editor.org/in

Re: [PHP] Parsing mail file

2007-01-30 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-30 10:18:54 +0100: > I receive mail file from my MTA (ie QMail), that works fine. Now, I > would to find a class or a function that parse the mail and gives > headers informations, body of the mail (even if it is a multi-part mail) > and file attachments. > I found

Re: [PHP] Parsing mail file

2007-01-30 Thread Pierre Pintaric
Jim Lucas a écrit : Pierre Pintaric wrote: Hello there, I'm sure this question was ask 1,000 times, but I didn't find any archive about this, that's why I need help... Here is my problem: I receive mail file from my MTA (ie QMail), that works fine. Now, I would to find a class or a function

Re: [PHP] Parsing mail file

2007-01-30 Thread Jim Lucas
Pierre Pintaric wrote: Hello there, I'm sure this question was ask 1,000 times, but I didn't find any archive about this, that's why I need help... Here is my problem: I receive mail file from my MTA (ie QMail), that works fine. Now, I would to find a class or a function that parse the mail

[PHP] Parsing mail file

2007-01-30 Thread Pierre Pintaric
Hello there, I'm sure this question was ask 1,000 times, but I didn't find any archive about this, that's why I need help... Here is my problem: I receive mail file from my MTA (ie QMail), that works fine. Now, I would to find a class or a function that parse the mail and gives headers infor

[PHP] Parsing mail file

2007-01-30 Thread Pierre Pintaric
Hello there, I'm sure this question was ask 1,000 times, but I didn't find any archive about this, that's why I need help... Here is my problem: I receive mail file from my MTA (ie QMail), that works fine. Now, I would to find a class or a function that parse the mail and gives headers infor