Marc Groot Koerkamp wrote:
p dont think zei:
I'm using SM1.2.10. My problem is that the 'date' field in the header
of
all emails sent out from SM are incorrectly labeled.
Whereas I would expect the field to be called 'Date:', the term
'X-te:' is
used. The date itself is correct and in the right format.
It looks like there is some sort of header replacement/overwrite that is putting "X-" on top of "Date". I'd have to dig around in the code to find it, but maybe Marc can comment faster? Marc?
Ehmm, we do not write X-te headers. The location of the old smtp code is functions/smtp.php
It's been a very very long time ago I looked at that file. SM 1.4 contains a rewritten class to send mail.
Regards,
Marc Groot Koerkamp (AKNA stekkel)
Hey guys,
thanks for all your help thus far. I have come a long way in discovering what the problem is and why emails sent from SM have a 'X-te' field instead of the date.
I am running 1.2.10, but have confirmed the problem to still exist in 1.4.0. I am running on a win32 (win2k pro) platform with apache 1.3.27 and php 4.2.3
It would appear that in smtp.php, and where ever it has been moved to in 1.4.0, that there is a problem with the timezone() function call (line 327 in 1.2.10)
When I remove the reference to timezone(), the problem disappears. i.e. $date = date("D, j M Y H:i:s ", mktime()) . timezone(); becomes $date = date("D, j M Y H:i:s ", mktime());
This would confirm what various mail clients are saying - they all complain about invalid date headers. I think the X-te was generated by mail server.
So, does anyone know of any problems in using the timezone() function under win32? Am I the only one having this problem?
To what extent does it matter if SM doesn't send the timezone stamp at the end of the date field?
Finally, where does it get this timezone from? I presume that it is from the local (client) system, and not the web server, but can somebody please confirm this too.
Many thanks, Jeremy
------------------------------------------------------- This SF.net email is sponsored by: eBay Get office equipment for less on eBay! http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 -- squirrelmail-users mailing list List Address: [EMAIL PROTECTED] List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users