[spambayes-bugs] [ spambayes-Bugs-1103976 ] Outlook.exe will not terminate when launched via mailto

SourceForge.net noreply at sourceforge.net
Tue Jul 24 02:59:44 CEST 2007

Bugs item #1103976, was opened at 2005-01-17 16:56
Message generated for change (Comment added) made by selfman
You can respond by visiting: 

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Outlook
Group: 1.1.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: robert (elitemrp)
Assigned to: Kenny Pitt (kpitt)
Summary: Outlook.exe will not terminate when launched via mailto

Initial Comment:
I first ran into this problem a few months ago at work. 
But at the time I thought it was related to a custom 
program we run here. But now I noticed I can easily 
reproduce the problem on any computer running 
SpamBayes+Outlook 2003 on Windows XP.

Basically, I will open Outlook via the icon to read mail. I 
will then close Outlook, and if I have Task Manager 
open, I will see that Outlook.exe closes correctly.

Now if I launch a mailto: link (or use a program that 
launches a new mail), where the Compose Mail window 
opens, but not the actual outlook program, the problem 
occurs. If I close the compose mail window, by either 
clicking Send, or closing it without sending, the 
OUTLOOK.EXE task will not exit.

If I launch Outlook again, I'll now have multiple instances 
of OUTLOOK.EXE in task manager.

Now the multiple instances is what caused the problem 
with our custom software at work, but that has nothing 
to do with the fact that Outlook does not exit correctly 
when running Spambayes and having a program/mailto 
link open the Compose Mail window.

Yes I realize there have been 2 previous tickets about 
OUTLOOK.EXE closing, but none came to the conclusion 
that it's caused by a Compose Mail window. And both 
are closed without a solution.

I have tested this on several computers and have tried 
multiple things to try to fix it (such as renaming 
extend.dat and other files) and nothing seems to work.


Comment By: SelfMan (selfman)
Date: 2007-07-24 02:59

Logged In: YES 
Originator: NO

The unload problem occurs also while:
- start outlook
- connect PDA via USB/Active sync
- let PDA turned On
- close outlook

Outlook stays open in background.
Now turn off PDA.
Normal behavior (without SpamBayes) - outlook closes
Bad behavior (With SpamBayes) - outlook stays "hanging" on background

This BUG is killing me, because I have to kill the outlook process...
And that can cause a damage to the pst file.
Problem exists in SpamBayes 1.1a3 and older.


Comment By: SelfMan (selfman)
Date: 2007-03-25 04:42

Logged In: YES 
Originator: NO

Its 2007 and this is still not fixed


Comment By: Sadie (sadie_187)
Date: 2006-08-17 00:05

Logged In: YES 

Problem: Outlook 2003 does not terminate the outlook.exe 
process at closing of the program.  
Possible Solution (worked for me) :  Active sync for my 
outlook was causing the process to hang.  Removed the 
calendar, contacts sink option; which I rarely use.


Comment By: Nytetears (nytetears)
Date: 2006-05-24 01:12

Logged In: YES 

