Hello Janos,

I'll send the headers to you directly. Please keep them private.


As far as I know Exchange sets the date to UTC on purpose and lets the client 
handle the display of the correct time.
After some googling I came to the conclusion that the RFC 2822 is not very 
specific on this and only says "the date and time-of-day _should_ express local 
time".

http://stackoverflow.com/questions/10487286/should-email-date-header-be-senders-local-time-or-utc

I can't really find specific information why exchange (apparently since version 
2010) sets the date header to UTC or how to change this.

I will be on vacation for two weeks from today on, but I'll try to read and 
answer my emails.

Regards Joern

-----Ursprüngliche Nachricht-----
Von: Janos SUTO [mailto:s...@acts.hu] 
Gesendet: Mittwoch, 22. Juli 2015 21:51
An: Piler User (piler-user@list.acts.hu)
Betreff: Re: Sent time in emails returned by search


On 2015-07-22 00:50, Joern Quillmann, kuehlhaus AG wrote:
> https://www.mail-archive.com/piler-user@list.acts.hu/msg00437.html
> 
> Sorry for reviving this old thread but the problem still exists for me.
> Exchange 2010 sends all emails with time set to UTC +0000
> 
> An email was sent at 16:55:17, we are timezone Europe/Berlin (GMT+2)
> but piler WebUI displays:  Date: Tue, 21 Jul 2015 14:55:17 +0000
> 
> System is Ubuntu 15.04
> Piler is master branch (few days ago)
> System timezone is Europe/Berlin
> Piler timezone is set to  $config['TIMEZONE'] = 'Europe/Berlin'; in
> config-site.php
> 
> 
> 
>> no problem. I'm about to add a new config option, eg. TIMEZONE_OFFSET
>> with an empty value ("") meaning don't alter the Date: header. However
>> if you set it, then it rewrites the Date header.
> 
> @Janos did you ever add the config option TIMEZONE_OFFSET to piler?
> I can't find it in the config files.

no, not really. Not sure what happened after the end of the thread.

Anyway I believe that exchange shouldn't touch the Date: header field.
Instead, the mua should put it to the email headers when assembling
the message.

The gui displays the the Date line as it is in the email. It's pretty
unfortunate if exchange messes or rewrites the date field.

Anyway I'm still not sure how this should be fixed. Can you show me
all the Received: and Date: lines from the email?

Janos


Reply via email to