PopTray Notification framework

Writing and using PopTray plug-ins

Moderators: KY Dave, jojobear99, Rdsok

Locked
User avatar
jskinner
Groupie
Posts: 55
Joined: Wed Mar 09, 2005 9:25 pm
Contact:

PopTray Notification framework

Post by jskinner » Wed Mar 16, 2005 2:01 am

Now that I have been using the Notification framework for a few days I have come to the conclusion that the framework is completely unusable in its current state. Calls to the functions Notify() and NotifyAccount() occur in, from what I can tell, completely random ways giving unreliable results.

My understanding was that the intent was that Notify() would be called once per email check and that NotifyAccount() would be called once for each account. This never happens and they are both called more often during a single check.

For example I have two accounts with the following attributes:
istop Mail(27), Unread(2) - IMAP c-client plugin
hotmail Mail(2), Unread(0) - Hotmail plugin

PopTrays first email check produces the following:

2005/03/15 18:55:30 MessageCheck From(Chris Butler)
2005/03/15 18:55:30 MessageBody
2005/03/15 18:55:30 MessageCheck From(James Skinner)
2005/03/15 18:55:30 MessageBody
2005/03/15 18:55:30 NotifyAccount istop.com Mail(2) Unread(2) New(2)
2005/03/15 18:55:30 NotifyAccount Hotmail Mail(0) Unread(0) New(0)
2005/03/15 18:55:31 Notify Mail(2) Unread(2) New(2)
2005/03/15 18:55:31 NotifyAccount istop.com Mail(2) Unread(2) New(2)
2005/03/15 18:55:31 NotifyAccount Hotmail Mail(0) Unread(0) New(0)
2005/03/15 18:55:31 Notify Mail(2) Unread(2) New(2)
2005/03/15 18:55:35 MessageCheck From(Silenio Quarti)
2005/03/15 18:55:35 MessageBody
2005/03/15 18:55:35 MessageCheck From(Microsoft)
2005/03/15 18:55:35 MessageBody
2005/03/15 18:55:35 NotifyAccount istop.com Mail(2) Unread(2) New(2)
2005/03/15 18:55:35 NotifyAccount Hotmail Mail(2) Unread(2) New(2)
2005/03/15 18:55:35 Notify Mail(4) Unread(4) New(4)

Problems:
1. Notify is called 3 times rather than 1
2. NotifyAccount is called 6 times rather than 2
3. The istop mail count is always wrong
4. The hotmail counts are wrong the first two times
5. The hotmail unread count is always wrong

I realize that 3, 4, & 5 may be protocol plugin issues rather than PopTray. 1 & 2 are defiantly problems in the framework.

I initially started playing with PopTray plugins becase I wanted to build one for Windows Media Center 2005 Edition but I've got to the point where I don't believe I will build new plug-ins as its not possible to make them act properly given these issues.

-James

User avatar
Renier
Site Admin
Posts: 1957
Joined: Mon Oct 15, 2001 12:54 pm
Location: Cape Town, South-Africa
Contact:

Post by Renier » Wed Mar 16, 2005 9:26 am

Unfortunately I won't be able to look at solving these problems until May.

Also: have you tried to see what happens when you switch on/off the "Reset MailCount in Tray when Viewing" option?

User avatar
jskinner
Groupie
Posts: 55
Joined: Wed Mar 09, 2005 9:25 pm
Contact:

Post by jskinner » Wed Mar 16, 2005 5:13 pm

Renier wrote: Also: have you tried to see what happens when you switch on/off the "Reset MailCount in Tray when Viewing" option?
Yep, I have played with most of the options relating to the system tray icon. None of them seem to correct the problem :(

Locked

Who is online

Users browsing this forum: No registered users and 2 guests