[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#386987: kmail: Displays warning messages for cachedimap since last update lose emails

Package: kmail
Version: 4:3.5.4-1
Severity: grave
Justification: make package nearly unusable with cachedimap and can

Since a recent update (I think it was from 3.5.3-something to
3.5.4-1), KMail now displays very annoying warning messages in the
style of

"Warning - Kontact:

Mails on the server in folder <whatever folder I moved a message into>
were deleted. Do you want to delete them locally?
UIDs: <some number>,<some other number>,<...>"

after I move messages around. Most commonly, I move messages from my
Inbox to some other folder on the IMAP server (cachedimap for KMail), and
upon the next periodical check, this message will appear. It also
happens for "automatic" folders like Sent and Trash, where KMail
itself copies messages into.

Answering "Yes" will delete the messages to the effect of removing it
both from the local IMAP cache _and_ from the IMAP server. But the
messages were in fact _not_ deleted on the server by another process,
and only one IMAP client is active at a time. That is, answering "Yes"
means losing emails (as has happened to me)!
My interpretation is that KMail does not move the message into the
other folder immediately (I think older versions behaved the same), but
only at the next "sync" period, i.e. when it checks this folder for
changes. However, it checks the folder, notices that the messages is
not there, fails to notice that it should copy it over so that it will
be there, and asks to delete it locally instead. Not good.

Anwering "No" produces, as far as I can see, the same behaviour as
previous KMail versions, which is the intended behaviour of not losing
all emails that have been moved to another IMAP box.

Search for this message string gets me to a patch to KMail, which

    if( !msgsForDeletion.isEmpty() ) {
   -    removeMsg( msgsForDeletion );
   +      if ( KMessageBox::warningYesNo(
   +             0, i18n( "<qt><p>Mails on the server in folder
     <b>%1</b> were deleted. "
   +                 "Do you want to delete them locally?<br>UIDs:
       %2</p></qt>" )
   +             .arg( folder()->prettyURL() ).arg( uids.join(",")
	 ) ) == KMessageBox::Yes )
   +        removeMsg( msgsForDeletion );

So it seems that this is a debugging code?

Please revert the change so that it behaves like KMail 3.5.3, not
deleting all moved emails.

with best regards,

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (800, 'testing'), (300, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages kmail depends on:
ii  kdebase-kio-plugins     4:3.5.4-2        core I/O slaves for KDE
ii  kdelibs4c2a             4:3.5.4-3        core libraries and binaries for 
ii  kdepim-kio-plugins      4:3.5.4-1        KDE pim I/O Slaves
ii  libart-2.0-2            2.3.17-1         Library of functions for 2D 
ii  libaudio2               1.8-2            The Network Audio System (NAS). 
ii  libc6                   2.3.6.ds1-4      GNU C Library: Shared libraries
ii  libfontconfig1          2.3.2-7          generic font configuration 
ii  libfreetype6            2.2.1-4          FreeType 2 font engine, shared 
ii  libgcc1                 1:4.1.1-13       GCC support library
ii  libice6                 2:1.0.0-0ubuntu2 X11 Inter-Client Exchange library
ii  libidn11                0.6.5-1          GNU libidn library, 
ii  libjpeg62               6b-13            The Independent JPEG Group's JPEG 
ii  libkcal2b               4:3.5.4-1        KDE calendaring library
ii  libkdepim1a             4:3.5.4-1        KDE PIM library
ii  libkleopatra1           4:3.5.4-1        KDE GnuPG interface libraries
ii  libkmime2               4:3.5.4-1        KDE MIME interface library
ii  libkpimidentities1      4:3.5.4-1        KDE PIM user identity information 
ii  libksieve0              4:3.5.4-1        KDE mail/news message filtering 
ii  libmimelib1c2a          4:3.5.4-1        KDE mime library
ii  libpng12-0              1.2.8rel-5.2     PNG library - runtime
ii  libqt3-mt               3:3.3.6-4        Qt GUI Library (Threaded runtime 
ii  libsm6                  2:1.0.0-0ubuntu2 X11 Session Management library
ii  libstdc++6              4.1.1-13         The GNU Standard C++ Library v3
ii  libx11-6                2:1.0.0-8        X11 client-side library
ii  libxcursor1             1.1.7-4          X cursor management library
ii  libxext6                2:1.0.0-0ubuntu4 X11 miscellaneous extension 
ii  libxft2               FreeType-based font drawing 
ii  libxi6                  2:1.0.0-0ubuntu3 X11 Input extension library
ii  libxinerama1            2:1.0.1-0ubuntu2 X11 Xinerama extension library
ii  libxrandr2              2:      X11 RandR extension library
ii  libxrender1             1:0.9.1-3        X Rendering Extension client 
ii  libxt6                  1:1.0.2-2        X11 toolkit intrinsics library
ii  perl                    5.8.8-6.1        Larry Wall's Practical Extraction 
ii  zlib1g                  1:1.2.3-13       compression library - runtime

Versions of packages kmail recommends:
ii  procmail                      3.22-16    Versatile e-mail processor

-- no debconf information

Gibraltar firewall       http://www.gibraltar.at/

Reply to: