Bug 58686 - Some emails show Unknown date : click on email allows to update field correctly
Summary: Some emails show Unknown date : click on email allows to update field correctly
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: IMAP (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Carsten Burghardt
URL:
Keywords:
: 62534 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-05-19 18:38 UTC by Christophe Prud'Homme
Modified: 2003-10-22 21:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christophe Prud'Homme 2003-05-19 18:38:05 UTC
Version:           1.5.9 (using KDE 3.1.9)
Compiler:          gcc version 3.3 20030509 (Debian prerelease)
OS:          Linux (i686) release 2.4.20

For some time, with kmail CVS, I get  some emails with unknown in Date Field.
Note that if I click on the email then the date is shown i.e. the Data Field is updated.
Comment 1 Ingo Klöcker 2003-05-19 23:30:52 UTC
Subject: Re:  New: Some emails show Unknown date : click on =?iso-8859-1?q?email	allows=20to=20update=20field?= correctly

Let me guess. This happens for IMAP folders, right?

Comment 2 Christophe Prud'Homme 2003-05-20 00:01:19 UTC
Subject: Re:  Some emails show Unknown date : click on email allows to update field correctly

[ Monday 19 May 2003 23:30 Ingo "KlXcker" ]
| ------- You are receiving this mail because: -------
| You reported the bug, or are watching the reporter.
|
| http://bugs.kde.org/show_bug.cgi?id=58686
|
|
|
|
| ------- Additional Comments From kloecker@kde.org  2003-05-19 23:30 -------
| Subject: Re:  New: Some emails show Unknown date : click on
| =?iso-8859-1?q?email	allows=20to=20update=20field?= correctly
|
| Let me guess. This happens for IMAP folders, right?
yes that's right.

Sorry I forgot to mention that.

C.
Comment 3 Ingo Klöcker 2003-05-21 00:35:49 UTC
Subject: Re:  Some emails show Unknown date : click on email =?iso-8859-1?q?allows	to=20update=20field?= correctly

Could you please send us the header of a message for which this happens?

Comment 4 Christophe Prud'Homme 2003-05-21 11:10:45 UTC
Subject: Re:  Some emails show Unknown date : click on email allows to update field correctly

[ Wednesday 21 May 2003 00:35 Ingo "KlXcker" ]
| ------- You are receiving this mail because: -------
| You reported the bug, or are watching the reporter.
|
| http://bugs.kde.org/show_bug.cgi?id=58686
|
|
|
|
| ------- Additional Comments From kloecker@kde.org  2003-05-21 00:35 -------
| Subject: Re:  Some emails show Unknown date : click on email
| =?iso-8859-1?q?allows	to=20update=20field?= correctly
|
| Could you please send us the header of a message for which this happens?
here is one

Return-Path: <gnomemeeting-list-admin@gnome.org>
Received: from po9.mit.edu (po9.mit.edu [18.7.21.65])
	by po9.mit.edu (Cyrus v2.1.5) with LMTP; Wed, 21 May 2003 04:06:30 -0400
X-Sieve: CMU Sieve 2.2
Received: from pacific-carrier-annex.mit.edu by po9.mit.edu (8.12.4/4.7) id h4L86C37022289; Wed, 21 May 2003 04:06:24 -0400 (EDT)
Received: from mail.gnome.org (moniker.gnome.org [209.116.70.73])
	by pacific-carrier-annex.mit.edu (8.12.4/8.9.2) with ESMTP id h4L83LTA022058
	for <prudhomm@mit.edu>; Wed, 21 May 2003 04:03:21 -0400 (EDT)
Received: from moniker.gnome.org (moniker.gnome.org [127.0.0.1])
	by mail.gnome.org (Postfix) with ESMTP
	id CEF09181F8; Wed, 21 May 2003 04:03:19 -0400 (EDT)
Delivered-To: gnomemeeting-list@gnome.org
Received: from seconix.com (seconix.com [213.193.144.104])
	by mail.gnome.org (Postfix) with ESMTP id 3DD6C181F8
	for <gnomemeeting-list@gnome.org>; Wed, 21 May 2003 04:02:22 -0400 (EDT)
Received: from heraclite.info.ucl.ac.be (heraclite.info.ucl.ac.be [130.104.229.86])
	by seconix.com (Postfix) with ESMTP id 4AF72BE7E
	for <gnomemeeting-list@gnome.org>; Wed, 21 May 2003 10:06:41 +0200 (CEST)
Subject: Re: [GnomeMeeting-list] Unlimiting Bandwidth?
From: Damien Sandras <dsandras@seconix.com>
To: gnomemeeting-list@gnome.org
In-Reply-To: <1053464924.31312.307.camel@pc04771.dmacc.cc.ia.us>
References: <1053352150.1152.20.camel@pc04771.dmacc.cc.ia.us>
	 <1053352518.15858.24.camel@heraclite>
	 <1053361218.3322.1.camel@pc04771.dmacc.cc.ia.us>
	 <1053371065.22278.7.camel@linuxzone>
	 <1053379651.10148.124.camel@pc04771.dmacc.cc.ia.us>
	 <1053418398.3945.3.camel@heraclite>
	 <1053442746.31312.93.camel@pc04771.dmacc.cc.ia.us>
	 <1053443214.10264.7.camel@heraclite>
	 <1053464924.31312.307.camel@pc04771.dmacc.cc.ia.us>
Content-Type: text/plain
Message-Id: <1053504273.30129.5.camel@heraclite>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.3.3 (Preview Release)
Content-Transfer-Encoding: 7bit
Sender: gnomemeeting-list-admin@gnome.org
Errors-To: gnomemeeting-list-admin@gnome.org
X-BeenThere: gnomemeeting-list@gnome.org
X-Loop: gnomemeeting-list@gnome.org
X-Mailman-Version: 2.0.12
Precedence: bulk
Reply-To: gnomemeeting-list@gnome.org
List-Help: <mailto:gnomemeeting-list-request@gnome.org?subject=help>
List-Post: <mailto:gnomemeeting-list@gnome.org>
List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gnomemeeting-list>,
	<mailto:gnomemeeting-list-request@gnome.org?subject=subscribe>
List-Id: GnomeMeeting mailing list <gnomemeeting-list.gnome.org>
List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gnomemeeting-list>,
	<mailto:gnomemeeting-list-request@gnome.org?subject=unsubscribe>
List-Archive: <http://mail.gnome.org/archives/gnomemeeting-list/>
Date: 21 May 2003 10:04:33 +0200
X-Spam-Score: -1.3
X-Spam-Flag: NO
X-Scanned-By: MIMEDefang 2.28 (www . roaringpenguin . com / mimedefang)
X-UID: 682529
Comment 5 Christophe Prud'Homme 2003-05-21 11:48:19 UTC
Subject: Re:  Some emails show Unknown date : click on email allows to update field correctly

[ Wednesday 21 May 2003 00:35 Ingo "KlXcker" ]
| ------- You are receiving this mail because: -------
| You reported the bug, or are watching the reporter.
|
| http://bugs.kde.org/show_bug.cgi?id=58686
|
|
|
|
| ------- Additional Comments From kloecker@kde.org  2003-05-21 00:35 -------
| Subject: Re:  Some emails show Unknown date : click on email
| =?iso-8859-1?q?allows	to=20update=20field?= correctly
|
| Could you please send us the header of a message for which this happens?
here is another one from debian-kde

Return-Path: <bounce-debian-kde=prudhomm=MIT.EDU@lists.debian.org>
Received: from po9.mit.edu (po9.mit.edu [18.7.21.65])
	by po9.mit.edu (Cyrus v2.1.5) with LMTP; Wed, 21 May 2003 05:39:46 -0400
X-Sieve: CMU Sieve 2.2
Received: from fort-point-station.mit.edu by po9.mit.edu (8.12.4/4.7) id h4L9de35019950; Wed, 21 May 2003 05:39:40 -0400 (EDT)
Received: from murphy.debian.org (murphy.debian.org [146.82.138.6])
	by fort-point-station.mit.edu (8.12.4/8.9.2) with ESMTP id h4L9ddpY003299
	for <prudhomm@MIT.EDU>; Wed, 21 May 2003 05:39:40 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
	by murphy.debian.org (Postfix) with QMQP
	id 297C21FC28; Wed, 21 May 2003 04:37:13 -0500 (CDT)
Old-Return-Path: <germain.chazot@insa-lyon.fr>
Received: from pop.univ-lyon1.fr (pop.univ-lyon1.fr [134.214.100.7])
	by murphy.debian.org (Postfix) with ESMTP id 892FE1FC28
	for <debian-kde@lists.debian.org>; Wed, 21 May 2003 04:17:57 -0500 (CDT)
Received: from pop (localhost [127.0.0.1])
	by pop.univ-lyon1.fr (Postfix) with ESMTP id DA6EF10B27E
	for <debian-kde@lists.debian.org>; Wed, 21 May 2003 11:17:56 +0200 (CEST)
Received: from cipcinsa.insa-lyon.fr (cipcinsa.insa-lyon.fr [134.214.152.106])
	by pop.univ-lyon1.fr (Postfix) with ESMTP id E377F10A964
	for <debian-kde@lists.debian.org>; Wed, 21 May 2003 11:17:55 +0200 (CEST)
Received: from CIPCINSA/SpoolDir by cipcinsa.insa-lyon.fr (Mercury 1.48);
    21 May 03 11:15:19 GMT+0100
Received: from SpoolDir by CIPCINSA (Mercury 1.48); 21 May 03 11:14:36 GMT+0100
Received: from C121.resC.insa-lyon.fr (134.214.170.40) by cipcinsa.insa-lyon.fr (Mercury 1.48) with ESMTP;
    21 May 03 11:14:35 GMT+0100
Date: Wed, 21 May 2003 11:17:54 +0200
From: Germain CHAZOT <germain.chazot@insa-lyon.fr>
To: debian-kde@lists.debian.org
Subject: Re: latest kde 3.1.2
Message-Id: <20030521111754.2e6125c7.germain.chazot@insa-lyon.fr>
In-Reply-To: <20030521044922.GA22104@bishop.dhs.org>
References: <200305201107.11888.tech@bishop.dhs.org>
	<20030521033701.GE28668@cheney.cx>
	<20030521044922.GA22104@bishop.dhs.org>
Organization: INSA de Lyon
X-Mailer: Sylpheed version 0.9.0 (GTK+ 1.2.10; i386-debian-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed;
  protocol="application/pgp-signature";
  micalg="pgp-sha1";
  boundary="=.Wj6CVnP9UPimNO"
X-Virus-Scanned: by AMaViS snapshot-20020222
X-Spam-Status: No, hits=-34.2 required=4.0
	tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE_2,
	      QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES
	autolearn=ham version=2.53-lists.debian.org_2003_04_28
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-lists.debian.org_2003_04_28 (1.174.2.15-2003-03-30-exp)
Resent-Message-ID: <8S6aaD.A.jnG.Ij0y-@murphy>
Resent-From: debian-kde@lists.debian.org
X-Mailing-List: <debian-kde@lists.debian.org> archive/latest/15373
X-Loop: debian-kde@lists.debian.org
List-Post: <mailto:debian-kde@lists.debian.org>
List-Help: <mailto:debian-kde-request@lists.debian.org?subject=help>
List-Subscribe: <mailto:debian-kde-request@lists.debian.org?subject=subscribe>
List-Unsubscribe: <mailto:debian-kde-request@lists.debian.org?subject=unsubscribe>
Precedence: list
Resent-Sender: debian-kde-request@lists.debian.org
Resent-Date: Wed, 21 May 2003 04:37:13 -0500 (CDT)
X-Spam-Score: -3.8
X-Spam-Flag: NO
X-Scanned-By: MIMEDefang 2.28 (www . roaringpenguin . com / mimedefang)
X-UID: 682555

Comment 6 Ingo Klöcker 2003-05-22 00:15:00 UTC
Subject: Re:  Some emails show Unknown date : click on email allows to update field correctly

I knew that it wouldn't be that easy. The Date: headers of the message 
headers you provided are okay. So it's probably really IMAP related. 
This means that someone else has to look at this. An ethereal log which 
starts before you enter a folder where some dates are unknown and ends 
after you selected a message with unknown date would probably help.

Comment 7 Till Adam 2003-10-13 09:32:15 UTC
*** Bug 62534 has been marked as a duplicate of this bug. ***
Comment 8 Till Adam 2003-10-22 21:34:14 UTC
Subject: kdebase/kioslave/imap4

CVS commit by tilladam: 

Some servers introduce newlines between the elements of the references
header list of message ids when responding to a request for 
BODY.PEEK[HEADER.FIELDS (REFERENCES)] which results in mimelib stopping
processing after the first such newline and ignoring all following headers.
This becomes a problem when the date header is following the references
header since then there is no valid date header until the complete message
is parsed for the first time which in turn lets the message be displayed 
with date == "unknown" in the headers list and throws sorting and 
threading. Use simplifyWhiteSpace instead of stripWhiteSpace to remedy
that.

I demand +2 cookies for fixing this one. Since I introduced it myself, kind
of, by introducing references header handling, I guess I would settle for 
one, provided it is chocolate chip.

CCMAIL: 58686-done@bugs.kde.org


  M +1 -2      imapparser.cc   1.53


--- kdebase/kioslave/imap4/imapparser.cc  #1.52:1.53
@@ -1131,6 +1131,5 @@ void imapParser::parseBody (parseString 
          if (start < end)
                  references = references.mid (start, end - start + 1);
-
-         references = references.stripWhiteSpace();
+         references = references.simplifyWhiteSpace();
          envelope->setReferences(references);
        }