[Spambayes] [ spambayes-Patches-648271 ] Code to remove the New Mail
icon
noreply at sourceforge.net
noreply at sourceforge.net
Wed Dec 4 08:59:33 2002
Patches item #648271, was opened at 2002-12-04 08:59
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498105&aid=648271&group_id=61702
Category: Outlook
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Peter Arnold (lardladpa)
Assigned to: Nobody/Anonymous (nobody)
Summary: Code to remove the New Mail icon
Initial Comment:
It would be great if having processed the newly arrived
e-mail and discovered that they were all spam the addin
could remove the New Message icon from the system tray.
I know there's no programitic interface to do this but
I found some VB code at
http://www.slipstick.com/dev/code/clearenvicon.htm
I've converted the 3 pages of VB to this small bit of
python
import win32gui
# Locate the outlook window owning the tray icon
hWnd = win32gui.FindWindow("rctrl_renwnd32", "")
if hWnd != 0:
# Send a NIM_DELETE to remove the icon
nid = (hWnd, 0)
win32gui.Shell_NotifyIcon(2, nid)
# Send a WUM_RESETNOTIFICATION to the owning window
win32gui.SendMessage(hWnd, 1031, 0, 0)
It would be super if this patch could be integrated
into the outlook plugin although I'm not quite sure
where in the code it would go.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498105&aid=648271&group_id=61702
More information about the Spambayes
mailing list