[SM-USERS] issue with time in the header

2012-08-16 Thread Fabio Pardi
_Brief Description_: when sending an email using squirrelmail web
interface, there are problems about time. Squirrelmail shows good time,
mail clients not.

_Long Description:_ Our mail server on timezone +2 (Amsterdam) works
perfectly, runs postfix and mails sent/received from anywhere in the
world are shown with the correct time. When sending from SquirrelMail
web interface, then the problem occurs. Squirrelmail shows the correct
time, while on mail client the time is shown 4 hours in the future. Eg:
i sent an email at 14:00. Squirrelmail shows 14:00 while mail client
shows 18:00. It occurs on any mail client.

Investigating a bit deeper, i found out a problem in the header of the
email sent from SquirrelMail:
--

Return-Path: 
X-Original-To: x
Delivered-To: xx
Received: from  (localhost [127.0.0.1])
by xx (Postfix) with ESMTP id 8B4DE17E28
for ; Thu, 16 Aug 2012 15:22:03 *+0200* (CEST)
Received: from x
(SquirrelMail authenticated user my user)
by xx with HTTP;
Thu, 16 Aug 2012 15:22:03 *-0200*
Message-ID: 
Date: Thu, 16 Aug 2012 15:22:03 -*0200*
Subject: now is 15:22
From: my address
To: my address
User-Agent: SquirrelMail/1.4.21
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Priority: 3 (Normal)
Importance: Normal

shown time on the client is 19:22.

---

If i send an email from my mail client, then the header is:

same stuff as above...
for ; Thu, 16 Aug 2012 15:25:44 *+0200* (CEST)
Message-ID: <502CF4D6.7000206@xxx>
Date: Thu, 16 Aug 2012 15:25:42 +*0200*
From: Fabio  
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 
Thunderbird/14.0
MIME-Version: 1.0
...

note that now we can see the correct timezone. +2

---


some more infos to help debugging:

system is Linux Debian Squeeze 64 bit
Squirrelmail 1.4.21
no plugins installed
system time is correct:
date  Thu Aug 16 15:31:35 CEST 2012
date +%z  +0200

php.ini:
[Date]
; Defines the default timezone used by the date functions
date.timezone = Europe/Amsterdam



php -version
PHP 5.3.3-7+squeeze13 with Suhosin-Patch (cli) (built: Jun 10 2012
07:31:32)

squirrelmail's time for my user is configured to be "same as server"

The problem occurs for every user, on every browser anyway.

Any help is strongly appreciated.

Fabio


















--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/-
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): 
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Re: [SM-USERS] issue with time in the header

2012-08-16 Thread Tomas Kuliavas


Fabio Pardi wrote:
> 
> _Brief Description_: when sending an email using squirrelmail web
> interface, there are problems about time. Squirrelmail shows good time,
> mail clients not.
> 
> _Long Description:_ Our mail server on timezone +2 (Amsterdam) works
> perfectly, runs postfix and mails sent/received from anywhere in the
> world are shown with the correct time. When sending from SquirrelMail
> web interface, then the problem occurs. Squirrelmail shows the correct
> time, while on mail client the time is shown 4 hours in the future. Eg:
> i sent an email at 14:00. Squirrelmail shows 14:00 while mail client
> shows 18:00. It occurs on any mail client.
> 
> Investigating a bit deeper, i found out a problem in the header of the
> email sent from SquirrelMail:
> --
> 
> Return-Path: 
> X-Original-To: x
> Delivered-To: xx
> Received: from  (localhost [127.0.0.1])
>   by xx (Postfix) with ESMTP id 8B4DE17E28
>   for ; Thu, 16 Aug 2012 15:22:03 *+0200* (CEST)
> Received: from x
> (SquirrelMail authenticated user my user)
> by xx with HTTP;
> Thu, 16 Aug 2012 15:22:03 *-0200*
> Message-ID: 
> Date: Thu, 16 Aug 2012 15:22:03 -*0200*
> 

Flip invert_time setting to other value. Default is false, but I suspect
that you have it set to true.

You can find this setting under 2. Server Settings in SquirrelMail
configuration utility.

-- 
Tomas
-- 
View this message in context: 
http://old.nabble.com/issue-with-time-in-the-header-tp34307022p34307729.html
Sent from the squirrelmail-users mailing list archive at Nabble.com.


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
-
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): 
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users