[spambayes-bugs] [ spambayes-Bugs-903440 ] Fail to filter public folder

SourceForge.net noreply at sourceforge.net
Tue May 11 09:19:12 EDT 2004


Bugs item #903440, was opened at 2004-02-24 13:45
Message generated for change (Comment added) made by zanthony
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=903440&group_id=61702

Category: Outlook
Group: Binary 1.0a9 (0.9)
Status: Closed
Resolution: Fixed
Priority: 5
Submitted By: Rasmus Aaen (raaen)
Assigned to: Mark Hammond (mhammond)
Summary: Fail to filter public folder

Initial Comment:
If I mark a public folder ("Dns") for filtering, the Outlook 
addin stops working with the errormessage "Could not 
watch the specified folders". If my Inbox is the only 
folder filtered there are no problems. Filtering a public 
folder used to work in v. 0.81

I noticed that the folder does not have a "Spam" field, 
but manually creating it does not help. I have "Owner" 
rights on the public folder.  

After the error has occurred, the "Select folders" window 
is empty (see attached image).

I have tried uninstalling/installing and deleting settings 
and database files.

Logfile:
Loaded bayes database from 'C:\Documents and 
Settings\Rasmus\Application 
Data\SpamBayes\default_bayes_database.db'
Loaded message database from 'C:\Documents and 
Settings\Rasmus\Application 
Data\SpamBayes\default_message_database.db'
Bayes database initialized with 0 spam and 0 good 
messages
SpamBayes Outlook Addin Binary Version 0.9 (February 
2004) starting (with engine SpamBayes Engine Version 
0.3 (January 2004))
on Windows 5.0.2195 (Service Pack 4)
using Python 2.3.2+ (#49, Oct 23 2003, 15:50:06) [MSC 
v.1200 32 bit (Intel)]
SpamBayes: Watching (for filtering) in 'Mailbox - Rasmus 
Aaen/Inbox'
ERROR: 'There was an error initializing the Spam 
plugin.\r\n\r\nSpam filtering has been disabled.  Please 
re-configure\r\nand re-enable this plugin\r\n\r\nError 
details:\r\nCould not watch the specified folders'
Traceback (most recent call last):
  File "addin.pyc", line 1304, in FiltersChanged
  File "addin.pyc", line 1330, in UpdateFolderHooks
  File "addin.pyc", line 1358, in _HookFolderEvents
  File "msgstore.pyc", line 501, in GetFQName
  File "msgstore.pyc", line 547, in GetParent
  File "msgstore.pyc", line 527, in _FolderFromMAPIFolder
com_error: (-2147467259, 'Unspecified error', None, 
None)
Skipping processing of missed messages in folder 'Inbox', 
as it is not available
Skipping processing of missed messages in folder 'Dns', 
as it is not available


----------------------------------------------------------------------

Comment By: zanthony (zanthony)
Date: 2004-05-11 13:19

Message:
Logged In: YES 
user_id=1004452

The problem doesn't seem to be fixed with 1.0b1 for me,
assuming, that is, that the problem I am experieicing is the
same one documented here.

I am unable to mark both my personal Inbox and another
account's Inbox (for which I have full rights) to be
monitored at the same time.  Both are available in my Folder
List simulataneously.  This worked in .0081 but hasn't
since.  In the last version I was simply unable to close the
Manager dialog with the other account's Inbox selected also,
now I get an error stating 'Please select a child-folder -
top-level folders can't be used' and am unable to even
select it.

Can this bug be re-opened, or should this be opened as a
separate issue?

----------------------------------------------------------------------

Comment By: Mark Hammond (mhammond)
Date: 2004-05-04 01:03

Message:
Logged In: YES 
user_id=14198

This should be fixed in the 1.0b1 release (it has better
error handing when fetching the full folder name).  If not,
please re-open.

----------------------------------------------------------------------

Comment By: Tony Meyer (anadelonbrin)
Date: 2004-03-12 00:30

Message:
Logged In: YES 
user_id=552329

Hmm.  This means my comment is most likely invalid.  Back to 
Mark for the clever figuring out bit :)

----------------------------------------------------------------------

Comment By: DSB (dsbowskill)
Date: 2004-03-12 00:26

Message:
Logged In: YES 
user_id=995952

Back on 1.a09 ... and further fiddling reveals that this problem 
only seems to occur when background filtering is turned on.

