Bug 255442

Summary: Performance issue: 'Move Folder to' functionality does not work immediately
Product: [Applications] KMail Mobile Reporter: Sabine Faure <sabine>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: bjoern.ricks
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Sabine Faure 2010-10-27 22:02:57 UTC
Version:           unspecified (using Devel) 
OS:                Linux

The 'Move Folder to...' functionality does not work immediately when moving one Imap inbox folder as an Imap inbox subfolder.

It is confusing for the user who may think that this functionality does not work.
Plus it is time consuming to have to wait for the folder to be properly moved.

Reproducible: Always

Steps to Reproduce:
Prerequisite: create two child folders of the Imap inbox: Folder A and Folder B
Folder A should contain a couple of emails.

- Launch Kmail-mobile
- Click on your Imap account Inbox
- Select Folder A
- Open the 'Actions' tab
- Click on 'Edit'
- Click on 'Move Folder To...'
- Select a location among the ones that are suggested (ex: Imap Server Name/Inbox/Folder B)
- Click on 'Ok'

Actual Results:  
Nothing happens. Folder A's content is still displayed.

- Go to Folder B
Folder B does not contain Folder A as it should be the case

- Wait for 1 or 2 minutes

Folder A is now displayed as a subfolder of Folder B successfully. 

If the user clicks on Folder A he can see its emails displayed correctly in the Message List so this seems to be only a performance issue.



Expected Results:  
The moved folder should be moved faster so that the user does not think there is a bug.

Note: I tried syncing Folder B several times after moving Folder A but it did not seem to reduce the waiting time for Folder A to be displayed in Folder B.

N900, 4:4.6~20101026.1190044-1maemo1.1189579
Comment 1 Sabine Faure 2010-10-27 23:41:00 UTC
The same thing happen when moving Folders within the Local Folders Inbox.

To test redo the steps as follows: 

Prerequisite: create two child folders of the Local Folders inbox: Folder 1 and Folder 2
Folder 1 should contain a couple of emails.

- Launch Kmail-mobile
- Click on your Local Folders Inbox
- Select Folder 1
- Open the 'Actions' tab
- Click on 'Edit'
- Click on 'Move Folder To...'
- Select a location among the ones that are suggested (ex: Local Folders/Inbox/Folder 2)
- Click on 'Ok'

Folder 1 is only displayed within Folder 2 after a couple of minutes whereas moving a folder should be instantaneous.

N900,4:4.6~20101026.1190044-1maemo1.1189579
Comment 2 Sabine Faure 2010-10-28 00:46:37 UTC
This bug is also reproductible with the 'Copy Folder To...' functionality.

N900, 4:4.6~20101026.1190044-1maemo1.1189579
Comment 3 Bjoern Ricks 2010-11-01 12:25:41 UTC
This should be a duplicate of #252531
@Sabine please reopen this report if you think it's an other issue

*** This bug has been marked as a duplicate of bug 252531 ***
Comment 4 Sabine Faure 2010-12-06 01:52:42 UTC
I retested this today and I can still reproduce this bug for both the moving (folder moved after 2 min) and copying folders (folder copied after 1 min) so I am reopening it.

N900, 4:4.6~20101205.1203870-1maemo1.1203520