PHP Classes

Message is null

Recommend this page to a friend!

      pop3.class.inc  >  All threads  >  Message is null  >  (Un) Subscribe thread alerts  
Subject:Message is null
Summary:POP3_TEST.php works fine but the message is blank
Messages:3
Author:illi baro
Date:2007-06-29 03:19:55
Update:2007-07-02 12:48:42
 

  1. Message is null   Reply   Report abuse  
Picture of illi baro illi baro - 2007-06-29 03:19:55
Hi

i am trying to use the pop3_test.php with its default class file and so far everything is fine except the message header is null.



Initializing.....
Checking Email Connectivity.....
Connected to email Server...
values for mysql variablesResource id #6 localhost mydb password ..
Processing Email...1
table name is inbox link is Resource id #6 msg table is messages
message is
Connected to mysql database & validating inbox & message tables.....
message payload is

The log file shows no issues

/-------------------------------------------------------------------
/--- Log File: poplog.log
/--- Log Open: Thursday, 28 Jun 2007 @ 18:54:11
/-------------------------------------------------------------------
18:54:11 -- Connecting to "pop3.mymailserver.com:110" !!!
18:54:11 -- +OK Hello there.
18:54:11 -- STATUS: AUTHORIZATION
18:54:11 -- USER myname@mysite.com
18:54:11 -- +OK Password required.
18:54:11 -- PASS asdgagasgagagagaga
18:54:11 -- +OK logged in.
18:54:11 -- STATUS: TRANSACTION
18:54:11 -- STAT
18:54:11 -- +OK 12 2604294
18:54:11 -- LIST
18:54:11 -- +OK POP3 clients that break here, they violate STD53.
18:54:11 -- 1 2441550
18:54:11 -- 2 1607
18:54:11 -- 3 2052
18:54:11 -- 4 120643
18:54:11 -- 5 1900
18:54:11 -- 6 3917
18:54:11 -- 7 2115
18:54:11 -- 8 12268
18:54:11 -- 9 4879
18:54:11 -- 10 2369
18:54:11 -- 11 1523
18:54:11 -- 12 9471
18:54:11 -- .
18:54:11 -- UIDL
18:54:11 -- +OK
18:54:11 -- 1 1180935537.M929841P26911V0000000000000014I0048C8B9_0.cm-ms6.mymailserver.com,S=2408535
18:54:11 -- 2 1180990185.M469724P27692V0000000000000016I0088C6CC_0.cm-ms5.mymailserver.com,S=1580
18:54:11 -- 3 1181440761.M837169P18845V0000000000000015I0115D6B3_0.cm-ms2.mymailserver.com,S=2010
18:54:11 -- 4 1181445006.M870136P27111V0000000000000016I014A6E81_0.cm-ms3.mymailserver.com,S=118993
18:54:11 -- 5 1181457789.M762917P26107V0000000000000015I01824E59_0.cm-ms4.mymailserver.com,S=1860
18:54:11 -- 6 1181614370.M832062P31831V0000000000000015I01433140_0.cm-ms2.mymailserver.com,S=3861
18:54:11 -- 7 1181668719.M427753P23649V0000000000000016I011CB6FF_0.cm-ms5.mymailserver.com,S=2069
18:54:11 -- 8 1181774932.M438169P15087V0000000000000016I015D75A3_0.cm-ms3.mymailserver.com,S=12081
18:54:11 -- 9 1182039633.M607119P23804V0000000000000016I005E7A54_0.cm-ms5.mymailserver.com,S=4812
18:54:11 -- 10 1182041400.M968930P17389V0000000000000015I00D5D595_0.cm-ms2.mymailserver.com,S=2326
18:54:11 -- 11 1182399396.M367039P7301V0000000000000016I01202912_0.cm-ms3.mymailserver.com,S=1485
18:54:11 -- 12 UID12-1182481018
18:54:11 -- .
18:54:11 -- TOP 1 0
18:54:11 -- +OK headers follow.
18:54:11 -- Complete.


How do i debug this issue

  2. Re: Message is null   Reply   Report abuse  
Picture of Steffen Stollfuß Steffen Stollfuß - 2007-07-02 12:47:30 - In reply to message 1 from illi baro
Hy,

I have tested it with the last version and every thing works fine.

Seem to be a problem by your mail server.

Go into the file pop3.class.inc and jump to line 442 where you will find
$response = $this->_getnextstring();

Under this you put var_dump($response) or logging it with the logging function.

Now you can see what exactly your pop3 server response.

regards
HempCluster

  3. Re: Message is null   Reply   Report abuse  
Picture of Steffen Stollfuß Steffen Stollfuß - 2007-07-02 12:48:42 - In reply to message 2 from Steffen Stollfuß
Sorry my mistake....the linenumber is 427.

 
For more information send a message to info at phpclasses dot org.