This actually happens in v0081 as well, just never had 
background filter switched on before it seems.

Here's the log file for 1.a09 with background filtering OFF: 
(with various privacy snips!)

---Warning: option 
experimental_ham_spam_imbalance_adjustment in section 
Classifier is deprecated
Loaded bayes database from 'C:\Documents and 
Settings\<snip>\Application 
Data\SpamBayes\default_bayes_database.db'
Loaded message database from 'C:\Documents and 
Settings\<snip>\Application 
Data\SpamBayes\default_message_database.db'
Bayes database initialized with 3360 spam and 3622 good 
messages
SpamBayes Outlook Addin Binary Version 0.9 (February 2004) 
starting (with engine SpamBayes Engine Version 0.3 (January 
2004))
on Windows 5.0.2195 (Service Pack 4)
using Python 2.3.2+ (#49, Oct 23 2003, 15:50:06) [MSC 
v.1200 32 bit (Intel)]
SpamBayes: Watching (for filtering) in 'Mailbox - <snip>/Inbox'
Folder 'Public Folders/IPM_SUBTREE/All Public 
Folders/News/<snip>/Planning/<snip>/<snip> Online' has no 
field named 'Spam' - creating
Warning: failed to create the Outlook user-property in 
folder 'Public Folders/IPM_SUBTREE/All Public 
Folders/News/<snip>/Planning/<snip>/<snip>Online'
 (-2147352567, 'Exception occurred.', (4096, 'Microsoft 
Outlook', "You don't have appropriate permission to perform 
this operation.", None, 0, -2147024891), None)
WARNING: We just created the user field in folder Public 
Folders/IPM_SUBTREE/All Public 
Folders/News/<snip>/Planning/<snip>/<snip>Online, but it 
appears to not exist.  Something is probably wrong with 
DoesFolderHaveOutlookField()
SpamBayes: Watching (for filtering) in 'Public 
Folders/IPM_SUBTREE/All Public 
Folders/News/<snip>/Planning/<snip>/<snip>Online'
SpamBayes: Watching (for incremental training) in 'Mailbox - 
<snip>/Spam'
Processing 0 missed spam in folder 'Inbox' took 3.73427ms
Processing 0 missed spam in folder '<snip>Online' took 
144.868ms

---

And here's the logfile with background filtering ON.

---

SpamBayes: Watching (for filtering) in 'Mailbox - <snip>/Inbox'
Folder 'Public Folders/IPM_SUBTREE/All Public 
Folders/News/<snip>/Planning/<snip>/<snip>Online' has no 
field named 'Spam' - creating
Warning: failed to create the Outlook user-property in 
folder 'Public Folders/IPM_SUBTREE/All Public 
Folders/News/<snip>/Planning/<snip>/<snip>Online'
 (-2147352567, 'Exception occurred.', (4096, 'Microsoft 
Outlook', "You don't have appropriate permission to perform 
this operation.", None, 0, -2147024891), None)
WARNING: We just created the user field in folder Public 
Folders/IPM_SUBTREE/All Public 
Folders/News/<snip>/Planning/<snip>/<snip>Online, but it 
appears to not exist.  Something is probably wrong with 
DoesFolderHaveOutlookField()
ERROR: 'There was an error initializing the Spam 
plugin.\r\n\r\nSpam filtering has been disabled.  Please re-
configure\r\nand re-enable this plugin\r\n\r\nError 
details:\r\nCould not watch the specified folders'
Traceback (most recent call last):
  File "addin.pyc", line 1304, in FiltersChanged
  File "addin.pyc", line 1330, in UpdateFolderHooks
  File "addin.pyc", line 1395, in _HookFolderEvents
  File "addin.pyc", line 277, in Init
  File "msgstore.pyc", line 629, in IsReceiveFolder
com_error: (-2147221246, 'Invalid window handle', None, 
None)
Spam filtering is disabled - ignoring new message
pythoncom error: Python error invoking COM method.
Traceback (most recent call last):
  File "win32com\server\policy.pyc", line 275, in _Invoke_
  File "win32com\server\policy.pyc", line 280, in _invoke_
  File "win32com\server\policy.pyc", line 608, in _invokeex_
  File "win32com\server\policy.pyc", line 542, in _invokeex_
  File "addin.pyc", line 383, in OnItemAdd
  File "win32com\client\__init__.pyc", line 496, in __getattr__
  File "win32com\client\__init__.pyc", line 455, in __getattr__
  File "win32com\client\__init__.pyc", line 446, in _ApplyTypes_
pywintypes.com_error: (-2147221233, 'OLE error 0x8004010f', 
None, None)

---

Result! :)  Seems to work ok, but not with background 
filtering.  Remember I have 'Editor' priv of the public folder (I 
can delete the items from it)

I am *moving* the spam from the public folder and into a sub-
folder on my on mailbox.

DSB



----------------------------------------------------------------------

Comment By: Tony Meyer (anadelonbrin)
Date: 2004-03-12 00:11

Message:
Logged In: YES 
user_id=552329

Mark: this is presumably a result of SB now trying to create 
the spam field for all the folders, yes?  Could it fail more 
gracefully here?

(I'd write a patch, but I'm not very familiar with this bit of the 
code).

----------------------------------------------------------------------

Comment By: DSB (dsbowskill)
Date: 2004-03-12 00:08

Message:
Logged In: YES 
user_id=995952

Forgot to mention ... I am moving the spam OUT of the public 
folder and into one of my mailbox sub-folders.

----------------------------------------------------------------------

Comment By: DSB (dsbowskill)
Date: 2004-03-12 00:05

Message:
Logged In: YES 
user_id=995952

Exactly the same problem, though I went back to 0081 in 
order to fix it.

0081 works, 1.0a9 doesn't.  Nothing to do with our exchange 
server, so this isn't the problem (at least for me).

I do get this error in the logfile, which doesn't stop the addin 
working for 0081, but it does seem to for 1.0a9. (I don't have 
admin over the public folder I'm filtering, but I am 'Editor' priv. 

---
Warning: failed to create the Outlook user-property in 
folder 'Public Folders/IPM_SUBTREE/All Public 
Folders/News/<snip>/Planning/<snip>/<snip>Online'
 (-2147352567, 'Exception occurred.', (4096, 'Microsoft 
Outlook', "You don't have appropriate permission to perform 
this operation.", None, 0, -2147024891), None)



----------------------------------------------------------------------

Comment By: Judy Dye (judydye)
Date: 2004-03-02 09:45

Message:
Logged In: YES 
user_id=988571

I have the same problem but it has only occurred since 
upgrading from Exchange 5.5 to 2003 - perhaps this is 
causing the problem?




Trace

SpamBayes Outlook Addin Binary Version 0.9 (February 2004) 
starting (with engine SpamBayes Engine Version 0.3 (January 
2004))
on Windows 5.0.2195 (Service Pack 4)
using Python 2.3.2+ (#49, Oct 23 2003, 15:50:06) [MSC 
v.1200 32 bit (Intel)]
ERROR: 'There was an error initializing the Spam 
plugin.\r\n\r\nSpam filtering has been disabled.  Please re-
configure\r\nand re-enable this plugin\r\n\r\nError 
details:\r\nCould not watch the specified folders'
Traceback (most recent call last):
  File "addin.pyc", line 1304, in FiltersChanged
  File "addin.pyc", line 1330, in UpdateFolderHooks
  File "addin.pyc", line 1395, in _HookFolderEvents
  File "addin.pyc", line 277, in Init
  File "msgstore.pyc", line 629, in IsReceiveFolder
com_error: (-2147221246, 'Invalid window handle', None, 
None)
Skipping processing of missed messages in folder 'Facsimiles', 
as it is not available
Skipping processing of missed messages in folder 'sales', as it 
is not available
Skipping processing of missed messages in folder 'Support', as 
it is not available
Skipping processing of missed messages in folder 'Inbox', as it 
is not available


Hope this helps........

----------------------------------------------------------------------

Comment By: Ladd Nelson (gladdys)
Date: 2004-03-01 23:02

Message:
Logged In: YES 
user_id=840787

I've recently encountered this problem as well. However in my 
case, I want SpamBayes to move detected spam to the 
public folder for use by our IT staff. Once the network folder 
is identified and the "Could not watch the specified folders" 
message appears, the only way I've been able to clear the 
error is to retrain SpamBayes through the training wizard 
which allows me to specify a local folder towards the end of 
the wizard.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=903440&group_id=61702



More information about the Spambayes-bugs mailing list