nsIMsgFolderListener call folderDeleted on every operation.



MailNews Core
6 years ago
6 years ago


(Reporter: Michael Strebel, Unassigned)


Windows 7

Firefox Tracking Flags

(Not tracked)




6 years ago
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20100101 Firefox/8.0
Build ID: 20111104165243

Steps to reproduce:

I registered a msgFolderListener to the notification service.
Then i executes the following operations.
a) I renamed a folder.
b) I moved a folder.
c) I deleted a folder with context menu (into trash).
d) I deleted a folder with drag and drop (into trash).

Actual results:

The following methods are called.
a) folderDeleted -> folderRenamed
b) folderDeleted -> folderRenamed -> folderMoveCopyCompleted 
c) folderDeleted -> folderRenamed
d) folderDeleted -> folderRenamed -> folderMoveCopyCompleted 

Expected results:

a) I expect that only folderRenamed will be called, if i just rename the folder.

b,c,d) I expect that only the folderMoveCopyCompleted will be called.

Especially i expect the same calls in c) as in b).
In the current state i can not tell if a folder is deleted (not just moving in the trash). With this listener i can tell that something is happen but not what.

Comment 1

6 years ago
Are you developing an extension?
Component: General → Database
Product: Thunderbird → MailNews Core
QA Contact: general → database

Comment 2

6 years ago
(In reply to :aceman from comment #1)
> Are you developing an extension?

Yes, i am developing an extension. Therefore i need to know when a folder or message
is moved or deleted. Espescially i need to know if it is really deleted or just moved to trash. I am not interested in any steps between the start and the end of the operation.
You need to log in before you can comment on or make changes to this bug.