Bug 54578 - Messages not deleting in IMAP folders
Summary: Messages not deleting in IMAP folders
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified FreeBSD
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-13 00:06 UTC by Jim Durham
Modified: 2007-09-14 12:17 UTC (History)
0 users

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 Jim Durham 2003-02-13 00:06:35 UTC
Version:            (using KDE KDE 3.1)
Installed from:    Unlisted Binary Package
OS:          FreeBSD

Yes, I have reported this before on 3.0.x, but now, with 3.1, I'm still seeing
the same problems, even though the other bug report was marked 'closed'.

If an IMAP folder contains a large number of messages, say, > 50, kmail does
not delete the messages.

Case in point. Last night I carefully deleted 600 messages from freebsd-questions.
Today, the 600 were back with 400 more for a total of over 1000.

Using Mozilla 1.0.1 mail, I deleted the 1000 messages and then repopened kmail.
NOw they are gone. This has been my experience dozens of times.

Also, the Mozilla "deletion" happens immediately, whereas in kmail, it takes a
couple of minutes to delete a large folder.

Is there some test I can run to help kill this bug?

The IMAP server is imap-uw.

Thanks,

Jim Durham
Comment 1 Carsten Burghardt 2003-02-14 16:09:41 UTC
Did you check "Automatically compact folders" in the account-settings? 
Is your trash-folder on the imap-server? 
Comment 2 Jim Durham 2003-02-20 16:04:25 UTC
Looking at "folders", I don't see that. I have , under "On Program exit, 
perform the following tasks", a check mark on "Compact Folders". 
 
The Trash folder is on the local drive. 
 
-Jim 
Comment 3 Carsten Burghardt 2003-02-20 23:39:41 UTC
Compact folders is only for local accounts. 
You should open your account settings (Configure-Network-Receive) and check 
"Automatically compact folders" otherwise the folders are not expunged. 
And it's better if you set the trash on the imap-server (also in the account settings) 
because it's much faster. 
Comment 4 Jim Durham 2003-02-21 15:58:14 UTC
Subject: Re:  Messages not deleting in IMAP folders

On Thursday 20 February 2003 05:39 pm, you wrote:

> You should open your account settings (Configure-Network-Receive)
> and check "Automatically compact folders" otherwise the folders are
> not expunged. And it's better if you set the trash on the
> imap-server (also in the account settings) because it's much
> faster.

I have two imap accounts, one at work, one at home. Both are set to 
"Automatically compact folders."

I understand your point about setting the trash folder to the server, 
but, having two IMAP accounts, wouldn't I run into worse problems 
when I expunged from server B to the trash folder on server A than if 
I just used a local trash folder?

Also, I have kmail set to delete without moving to trash.

I've been running kmail for quite a while and I don't remember seeing 
this problem until vers. 1.3. I believe the earlier versions worked 
correctly. I filed an earlier bug report on 1.3 and was told it would 
all be fixed in 1.5, but it doesn't appear to be any different.

Just as a test, I also installed the evolution package last night and 
it also seems to expunge correctly.

I really believe there is something wrong and I'd like to help. How 
can I set up a test?

-Jim


Comment 5 Carsten Burghardt 2003-02-21 17:49:20 UTC
Subject: Re:  Messages not deleting in IMAP folders

> I have two imap accounts, one at work, one at home. Both are set to
> "Automatically compact folders."
>
> I understand your point about setting the trash folder to the server,
> but, having two IMAP accounts, wouldn't I run into worse problems
> when I expunged from server B to the trash folder on server A than if
> I just used a local trash folder?

Don't mix expunge with delete. You can set your trash folder (the folder where 
deleted mails are moved) on a per account basis so account A gets a trash on 
it's server and account B gets one. This is just an imap copy command whereas 
the mail needs to be downloaded when you have a local trash. This might be 
related to your problem as it takes some time to download all mails.
Every folder is expunged (the mails that are marked as deleted are actually 
removed) when you exit this folder (aka select a different folder or exit 
kmail).

> Also, I have kmail set to delete without moving to trash.

How do you do that?

> I've been running kmail for quite a while and I don't remember seeing
> this problem until vers. 1.3. I believe the earlier versions worked
> correctly. I filed an earlier bug report on 1.3 and was told it would
> all be fixed in 1.5, but it doesn't appear to be any different.
>
> Just as a test, I also installed the evolution package last night and
> it also seems to expunge correctly.
>
> I really believe there is something wrong and I'd like to help. How
> can I set up a test?

Well, you can listen to the network traffic with ethereal and see if the 
folder is actually expunged: Start the capture, select a folder, delete a 
message, go to a different folder. Stop the capture. You can attach the 
ethereal file to this report.

Comment 6 Jim Durham 2003-03-21 17:40:52 UTC
Subject: Re:  Messages not deleting in IMAP folders

On Friday 21 February 2003 11:49 am, you wrote:
>>
> Don't mix expunge with delete. You can set your trash folder (the
> folder where deleted mails are moved) on a per account basis so
> account A gets a trash on it's server and account B gets one. This
> is just an imap copy command whereas the mail needs to be
> downloaded when you have a local trash. This might be related to
> your problem as it takes some time to download all mails. Every
> folder is expunged (the mails that are marked as deleted are
> actually removed) when you exit this folder (aka select a different
> folder or exit kmail).
>

After being buried in two projects for the last few weeks, I have 
surfaced to report  that kmail does, in fact, operate much better 
when run as you suggest and it has solved the immediate problem. 

It seems to me though, that things should work properly whatever 
server has whatever folder, so there is still a problem, but I can 
work around it. Expunge is still not really working on large 
mailboxes, but Delete does.

Thanks for all the help,

Jim Durham

Comment 7 Till Adam 2003-06-30 23:47:35 UTC
After a short pow-wow with Carsten I close this bug, as it appears to be resolved.