[Spambayes] Outlook envelope icon
pcrayne at comcast.net
Thu Feb 19 20:25:05 EST 2004
There's a standalone app that does something similar:
"Windows (9x/Me/NT/2k/XP) tray utility that monitors the Outlook Inbox for
unread email. An empty or full envelope is displayed depending on the status
of unread email in the Inbox. It also removes Outlook's envelope icon from
It's no longer being developed, but it is open-source.
From: spambayes-bounces at python.org [mailto:spambayes-bounces at python.org] On
Behalf Of dickk at paragonconstructioninc.com
Sent: Thursday, February 19, 2004 6:44 AM
To: spambayes at python.org
Subject: [Spambayes] Outlook envelope icon
I've read the faq on this and I wanted to share what I was doing. I'm
hoping that someone has come up with a better way which hasn't made it to
I use the Application_NewMail event to create an AppointmentItem with a
start time of Now and ReminderMinutesBeforeStart = 0. Then I use the
Application_Reminder event to determine the amount of unread mail in my
Inbox. If none, I delete the envelope icon using Neo's code. And it
deletes the AppointmentItem whether the envelope is deleted or not.
Here are the problems:
Even though the AppointmentItem is set to remind immediately, it takes
between 10 and 30 seconds for it to actually run. This means that if I see
an envelope, it may mean I have new mail or it may mean that the reminder
event hasn't run yet.
The reminder is displayed and steals the focus for a split second before
it's deleted. Normally that's not a problem, but it can be an annoyance if
I'm typing something during that split second.
My deleted items folder has a lot of deleted reminders in it. I've manually
set up a reminder for every Sunday to delete these reminders from the
deleted items folder, but I won't know if this works well until this Sunday.
Here's the code I'm using:
More information about the Spambayes