PHP Classes

parse_message.php

Recommend this page to a friend!

      POP3 e-mail client  >  All threads  >  parse_message.php  >  (Un) Subscribe thread alerts  
Subject:parse_message.php
Summary:downloads/decodes multiple messages
Messages:18
Author:william drescher
Date:2007-05-29 11:39:45
Update:2010-06-08 04:05:18
 
  1 - 10   11 - 18  

  1. parse_message.php   Reply   Report abuse  
Picture of william drescher william drescher - 2007-05-29 11:39:45
Using the method: $message_file='pop3://'.$user.':'.$password.'@localhost/'.$message.

does this download all messages to one file ?
will mime_parser then decode all at once ?

THanks

  2. Re: parse_message.php   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2007-05-29 21:13:24 - In reply to message 1 from william drescher
That only retrieves the message in the mailbox that you specify.

  3. Re: parse_message.php   Reply   Report abuse  
Picture of william drescher william drescher - 2007-05-30 00:40:44 - In reply to message 2 from Manuel Lemos
Thank you, I was unclear.
With one mailbox, will this download multiple messages from that mailbox and then will parse_message parse the multiple messages from that one mailbox ?

  4. Re: parse_message.php   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2007-05-30 02:01:51 - In reply to message 3 from william drescher
It can do that if you iterate it over all messages in the mailbox.

  5. Re: parse_message.php   Reply   Report abuse  
Picture of william drescher william drescher - 2007-05-30 10:10:14 - In reply to message 4 from Manuel Lemos
Thank you

  6. Re: parse_message.php   Reply   Report abuse  
Picture of phamdanghai phamdanghai - 2007-06-06 03:54:19 - In reply to message 5 from william drescher

can you tell me the way get new message?


Thanks


  7. Re: parse_message.php   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2007-06-06 04:21:29 - In reply to message 6 from phamdanghai
Take a look at the test_pop3.php example script.

  8. Re: parse_message.php   Reply   Report abuse  
Picture of william drescher william drescher - 2007-06-06 10:44:38 - In reply to message 7 from Manuel Lemos
The parse_message example uses the POP3 stream handler and is not clear.

Much simpler is to use the POP3 example to open the mailbox and then use OpenMessage to open the message (use -1 for $lines, the default) and then use GetMessage to actually get the message and then use decode to parse the message. If you are testing you can use any number for $count that is larger than you message - say 20,000 - if you have enough memory for PHP.

  9. Re: parse_message.php   Reply   Report abuse  
Picture of girish girish - 2007-06-19 05:15:29 - In reply to message 7 from Manuel Lemos
how to get messages using test_pop3 script. i am getting subject,from email,but messages are not getting.

  10. Re: parse_message.php   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2007-06-19 21:40:52 - In reply to message 9 from girish
The RetrieveMessage function in the test_pop3.php example script just retrieve the first 2 lines of the message. Pass -1 instead of 2 and the function returns the whole message.

 
  1 - 10   11 - 18