Bug 107221 - [Shift-Del] gives 'Deleting messages failed' on imap although it is successful
Summary: [Shift-Del] gives 'Deleting messages failed' on imap although it is successful
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-11 17:26 UTC by Jean-Damien Durand
Modified: 2007-09-14 12:17 UTC (History)
2 users (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 Jean-Damien Durand 2005-06-11 17:26:05 UTC
Version:            (using KDE KDE 3.4.1)
Installed from:    Unlisted Binary Package
OS:                Linux

Under an imap (not dimap) account, with kmail 1.8.1 using kde 3.4.1 (installed thanks to alioth and helion.xcyb.org), when I shift-delete messages, it says on the bottom left 'Deleting messages failed' whereas this was successful.
Cheers, JD.
Comment 1 Carsten Burghardt 2005-06-11 17:34:56 UTC
> Under an imap (not dimap) account, with kmail 1.8.1 using kde 3.4.1
> (installed thanks to alioth and helion.xcyb.org), when I shift-delete
> messages, it says on the bottom left 'Deleting messages failed' whereas
> this was successful. 


Not here, I get "Deleting successful". Can you compile kdepim with 
--enable-debug=yes and see if you get any debug information on the console 
when you delete the message?
Comment 2 Jean-Damien Durand 2005-06-11 18:55:36 UTC
Doing so with DEB_BUILD_OPTIONS=debug which is setting --enable-debug=full (tell me if you did not want full, but only yes - otherwise stay tuned!).
Comment 3 Jean-Damien Durand 2005-06-11 19:06:24 UTC
oups - build failure - contacting kdepim-users - more later when the build will be ok.
Comment 4 Jean-Damien Durand 2005-06-12 08:38:37 UTC
Still 'Deleting messages failed'. Output on the console when I delete the mail talks only about next mail, see below. I am now recompiling also kdelibs4-dev with --enable-debug=full just in case the error would be in kio - shall I not? No pb to add watchdogs e.g. kdDebug, but then please tell me where.

kmail: ImapJob::slotGetMessageResult - retrieved part
kmail: (198169, last 0) Cron job output from lxplus:pubxx @ Sun Jun 12 08:27:13 2005 AFS Tokens Manager for batch jobs, readyToShow true
kmail: parseMsg(KMMessage* aMsg == aMsg )
kmail: + Text/Plain
kmail:       Inserting one item into MimePartTree
kmail:                 Content-Type: Text/Plain
kmail: partNode::findType() is looking at Text/Plain
kmail: [static KMail::SpamScores KMail::SpamHeaderAnalyzer::getSpamScores(const KMMessage*)]
kmail: Multiple / No addressees matched email address; Count is 0
kmail: ObjectTreeParser::parseObjectTree( node OK, showOnlyOneMimePart: FALSE )
kmail: KMReaderWin  -  finished parsing and displaying of message.
kmail: setImapStatus path=/INBOX/;UID=119132 to: \SEEN
Comment 5 Carsten Burghardt 2005-06-12 11:47:55 UTC
> 08:38 ------- Still 'Deleting messages failed'. Output on the console when
> I delete the mail talks only about next mail, see below. I am now
> recompiling also kdelibs4-dev with --enable-debug=full just in case the
> error would be in kio - shall I not? No pb to add watchdogs e.g. kdDebug,
> but then please tell me where.


No need to recompile kdelibs.
I'm looking for something like "slotMoveCompleted" in the debug output. Do you 
see this?
Comment 6 Jean-Damien Durand 2005-06-12 20:03:51 UTC
Sorry - I redid a test opening kmail, deleting last message that was a spam. Indeed I see:

kmail: [void KMHeaders::slotMoveCompleted(KMCommand*)] 3

Full output is at http://home.cern.ch/~jdurand/kmail.output

My imap server is Exchange Server 2003, just in case this is relevant!
Comment 7 jamundso 2005-06-16 03:02:43 UTC
I see this also - both in dimap and inline - against a Courier IMAP server. Kmail 1.8.1 in KDE 3.4.1 from kubuntu.org (5.04). Also debian packaging, hmm...
Comment 8 jamundso 2005-06-22 15:40:50 UTC
I now see after applying KDE 3.4.1 updates to Fedora Core 4 also.
Comment 9 Matt Gibson 2005-07-24 09:21:03 UTC
If it's any help tracking this down, I just saw the same message when deleting from a _local_ (maildir) mailbox.  I selected everything in the folder, hit shift-delete, and the statusbar message said "Deleting messages failed".  But the folder is now empty, so it looks like it worked to me.  So, may not be IMAP-related.

I can't tell you for sure, but I'm getting the vague impression so far that it's only happening when I deleting a lot of big messages.  What I was deleting just now was 192 copies of a 56kb virus some stupid infected Windows machine keeps sending me!
Comment 10 Debajyoti Bera 2005-08-27 06:25:23 UTC
I also have the same bug.
Using kmail-1.8.2

Additional observation:
* It happens on local mbox and maildirs, both.
* It happens for mails of any size.
* I dont know if this is by design or bug, but after deletion the _actual_mbox_file on the disk still has the deleted mail (kmail doesnt show it in the mails of course). I guess kmail sets a flag somewhere that the mail is deleted. But even after quitting/restarting kmail the actual mbox file remains unchanged (i.e. the deleted mail is still there).
Comment 11 Debajyoti Bera 2005-08-27 06:42:32 UTC
Oops ... checked forums and now i know that the last point in my earlier observation (only marking deleted messages as being deleted) is a feature.
The "deleting message failed" bug is still there, though.
Comment 12 Chris Gebhardt 2005-12-07 20:13:47 UTC
I see the same behavior with [Shift-Del].  KMail properly tags the message for deletion (as viewed by a second IMAP client like Evolution) and properly expunges the message when leaving the folder.  The "deleting message failed" error seems to be inappropriate because everything is working right.
Comment 13 Jean-Damien Durand 2005-12-12 12:21:00 UTC
Using KDE 3.5.0 I do not see anymore this problem!