Version: kdepim-kmail-3.5.4-12mdv2007.0 (using KDE KDE 3.5.4) Installed from: Mandriva RPMs Compiler: as distributed with Mandriva-2007 Powerpack OS: Linux kmail creates multiple duplicate messages in imap inbox account, then deleting duplicates crashes but not always(!) kmail. The multiple messages are result of spamassassin filter as they all differ in just one line: X-UID: The number following this (e.g. X-UID: 4761) is different. So what is likely happenning, the filter adds this line to the message (or rewrites the existing X-UID), kmail decides it's a new message and syncronises it with the imap server on the next retrieval of messages creating a duplicate on the server (I checked that!), the filter then runs again etc. entering in the loop and kmail eventually gives up. Here is the backtrace of the crash: [KCrash handler] #6 0x406b703c in ?? () #7 0xb5684ae0 in KMail::ImapJob::slotGetNextMessage () from /usr/lib/libkmailprivate.so #8 0xb56db641 in KMail::ImapJob::init () from /usr/lib/libkmailprivate.so #9 0xb56dcc3d in KMail::ImapJob::execute () from /usr/lib/libkmailprivate.so #10 0xb543cdb9 in KMail::FolderJob::start () from /usr/lib/libkmailprivate.so #11 0xb560b210 in KMMainWidget::slotMsgSelected () from /usr/lib/libkmailprivate.so #12 0xb570433a in KMMainWidget::qt_invoke () from /usr/lib/libkmailprivate.so #13 0xb672bd1d in QObject::activate_signal () from /usr/lib/qt3/lib/libqt-mt.so.3 #14 0xb5480c64 in KMHeaders::selected () from /usr/lib/libkmailprivate.so #15 0xb55769ec in KMHeaders::highlightMessage () from /usr/lib/libkmailprivate.so #16 0xb5576da9 in KMHeaders::highlightMessage () from /usr/lib/libkmailprivate.so #17 0xb566ce6e in KMHeaders::qt_invoke () from /usr/lib/libkmailprivate.so #18 0xb672bd1d in QObject::activate_signal () from /usr/lib/qt3/lib/libqt-mt.so.3 #19 0xb6a51e31 in QListView::currentChanged () from /usr/lib/qt3/lib/libqt-mt.so.3 #20 0xb680b20e in QListView::setCurrentItem () from /usr/lib/qt3/lib/libqt-mt.so.3 #21 0xb680e29a in QListView::contentsMousePressEventEx () from /usr/lib/qt3/lib/libqt-mt.so.3 #22 0xb680ed34 in QListView::contentsMousePressEvent () from /usr/lib/qt3/lib/libqt-mt.so.3 #23 0xb70201e1 in KListView::contentsMousePressEvent () from /usr/lib/libkdeui.so.4 #24 0xb5576ee4 in KMHeaders::contentsMousePressEvent () from /usr/lib/libkmailprivate.so #25 0xb6840101 in QScrollView::viewportMousePressEvent () from /usr/lib/qt3/lib/libqt-mt.so.3 #26 0xb683d4aa in QScrollView::eventFilter () from /usr/lib/qt3/lib/libqt-mt.so.3 #27 0xb680c066 in QListView::eventFilter () from /usr/lib/qt3/lib/libqt-mt.so.3 #28 0xb54cbf20 in KMHeaders::eventFilter () from /usr/lib/libkmailprivate.so #29 0xb672b62c in QObject::activate_filters () from /usr/lib/qt3/lib/libqt-mt.so.3 #30 0xb672b69b in QObject::event () from /usr/lib/qt3/lib/libqt-mt.so.3 #31 0xb6763bac in QWidget::event () from /usr/lib/qt3/lib/libqt-mt.so.3 #32 0xb66cedb7 in QApplication::internalNotify () from /usr/lib/qt3/lib/libqt-mt.so.3 #33 0xb66cfd79 in QApplication::notify () from /usr/lib/qt3/lib/libqt-mt.so.3 #34 0xb6dd811a in KApplication::notify () from /usr/lib/libkdecore.so.4 #35 0xb6671719 in QETWidget::translateMouseEvent () from /usr/lib/qt3/lib/libqt-mt.so.3 #36 0xb6670696 in QApplication::x11ProcessEvent () from /usr/lib/qt3/lib/libqt-mt.so.3 #37 0xb66806aa in QEventLoop::processEvents () from /usr/lib/qt3/lib/libqt-mt.so.3 #38 0xb66e47e0 in QEventLoop::enterLoop () from /usr/lib/qt3/lib/libqt-mt.so.3 #39 0xb66e4696 in QEventLoop::exec () from /usr/lib/qt3/lib/libqt-mt.so.3 #40 0xb66ce76f in QApplication::exec () from /usr/lib/qt3/lib/libqt-mt.so.3 #41 0x0805b093 in ?? () #42 0xb5e4a75c in __libc_start_main () from /lib/i686/libc.so.6 #43 0x08058541 in ?? () This bug was also reported on http://qa.mandriva.com/show_bug.cgi?id=26404
Forgot to mention: this happens ONLY to IMAP folders: POP3 folders' messages are non-affected.
*** This bug has been marked as a duplicate of 137630 ***
This is not a duplicate IMO. Bug 137630 is about crashing and losing mail, while this bug is about generating many duplicate messages when using SpamAssassin or Bogofilter with an IMAP. I experience this bug as well btw.
Bug 95064 is about duplicate messages with IMAP filtering (Spamassassin uses filtering).