Bug 224060 - Mails in Google IMAP folder all show unknown date
Summary: Mails in Google IMAP folder all show unknown date
Status: RESOLVED FIXED
Alias: None
Product: kdepim
Classification: Applications
Component: messagelist (show other bugs)
Version: 4.5
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: akonadi-ports-regression
Depends on:
Blocks: 223438
  Show dependency treegraph
 
Reported: 2010-01-24 17:38 UTC by Alin M Elena
Modified: 2010-05-14 16:06 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 Alin M Elena 2010-01-24 17:38:03 UTC
Application: kontact (4.5 pre)
KDE Platform Version: 4.4.60 (KDE 4.4.60 (KDE 4.5 >= 20100120)) "release 3"
Qt Version: 4.6.1
Operating System: Linux 2.6.31.8-0.1-desktop x86_64
Distribution: "openSUSE 11.2 (x86_64)"

-- Information about the crash:
When I try to open a message from my google imap folder. kontact dies.

More the imap folder does not seem correctly setup as all the mails have unknown date and time.

Alin


The crash can be reproduced every time.

 -- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
[KCrash Handler]
#5  0x00007f2dbbcea261 in ?? () from /usr/lib64/libakonadi-kde.so.4
#6  0x00007f2dbbcea2ee in Akonadi::Entity::operator=(Akonadi::Entity const&) () from /usr/lib64/libakonadi-kde.so.4
#7  0x00007f2da2daccee in KMReaderWin::setMessage(Akonadi::Item const&, MessageViewer::Viewer::UpdateMode) () from /usr/lib64/libkmailprivate.so.4
#8  0x00007f2da2e49841 in KMMainWidget::itemsReceived(QList<Akonadi::Item> const&) () from /usr/lib64/libkmailprivate.so.4
#9  0x00007f2da2e6a713 in KMMainWidget::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libkmailprivate.so.4
#10 0x00007f2dbaec643f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#11 0x00007f2dbbd6eaf2 in Akonadi::ItemFetchJob::itemsReceived(QList<Akonadi::Item> const&) () from /usr/lib64/libakonadi-kde.so.4
#12 0x00007f2dbbd6ffcd in Akonadi::ItemFetchJob::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libakonadi-kde.so.4
#13 0x00007f2dbaec643f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#14 0x00007f2dbb2bd992 in KJob::result(KJob*) () from /usr/lib64/libkdecore.so.5
#15 0x00007f2dbb2bdc30 in KJob::emitResult() () from /usr/lib64/libkdecore.so.5
#16 0x00007f2dbbd84503 in ?? () from /usr/lib64/libakonadi-kde.so.4
#17 0x00007f2dbbdb1e67 in ?? () from /usr/lib64/libakonadi-kde.so.4
#18 0x00007f2dbbdb26f5 in Akonadi::Session::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libakonadi-kde.so.4
#19 0x00007f2dbaec643f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#20 0x00007f2dbaf10f78 in QIODevice::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libQtCore.so.4
#21 0x00007f2db765ba10 in QLocalSocket::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libQtNetwork.so.4
#22 0x00007f2dbaec643f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#23 0x00007f2db7653eaf in ?? () from /usr/lib64/libQtNetwork.so.4
#24 0x00007f2db76437b1 in ?? () from /usr/lib64/libQtNetwork.so.4
#25 0x00007f2dba29586c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#26 0x00007f2dba29be4b in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#27 0x00007f2dbb873846 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#28 0x00007f2dbaeb365c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#29 0x00007f2dbaedcf1a in ?? () from /usr/lib64/libQtCore.so.4
#30 0x00007f2db4a08dde in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#31 0x00007f2db4a0c7a8 in ?? () from /usr/lib64/libglib-2.0.so.0
#32 0x00007f2db4a0c8d0 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#33 0x00007f2dbaedcb63 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#34 0x00007f2dba34386e in ?? () from /usr/lib64/libQtGui.so.4
#35 0x00007f2dbaeb1f72 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#36 0x00007f2dbaeb234c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#37 0x00007f2dbaeb609b in QCoreApplication::exec() () from /usr/lib64/libQtCore.so.4
#38 0x0000000000403ee7 in main ()

Reported using DrKonqi
Comment 1 Thomas McGuire 2010-01-25 23:56:28 UTC
I can reproduce the problem with the unknown date here.
Happens also for some non-GMail mails for me.
Strange thing is that KMime seems to parse these mails fine.

Please report a separate bug report for the crash, bugs are easier to track that way.
Please make sure the crash report includes the following:
- A way to reproduce the problem (I can view GMail IMAP mails fine here)
- A backtrace that includes symbols for the Akonadi library, so that there are 
  no "?? () from /usr/lib64/libakonadi-kde.so.4" in the backtrace
- File it under the "KMail 2" product directly, not to Kontact

Out of interest: Why are you already trying KMail 2? It is currently not very usable (and the dialog at the beginning should have warned about that)
Comment 2 Thomas McGuire 2010-01-26 00:09:09 UTC
The date in Akonadiconsole is displayed correctly, so very likely a message list bug.
Comment 3 Torgny Nyblom 2010-02-12 20:56:34 UTC
The cause is that when Messagelist::Core::StorageModel::initializeMessageItem() (messagelist/core/storagemodel.cpp:228) is calling KMime::Message::Date the headers are not fully parsed, since KMime defaults to create missing headers the date header is created with an empty date.

I've not found the root cause (or why the parsing is not complete).
Comment 4 Alin M Elena 2010-02-13 09:05:30 UTC
It seems to work fine for me nowadays...
Comment 5 Thomas McGuire 2010-04-05 16:59:05 UTC
Not only broken for GMail, but also for demo.kolab.org
Comment 6 Volker Krause 2010-05-14 16:06:54 UTC
The missing date header problem has been fixed in revision 1126645.