Bug 59951 - Imap creates bad timezone
Summary: Imap creates bad timezone
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: glibc
Version: 7.2
Hardware: All
OS: Linux
medium
high
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
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:
Clone Of:
Environment:
Last Closed: 2002-02-23 03:23:10 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2002:056 0 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 
information.

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


How reproducible:
Always

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 
mistake:
From username.server.com Wed Feb 13 17:07:51 2002 -0000
in my case this should be:
From username.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 (9.0.0.5414) 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
==========start=========
--- 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"
============end===========

... 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.