Bug 226419

Summary: Copying a message to another folder copies the whole directories & messages
Product: [Applications] kmail2 Reporter: Christophe Marin <christophe>
Component: foldersAssignee: Stephen Kelly <steveire>
Status: RESOLVED FIXED    
Severity: normal CC: kdepim-bugs, steveire
Priority: NOR Keywords: akonadi-ports-regression
Version: 1.99.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Bug Depends on:    
Bug Blocks: 223438    
Attachments: negative values for the destination folder.

Description Christophe Marin 2010-02-11 23:21:17 UTC
Created attachment 40700 [details]
negative values for the destination folder.

Using trunk (r1088840)

Copying a message copies the whole parent directory.

- Click on a message,
- RMB/copy item to/Local Folder/any_directory

Result: there's a subdir in 'any_directory' and all the messages are displayed in the list.

Result #2 (unrelated): if the destination folder is not expanded, the message count in the folder list now displays "-1" (ss attached)
Comment 1 Christophe Marin 2010-02-11 23:23:13 UTC
The console output doesn't give any hint:

# kmail(15616)/libakonadi Akonadi::EntityTreeModelPrivate::monitoredItemAdded: Got a stale notification for an item whose collection was already removed. 754 "" 
kmail(15616)/libakonadi Akonadi::EntityTreeModelPrivate::monitoredItemAdded: Got a stale notification for an item whose collection was already removed. 755 "" 
kmail(15616)/libakonadi Akonadi::EntityTreeModelPrivate::monitoredCollectionStatisticsChanged: Got statistics response for non-existing collection: 38
Comment 2 Thomas McGuire 2010-02-12 14:10:41 UTC
Adding Steve to the CC list, this seems model/view related.
Comment 3 Leo Franchi 2010-05-31 19:35:50 UTC
SVN commit 1132910 by lfranchi:

Fix mime data from messagelist. Actions from the messagelist now work properly, such as Copy to ... and Move to ...

BUG: 226419


 M  +6 -2      kmail/kmmainwidget.cpp  
 M  +2 -0      kmail/kmmainwidget.h  
 M  +33 -2     messagelist/core/model.cpp  
 M  +3 -0      messagelist/core/model.h  
 M  +6 -0      messagelist/core/storagemodelbase.h  
 M  +13 -0     messagelist/pane.cpp  
 M  +12 -0     messagelist/pane.h  
 M  +16 -0     messagelist/storagemodel.cpp  
 M  +2 -0      messagelist/storagemodel.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1132910