[Spambayes] Outlook Add-in vs. COM

Kevin Kleinfelter spambayes at kleinfelter.com
Mon Feb 20 04:00:45 CET 2006


With the Spambayes Outlook plug-in enabled, starting Outlook via COM and
shutting down Outlook via COM leaves an outlook.exe process running on my
machine.

* If I start Outlook via the UI and exit via the UI, the outlook.exe process
is gone after about 5 seconds.
* If I disable the Spambayes Outlook plugin, and then start Outlook via COM
and exit via COM, the outlook.exe process is gone after about 5 seconds.

I have disabled all other Outlook plug-ins/add-ins.  I have disabled my
anti-virus email scanning.  I have set my Outlook macro security level to
low.  None of these helps.  The Spambayes log file, with log level 9 looks
the same to me either way.

I'd sure appreciate any pointers that would let me use both the Spambayes
plug-in AND other apps that use OLE automation of Outlook.

Outlook 2003 (11.8002.6568) SP2
Windows XP Pro SP2
Outlook configured with multiple POP3 accounts (no Exchange accounts)
Spambayes Outlook Addin Binary Version 1.0.4 (March 2005)

Here's sample COM code that should not leave an outlook.exe behind but does:
=====================================
Set myolapp = CreateObject("Outlook.Application")
Set mynamespace = myolapp.GetNameSpace("MAPI")
Set myfolder = mynamespace.GetDefaultFolder(6)
myfolder.Display

Set myfolder = Nothing
Set mynamespace = Nothing
MsgBox "shutting down"
Call myolapp.quit       ' (removing this line does not change the behavior)
Set myolapp = Nothing
MsgBox "done"
==================================


Here's the log:
=========================================================
System verbosity set to 9
No old pickle file to migrate
Dumping loaded configuration:
[Experimental]
timer_interval: 1000
timer_only_receive_folders: True
timer_start_delay: 0

[Filter]
enabled: True
filter_now: False
save_spam_info: True
spam_action: Moved
spam_folder_id:
('0000000038A1BB1005E5101AA1BB08002B2A56C200006D737073742E646C6C00000000004E495441F9BFB80100AA0037D96E0000000043003A005C0044006F00630075006D0065006E0074007300200061006E0064002000530065007400740069006E00670073005C006B006500760069006E006B006C00650069006E00660065006C007400650072005C004C006F00630061006C002000530065007400740069006E00670073005C004100700070006C00690063006100740069006F006E00200044006100740061005C004D006900630072006F0073006F00660074005C004F00750074006C006F006F006B005C004F00750074006C006F006F006B002E007000730074000000',
'00000000547355191FF6DA438D8C85A27916EF7F42820000')
spam_mark_as_read: False
spam_threshold: 90.0
timer_enabled: True
timer_interval: 1.0
timer_only_receive_folders: True
timer_start_delay: 2.0
unsure_action: Moved
unsure_folder_id:
('0000000038A1BB1005E5101AA1BB08002B2A56C200006D737073742E646C6C00000000004E495441F9BFB80100AA0037D96E0000000043003A005C0044006F00630075006D0065006E0074007300200061006E0064002000530065007400740069006E00670073005C006B006500760069006E006B006C00650069006E00660065006C007400650072005C004C006F00630061006C002000530065007400740069006E00670073005C004100700070006C00690063006100740069006F006E00200044006100740061005C004D006900630072006F0073006F00660074005C004F00750074006C006F006F006B005C004F00750074006C006F006F006B002E007000730074000000',
'00000000547355191FF6DA438D8C85A27916EF7F62820000')
unsure_mark_as_read: False
unsure_threshold: 15.0
watch_folder_ids:
[('0000000038A1BB1005E5101AA1BB08002B2A56C200006D737073742E646C6C00000000004E495441F9BFB80100AA0037D96E0000000043003A005C0044006F00630075006D0065006E0074007300200061006E0064002000530065007400740069006E00670073005C006B006500760069006E006B006C00650069006E00660065006C007400650072005C004C006F00630061006C002000530065007400740069006E00670073005C004100700070006C00690063006100740069006F006E00200044006100740061005C004D006900630072006F0073006F00660074005C004F00750074006C006F006F006B005C004F00750074006C006F006F006B002E007000730074000000',
'00000000547355191FF6DA438D8C85A27916EF7F82800000')]
watch_include_sub: False

