d3lt49 wrote:
> On Nov 13, 2007, at 1:07 PM, Alexandru Stanoi wrote:
>>>> Which PHP version do you use?
>>>>
>>>> Try to display $mail->getHeader( "Date" ) to see if the Date
>>>> header is missing.
>>> thanks for your response,
>>> I have PHP 5.2.4
>>> $mail->getHeader("Date") returns current date.
>> Then it must be that the Date header is set by the IMAP server to
>> the current date/time.
>>
>> When parsing a mail from IMAP/POP3, ezcMail just reads the mail
>> source from the server and fills its properties with values from the
>> source. The Date header should not be changed by ezcMail.
>>
>> Some more information about your IMAP server and the PHP script
>> would help.
>
> PHP script: http://truesolutions.pl/_files/receiver.php (in lines
> about 42 - 105, just open - it's hihlight_file function script)
>
> PHP Info: http://truesolutions.pl/test.php
>
> But I don't know how to determine which IMAP/POP3 my provider is using.
I see in your PHP script that you call $msg->generateHeaders() on line
49. Probably you call this in order to have a text version of the
message headers. But the generateHeaders() has the effect of setting the
Date header of $msg to the current date/time.
One solution would be to call $msg->generateHeaders() on line 109, in
place of $header.
Hope this helps.
Cheers,
Alex.
--
Alexandru Stanoi
eZ Components System Developer
eZ Systems | http://ez.no
--
Components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/components