Re: A doubt about message transfers
- From: Philip Van Hoof <spam pvanhoof be>
- To: Sergio Villar Senin <svillar igalia com>
- Cc: tinymail-devel-list gnome org
- Subject: Re: A doubt about message transfers
- Date: Fri, 30 Mar 2007 12:17:24 +0200
On Thu, 2007-03-29 at 18:34 +0200, Sergio Villar Senin wrote:
> Hi,
>
> I've a doubt about message transfers and notifications. When a message
> is moved from a folder to another, the tinymail-camel code will call
> camel_folder_sync to delete the source message. This camel code will
> trigger the event "folder_changed" that will be managed by
> notify_folder_observers_about that will call finally the update method
> of the folder monitor. This method will remove a reference of the
> transferred header.
>
> Later on, tny_camel_folder_transfer_msgs_async_destroyer will invoke
> inform_observers_about_transfer that will again call the update method
> of the folder monitor that again, will remove a reference of the header.
If the header isn't found in a list, then the monitor wont remove it.
The monitor will not only unreference but will also remove it from that
list (the unreference happens caused by the remove, actually). The
second time it wont be found and therefore not unreferenced anymore
either.
But if you are seeing an unreference-to-much, please do fix it indeed.
You can test this with refdbg (there's a page on the wiki that explains
how you can set this up).
> So, I think we're unreferencing too many times the source header. am I
> wrong?
--
Philip Van Hoof, software developer
home: me at pvanhoof dot be
gnome: pvanhoof at gnome dot org
http://www.pvanhoof.be/blog
[
Date Prev][
Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]