1

Topic: Incomming mail has the wrong time stamp

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.8.7
- Linux/BSD distribution name and version: Ubuntu 14.04 LTS trusty
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====

Is there a way to add a date format for RoundCube?  It looks like that might be why the time stamp for incoming emails from one source in particular is showing up one hour ahead (in the future).  Here is some of the info from the email headers:

Source with wrong time stamp:
Fri, 2 Sep 2016 12:48:19 -0700 (PDT)
Date: Fri, 2 Sep 2016 12:48:21 -0800

Source with correct time stamp:
Fri, 2 Sep 2016 13:36:56 -0700 (PDT)
Date: 2 Sep 2016 13:36:58 -0700

The only difference I see is the one having the wrong time stamp seems to put a three letter day in front of the date string.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Incomming mail has the wrong time stamp

*) Mail headers are generated by MUA (e.g. Roundcube webmail, Thunderbird, Outlook), not mail server.
*) Does your server OS has correct time zone?
*) Do you have per-user time zone setting in your MUA like Roundcube webmail?

3

Re: Incomming mail has the wrong time stamp

From this site:
https://github.com/roundcube/roundcubem … d0be874c78

I modified /usr/share/apache2/roundcubemail-0.9.5/program/lib/Roundcube/rcube_utils.php
Adding '/\s*(Mon|Tue|Wed|Thu|Fri|Sat|Sun)\s*/i',   // remove weekday names

In roundcubemail-0.9.5 this works.  However, on the next release, I made the same changes to:
/usr/share/apache2/roundcubemail-1.0.1/program/lib/Roundcube/rcube_utils.php
and
/usr/share/apache2/roundcubemail-1.0.1/program/lib/Roundcube/rcube_imap_generic.php

with no effect.  Any suggestions on how to make this work in 1.0.1?

4

Re: Incomming mail has the wrong time stamp

It's better ask in Roundcube mailing list. Or, why not upgrade to the latest Roundcube 1.2.2 instead?