[Evolution-hackers] NewMail notification from folder.changed event
- From: <karllinuxtest relton ntlworld com>
- To: <evolution-hackers gnome org>
- Subject: [Evolution-hackers] NewMail notification from folder.changed event
- Date: Wed, 30 Nov 2005 10:45:17 +0000
I am looking into the bug I reported (bugzilla.gnome.org/show_bug.cgi?id=322016) regarding the
new mail notification dbus message - which is sent via
the plugin based on the folder.changed event.
The basic problem is that the folder.changed event is
documented as a generic event on any folder change (not just
newmail), so we get the notification even when no new mail
has actually arrived.
Looking at the code, I see that the folder.changed event is passed an EMEventTargetFolder structure, which is contains a flag EM_EVENT_FOLDER_NEWMAIL (although curiously this flag is inverted in em_event_target_new_folder() - not
Therefore the plugin code in new-mail-notify.c could potentially test this flag to decide wether to send the dbus message - this would save having to code a brand new plugin event type.
Email sent from www.ntlworld.com
Virus-checked using McAfee(R) Software
Visit www.ntlworld.com/security for more information
] [Thread Prev