[Spambayes] [ spambayes-Patches-648271 ] Code to remove the New Mail
icon
SourceForge.net
noreply at sourceforge.net
Mon Jan 27 06:20:04 EST 2003
Patches item #648271, was opened at 2002-12-04 19:59
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498105&aid=648271&group_id=61702
Category: Outlook
Group: None
>Status: Closed
>Resolution: Rejected
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.
----------------------------------------------------------------------
>Comment By: Mark Hammond (mhammond)
Date: 2003-01-28 01:20
Message:
Logged In: YES
user_id=14198
Closing this. If a better proposal for the icon is put
forward, we can review it again.
----------------------------------------------------------------------
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