[spambayes-dev] RE: [Spambayes] Outlook Envelope Tray Icon

Kenny Pitt kennypitt at hotmail.com
Fri Nov 7 14:08:12 EST 2003


Ryan Malayter wrote:
>> From: Bob Chojnacki
>> Subject: RE: [Spambayes] Outlook Envelope Tray Icon
>> 
>> I noticed right after I sent my email (blush) the comment in
>> their code
>> 
>>   ' add some code to check whether the latest items are "interesting"
>> 
> Is it really that hard?

Maybe it isn't.  I just know I'm not the guy familiar enough with the
code to determine that. <wink>

> 
> Maybe I'm not thinking it through enough, but I suggest this simple
> approach:
> 	Check for unread messages in the SpamBayes "watched" folders.
> 	Check the spam score on each of those unread messages.
> 	If any exist where the Spam score is below the certain ham
> threshold, show the icon
> 	if not, everything new was spam, and you can remove the icon.
> 
> This might take a second or two two but it can happen right after
> every SpamBayes scoring run gets triggered. So we'll see the new mail
> icon for at most a few seconds.

Some possible issues I can think of:

First, depending on your SpamBayes configuration the processing can be
triggered each time a new message is added to the Inbox.  I'm not sure
if it would be a good idea to check all messages in all watched folders
every time a new message is received, as that might prove time-consuming
(especially for those of us who tend to let our Inboxes get cluttered
with old mail).

Second, we've seen in other cases that we can't always rely on Outlook
to do things in the order that we expect.  I'm not sure we can guarantee
that we are processing the message *after* Outlook has already created
the tray icon.  We could end up "removing" an icon that doesn't yet
exist, and then have Outlook add it after we've finished our processing.

P.S.  I've moved this discussion over to the spambayes-dev list, which
is probably a more appropriate venue for these implementation details.

-- 
Kenny Pitt




More information about the spambayes-dev mailing list