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.&nbsp; <br><br>* If I start Outlook via the UI and exit via the UI, the 
outlook.exe process is gone after about 5 seconds.<br>* 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.<br><br>I have disabled all other Outlook plug-ins/add-ins.&nbsp; I have disabled my anti-virus email scanning.&nbsp; I have set my Outlook macro security level to low.&nbsp; None of these helps.&nbsp; The Spambayes log file, with log level 9 looks the same to me either way.
<br><br>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.<br><br>Outlook 2003 (11.8002.6568) SP2<br>Windows XP Pro SP2<br>Outlook configured with multiple POP3 accounts (no Exchange accounts)
<br>Spambayes Outlook Addin Binary Version 1.0.4 (March 2005)<br><br>Here's sample COM code that should not leave an outlook.exe behind but does:<br>=====================================<br>Set myolapp = CreateObject(&quot;
Outlook.Application&quot;)<br>Set mynamespace = myolapp.GetNameSpace(&quot;MAPI&quot;)<br>Set myfolder = mynamespace.GetDefaultFolder(6)<br>myfolder.Display<br><br>Set myfolder = Nothing<br>Set mynamespace = Nothing<br>MsgBox &quot;shutting down&quot;
<br>Call myolapp.quit&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' (removing this line does not change the behavior)<br>Set myolapp = Nothing<br>MsgBox &quot;done&quot;<br>==================================<br><br><br>Here's the log:<br>=========================================================
<br>System verbosity set to 9<br>No old pickle file to migrate<br>Dumping loaded configuration:<br>[Experimental]<br>timer_interval: 1000<br>timer_only_receive_folders: True<br>timer_start_delay: 0<br><br>[Filter]<br>enabled: True
<br>filter_now: False<br>save_spam_info: True<br>spam_action: Moved<br>spam_folder_id: ('0000000038A1BB1005E5101AA1BB08002B2A56C200006D737073742E646C6C00000000004E495441F9BFB80100AA0037D96E0000000043003A005C0044006F00630075006D0065006E0074007300200061006E0064002000530065007400740069006E00670073005C006B006500760069006E006B006C00650069006E00660065006C007400650072005C004C006F00630061006C002000530065007400740069006E00670073005C004100700070006C00690063006100740069006F006E00200044006100740061005C004D006900630072006F0073006F00660074005C004F00750074006C006F006F006B005C004F00750074006C006F006F006B002E007000730074000000', '00000000547355191FF6DA438D8C85A27916EF7F42820000')
<br>spam_mark_as_read: False<br>spam_threshold: 90.0<br>timer_enabled: True<br>timer_interval: 1.0<br>timer_only_receive_folders: True<br>timer_start_delay: 2.0<br>unsure_action: Moved<br>unsure_folder_id: ('0000000038A1BB1005E5101AA1BB08002B2A56C200006D737073742E646C6C00000000004E495441F9BFB80100AA0037D96E0000000043003A005C0044006F00630075006D0065006E0074007300200061006E0064002000530065007400740069006E00670073005C006B006500760069006E006B006C00650069006E00660065006C007400650072005C004C006F00630061006C002000530065007400740069006E00670073005C004100700070006C00690063006100740069006F006E00200044006100740061005C004D006900630072006F0073006F00660074005C004F00750074006C006F006F006B005C004F00750074006C006F006F006B002E007000730074000000', '00000000547355191FF6DA438D8C85A27916EF7F62820000')
<br>unsure_mark_as_read: False<br>unsure_threshold: 15.0<br>watch_folder_ids: [('0000000038A1BB1005E5101AA1BB08002B2A56C200006D737073742E646C6C00000000004E495441F9BFB80100AA0037D96E0000000043003A005C0044006F00630075006D0065006E0074007300200061006E0064002000530065007400740069006E00670073005C006B006500760069006E006B006C00650069006E00660065006C007400650072005C004C006F00630061006C002000530065007400740069006E00670073005C004100700070006C00690063006100740069006F006E00200044006100740061005C004D006900630072006F0073006F00660074005C004F00750074006C006F006F006B005C004F00750074006C006F006F006B002E007000730074000000', '00000000547355191FF6DA438D8C85A27916EF7F82800000')]
<br>watch_include_sub: False<br><br>[Filter_Now]<br>action_all: True<br>folder_ids: []<br>include_sub: False<br>only_unread: False<br>only_unseen: False<br><br>[General]<br>data_directory: C:\Documents and Settings\kevin\Application Data\SpamBayes
<br>delete_as_spam_message_state: None<br>field_score_name: Spam<br>recover_from_spam_message_state: None<br>verbose: 9<br><br>[Training]<br>ham_folder_ids: [('0000000038A1BB1005E5101AA1BB08002B2A56C200006D737073742E646C6C00000000004E495441F9BFB80100AA0037D96E0000000043003A005C0044006F00630075006D0065006E0074007300200061006E0064002000530065007400740069006E00670073005C006B006500760069006E006B006C00650069006E00660065006C007400650072005C004C006F00630061006C002000530065007400740069006E00670073005C004100700070006C00690063006100740069006F006E00200044006100740061005C004D006900630072006F0073006F00660074005C004F00750074006C006F006F006B005C004F00750074006C006F006F006B002E007000730074000000', '00000000547355191FF6DA438D8C85A27916EF7F22820000')]
<br>ham_include_sub: False<br>rebuild: True<br>rescore: True<br>spam_folder_ids: [('0000000038A1BB1005E5101AA1BB08002B2A56C200006D737073742E646C6C00000000004E495441F9BFB80100AA0037D96E0000000043003A005C0044006F00630075006D0065006E0074007300200061006E0064002000530065007400740069006E00670073005C006B006500760069006E006B006C00650069006E00660065006C007400650072005C004C006F00630061006C002000530065007400740069006E00670073005C004100700070006C00690063006100740069006F006E00200044006100740061005C004D006900630072006F0073006F00660074005C004F00750074006C006F006F006B005C004F00750074006C006F006F006B002E007000730074000000', '00000000547355191FF6DA438D8C85A27916EF7F42820000')]
<br>spam_include_sub: False<br>train_manual_spam: True<br>train_recovered_spam: True<br><br>-- end of configuration --<br>Loaded bayes database from 'C:\Documents and Settings\kevin\Application Data\SpamBayes\default_bayes_database.db'
<br>Loaded message database from 'C:\Documents and Settings\kevin\Application Data\SpamBayes\default_message_database.db'<br>Bayes database initialized with 0 spam and 0 good messages<br>Loaded databases in 1.48427ms<br>SpamBayes Outlook Addin Binary Version 
1.0.4 (March 2005) starting (with engine SpamBayes Engine Version 0.3 (January 2004))<br>on Windows 5.1.2600 (Service Pack 2)<br>using Python 2.3.5 (#62, Feb&nbsp; 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)]<br>Folder 'Personal Folders/Inbox' already has field 'Spam'
<br>SpamBayes: Watching (for filtering) in 'Personal Folders/Inbox'<br>Folder 'Personal Folders/Inbox/bogus2' already has field 'Spam'<br>SpamBayes: Watching (for incremental training) in 'Personal Folders/Inbox/bogus2'<br>
Folder 'Personal Folders/Junk Suspects' already has field 'Spam'<br>Processing missed spam in folder 'Inbox' by starting a timer<br>New message timer started - id=31043, delay=2000<br>OnBeforeFolderSwitch &lt;win32com.client.COMEventClass
 instance at 0x36642088&gt;<br>OnViewSwitch &lt;win32com.client.COMEventClass instance at 0x36642088&gt;<br>OnFolderSwitch &lt;win32com.client.COMEventClass instance at 0x36642088&gt;<br>OnActivate &lt;win32com.client.COMEventClass
 instance at 0x36642088&gt;<br>The timer with id=31043 fired<br>The timer with id=31043 was stopped<br>The new message timer found no new items, so is stopping<br>OnClose &lt;win32com.client.COMEventClass instance at 0x36642088&gt;
<br>SpamBayes - Disconnecting from Outlook<br>Bayes database is not dirty - not writing<br>SpamBayes has processed zero messages<br>Addin terminating: 2 COM client and 2 COM servers exist.<br>=========================================================
<br>
<br>