To be honest Outlook 2003 was fine for a bit after 
disabling the spam blocker and then it started with the 
refusing to shut down again. I finally gave up and paid $5 
for an addin that makes sure the program is shut down 
(http://www.daveswebsite.com/software/olshutdown/ ). 

I truely do not believe it is SpamBayes causing the 
trouble as I have it without this program. I have found it 
often happens if I click on an email link in a browser 
when the program is not open. I do know I have had this 
problem for years and I don't use addons in my email as a 
general rule.


Comment By: Christian Blackburn (seier)
Date: 2006-05-23 23:04

Logged In: YES 

Hi NyteTears,

> It seems that the spam filter in outlook is causing it to

I wasn't able to reproduce this in Outlook 2003, which is
where the problem is at for most people.  Perhaps you'd like
to tell us what version you're using and the exact steps you
took to resolve this.  As far as I can tell the problem the
rest of us are experiencing is indeed related to SpamBayes'
plugin and not outlook itself, although I'm sure in the past
with all those security updates the scenario you've
described must have been true at least once.  

Christian Blackburn 


Comment By: Tony Meyer (anadelonbrin)
Date: 2005-12-05 10:24

Logged In: YES 

See also:

[ 1336405 ] Add-In breaks MAPI control


Comment By: Nytetears (nytetears)
Date: 2005-10-27 21:59

Logged In: YES 

I had this problem on my computer and tried removing various 
different program to fix it. Nothing worked. I have found it is 
not related to any program outside of outlook. It is an outlook 
problem. It seems that the spam filter in outlook is causing it 
to hang. Once I turned off the spam filter that came with 
outlook I never had the program hang once. I could not tell 
you why it does this or a fix for it beyond turning the option 
off but that is the cause of outlook remaining open in the task 


Comment By: Kip Cartwright (kcartwri)
Date: 2005-03-30 02:26

Logged In: YES 

I have the same problem on Outlook 2003.  No problem with 
Outlook XP (2002).  


Comment By: fsnyder (fsnyder)
Date: 2005-02-25 23:00

Logged In: YES 

This behavior of the Outlook.exe not being stopped properly 
can be duplicated using the following VBScript code.

On error Resume Next

Dim oOutlookApp, oOutlookNS

Set oOutlookApp = GetObject(,"Outlook.Application")
if Err <> 0 then
	MsgBox "Outlook not currently running." & VbCrLf 
& "Creating New Outlook Application.  I'll kill it when I'm done"
	set oOutlookApp = CreateObject
  	MsgBox "Outlook was running.  I'll kill it anyway 
when I'm done."
End If

MsgBox oOutlookApp.name & " version# " &  
MsgBox "Now I'll kill the Outlook.exe process the clean way"


set oOutlookNS = Nothing
set oOutlookApp = Nothing

MsgBox "END"

Run it and watch the TaskManager for when the Outlook.exe 
process gets created, and killed (as long as the SpamBayes 
Add-In is NOT activated in Outlook)

This should normally kill the process unless some other add-
in or anti-virus code is not allowing Outlook to exit cleanly.

Hope this Helps



Comment By: Hal Smith (bpu_webguy)
Date: 2005-02-03 19:00

Logged In: YES 

One other source of hanging OL up, with or without 
Spambayes is ActiveSync for your PDA, celll phone or 
AS does tend to work behind your back, a little bit.  One of 
the reasons I love Process Explorer from System Internals...


Comment By: Gil (spambayes411)
Date: 2005-02-02 11:52

Logged In: YES 

I've discovered this is not limited to the mailto function.
 I use a program called SynchPST to keep outlook sychronized
between my home computer and my laptop.  When SynchPST
opens, I see it in the task manager and it opens Outlook as
well.  After I synch my PST files, I close SynchPST.  It
closes but Outlook remains in the task manager.  If the
Spambayes add-in is not loaded, then both SynchPST and
Outlook quit as they should.


Comment By: Tony Meyer (anadelonbrin)
Date: 2005-01-25 00:22

Logged In: YES 

Thanks Kenny :)  I don't really know what might be causing
this, but I guess you could start by checking to see if the
spambayes log gets to the "addin terminating" part.  Let me
know if I can help at all (though I don't have OL2003 anywhere).


Comment By: Kenny Pitt (kpitt)
Date: 2005-01-24 17:23

Logged In: YES 

Yep, I was able to confirm this problem on Outlook 2003.

If I activate a mailto link with SpamBayes loaded and
enabled, OUTLOOK.EXE will not exit when I close the compose
window. If I disable SpamBayes filtering from SpamBayes
Manager, OUTLOOK.EXE still doesn't exit. If I completely
disable loading of SpamBayes from the COM Add-ins dialog
then OUTLOOK.EXE closes properly when I close the compose

I'll look into this further when I get a chance.


Comment By: Tony Meyer (anadelonbrin)
Date: 2005-01-24 06:53

Logged In: YES 

Maybe this is specific to Outlook 2003 then?  Kenny: you've
got 2003, right?  Can you try and replicate this?


Comment By: robert (elitemrp)
Date: 2005-01-21 12:49

Logged In: YES 

Yes, it only happens with SpamBayes installed.

I install SpamBayes, set up the toolbar, etc

Close Outlook, type mailto:blah at blah.com in a browser or click 
a mail link and it opens the Compose Mail window. Once I close 
this window, Outlook.exe ramains in the task list. If I click 
another mailto link I'll have 2 stuck open, then 3, etc

If I have only 1 process loaded and it's the main Outlook 
window, when I click a mailto link it will work fine since it 
doesn't load a separate outlook.exe process. It only does this 
when the main outlook program isn't loaded.

Once I uninstall SpamBayes or uncheck it in the COM Add-Ins 
area in Outlook, this problem goes away. As soon as I close a 
Compose Mail window, OUTLOOK.EXE terminates correctly.

I've tried this on several PCs, some with fresh installs of XP/
Outlook, some with several months old installs and other 
applications, it's the same on each.



Comment By: Tony Meyer (anadelonbrin)
Date: 2005-01-21 04:17

Logged In: YES 

Have you tried this without SpamBayes installed?  I get the
same behaviour without SpamBayes, which says to me it's an
Outlook problem, not a SpamBayes one.


You can respond by visiting: 

More information about the Spambayes-bugs mailing list