[Filter_Now]
action_all: True
folder_ids: []
include_sub: False
only_unread: False
only_unseen: False

[General]
data_directory: C:\Documents and Settings\kevin\Application Data\SpamBayes
delete_as_spam_message_state: None
field_score_name: Spam
recover_from_spam_message_state: None
verbose: 9

[Training]
ham_folder_ids:
[('0000000038A1BB1005E5101AA1BB08002B2A56C200006D737073742E646C6C00000000004E495441F9BFB80100AA0037D96E0000000043003A005C0044006F00630075006D0065006E0074007300200061006E0064002000530065007400740069006E00670073005C006B006500760069006E006B006C00650069006E00660065006C007400650072005C004C006F00630061006C002000530065007400740069006E00670073005C004100700070006C00690063006100740069006F006E00200044006100740061005C004D006900630072006F0073006F00660074005C004F00750074006C006F006F006B005C004F00750074006C006F006F006B002E007000730074000000',
'00000000547355191FF6DA438D8C85A27916EF7F22820000')]
ham_include_sub: False
rebuild: True
rescore: True
spam_folder_ids:
[('0000000038A1BB1005E5101AA1BB08002B2A56C200006D737073742E646C6C00000000004E495441F9BFB80100AA0037D96E0000000043003A005C0044006F00630075006D0065006E0074007300200061006E0064002000530065007400740069006E00670073005C006B006500760069006E006B006C00650069006E00660065006C007400650072005C004C006F00630061006C002000530065007400740069006E00670073005C004100700070006C00690063006100740069006F006E00200044006100740061005C004D006900630072006F0073006F00660074005C004F00750074006C006F006F006B005C004F00750074006C006F006F006B002E007000730074000000',
'00000000547355191FF6DA438D8C85A27916EF7F42820000')]
spam_include_sub: False
train_manual_spam: True
train_recovered_spam: True

-- end of configuration --
Loaded bayes database from 'C:\Documents and Settings\kevin\Application
Data\SpamBayes\default_bayes_database.db'
Loaded message database from 'C:\Documents and Settings\kevin\Application
Data\SpamBayes\default_message_database.db'
Bayes database initialized with 0 spam and 0 good messages
Loaded databases in 1.48427ms
SpamBayes Outlook Addin Binary Version 1.0.4 (March 2005) starting (with
engine SpamBayes Engine Version 0.3 (January 2004))
on Windows 5.1.2600 (Service Pack 2)
using Python 2.3.5 (#62, Feb  8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)]
Folder 'Personal Folders/Inbox' already has field 'Spam'
SpamBayes: Watching (for filtering) in 'Personal Folders/Inbox'
Folder 'Personal Folders/Inbox/bogus2' already has field 'Spam'
SpamBayes: Watching (for incremental training) in 'Personal
Folders/Inbox/bogus2'
Folder 'Personal Folders/Junk Suspects' already has field 'Spam'
Processing missed spam in folder 'Inbox' by starting a timer
New message timer started - id=31043, delay=2000
OnBeforeFolderSwitch <win32com.client.COMEventClass instance at 0x36642088>
OnViewSwitch <win32com.client.COMEventClass instance at 0x36642088>
OnFolderSwitch <win32com.client.COMEventClass instance at 0x36642088>
OnActivate <win32com.client.COMEventClass instance at 0x36642088>
The timer with id=31043 fired
The timer with id=31043 was stopped
The new message timer found no new items, so is stopping
OnClose <win32com.client.COMEventClass instance at 0x36642088>
SpamBayes - Disconnecting from Outlook
Bayes database is not dirty - not writing
SpamBayes has processed zero messages
Addin terminating: 2 COM client and 2 COM servers exist.
=========================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/spambayes/attachments/20060219/56c9bf2f/attachment.htm 


More information about the SpamBayes mailing list