Mark Banner <
mba...@mozilla.com> writes:
>In this case, the number of the error code is 5, and if you look in
>msgCore.h, you'll find it is NS_MSG_ERROR_FOLDER_SUMMARY_OUT_OF_DATE
Thanks.
That was less useful than I'd hoped :-/, because the same
error code is returned in multiple locations. I hate that.
Here's the situation... My add-on is calling getMessages on a
nsIMsgFolder object, and occasionally it's getting back that
error code.
Is there anything I can do when that happens to get
Thunderbird to update the summary? Would calling
summaryChanged() do it? How about updateFolder()? These
methods are not documented at
https://developer.mozilla.org/en/XPCOM_Interface_Reference/nsIMsgFolder
(or anywhere else that I could find).
The users who report running into this issue report running
into it _repeatedly_, i.e., once it starts happening, it keeps
happening until they open the properties dialog for the folder
and click the "Repair Folder" button. Do I actually need to
programmatically reproduce what "Repair Folder" does? That
seems gross, since "Repair Folder" resets the visible
columns, layout, etc. for the folder, which I'd really rather
not do to a user's folder without permission. Maybe it's
possible to do the summary repair part of "Repair Folder"
without the other stuff?
Ugh.
Thanks,
jik