Bug 59951 - Imap creates bad timezone
Summary: Imap creates bad timezone
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: glibc (Show other bugs)
(Show other bugs)
Version: 7.2
Hardware: All Linux
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: David Lawrence
Depends On:
TreeView+ depends on / blocked
Reported: 2002-02-15 18:31 UTC by Paul Moore
Modified: 2016-11-24 15:14 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-02-23 03:23:10 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2002:056 contract SHIPPED_LIVE GNU C Library bugfix update 2002-04-02 05:00:00 UTC

Description Paul Moore 2002-02-15 18:31:09 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; T312461)

Description of problem:
/usr/sbin/imapd creates bad unix mailbox From line due to bad timezone 

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Send self mail from a foreign account.
2. Collect mail using pop on an Outlook or Outlook Express client.
3. Move message to a folder on an imap server.

Actual Results:  Message will appear to be received at the current time in GMT, 
which is then converted to an equivalent local time.

Expected Results:  Message should appear to be received at the current time in 
the current local timezone.

Additional info:

The following line in mailbox files on the imap server is responsible for the 
From username@your.imap.server.com Wed Feb 13 17:07:51 2002 -0000
in my case this should be:
From username@your.imap.server.com Wed Feb 13 17:07:51 2002 +1000

This bug is documented in /usr/share/doc/imap-2000c/bugs.txt dated
Jan 10, 2001 from imap RPM is: imap-2000c-15.i386.rpm

"In some versions of Redhat Linux, SVR4-style timezone name lookup
doesn't work properly due to a bug in glibc.  The workaround is to
edit os_lnx.c to include tz_bsd.c instead of tz_sv4.c.  Note that
other versions of Linux don't support BSD-style timezone name
lookup, so don't make this change unless it's needed on your system."

The problem appears on both Outlook 2000 SR-1 ( and
Outlook Express 5.50.4807.1700 clients.

The problem appears on both imap and imaps implementations.

Comment 1 Paul Moore 2002-02-15 19:32:51 UTC
Following instructions in /usr/share/doc/imap-2000c/bugs.txt as documented:

Application of /usr/src/redhat/SOURCES/imap-2000c-redhat-timezone.patch
-rw-r--r-- 1 root root 297 Feb 16 05:08 imap-2000c-redhat-timezone.patch
--- imap-2000c/src/osdep/unix/os_lnx.c.redhat-timezone  Wed Oct 25 09:41:08 2000
+++ imap-2000c/src/osdep/unix/os_lnx.c  Sat Feb 16 05:08:30 2002
@@ -42,4 +42,5 @@
 #define fork vfork
 #include "tcp_unix.c"
 #include "gr_waitp.c"
-#include "tz_sv4.c"
+/* #include "tz_sv4.c" */
+#include "tz_bsd.c"

... does NOT result in any noticable change in behaviour as far as correct
timezone stamping of unix mailbox From lines is concerned. :(

Problem persists.

Comment 2 Mike A. Harris 2002-02-22 03:33:40 UTC
If this is indeed a bug in glibc, then it is probably something that
should be fixed in glibc I think.  I have no idea either way, but
patching imap to fix a glibc bug doesn't seem right to me.

Reassigning to glibc component.

Comment 3 Jakub Jelinek 2002-04-05 09:05:42 UTC
Should be fixed in glibc-2.2.4-24.

Note You need to log in before you can comment on or make changes to this bug.