[spambayes-bugs] [ spambayes-Bugs-903440 ] Fail to filter public folder
SourceForge.net
noreply at sourceforge.net
Mon Dec 5 09:56:49 CET 2005
Bugs item #903440, was opened at 2004-02-25 02:45
Message generated for change (Comment added) made by anadelonbrin
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=903440&group_id=61702
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.0.4
Status: Open
Resolution: None
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: Tony Meyer (anadelonbrin)
Date: 2005-12-05 21:56
Message:
Logged In: YES
user_id=552329
Actually, that one was not exactly a dupe - it wanted the
owner privileges requirement removed, but close enough (if
we fix one, I imagine we'll fix the other).
Actual dupe here:
[ 1120780 ] no training with public folder postings or mails
http://sourceforge.net/tracker/index.php?func=detail&aid=1120780&group_id=61702&atid=498103
----------------------------------------------------------------------
Comment By: Tony Meyer (anadelonbrin)
Date: 2005-12-05 21:54
Message:
Logged In: YES
user_id=552329
Noting dupe in:
[ 1199978 ] Requires Owner on Public Folder to Score Spam
http://sourceforge.net/tracker/index.php?func=detail&aid=1199978&group_id=61702&atid=498103
----------------------------------------------------------------------
Comment By: Judy Dye (judydye)
Date: 2004-05-13 19:04
Message:
Logged In: YES
user_id=988571
Sorry but it does also happen with background filtering off.
I get the same error:-
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)
I have administrator rights and am trying to remove items
from a variety of Public folders (Sales, Support, Facsimiles)
into a Public Spam folder
HTH
----------------------------------------------------------------------
Comment By: Tony Meyer (anadelonbrin)
Date: 2004-05-13 09:51
Message:
Logged In: YES
user_id=552329
jduydye: dsbowskill's comment of 3-12 says that this does
not occur with background filtering off. Did you try that?
Did you have the same experience?
----------------------------------------------------------------------
Comment By: Judy Dye (judydye)
Date: 2004-05-12 18:57
Message:
Logged In: YES
user_id=988571
I am still getting the original problem - see my entry 2004-03-
02 even with 1.0b1. I've reverted back to 0.81 which is the
latest version when things work.
HTH
----------------------------------------------------------------------
Comment By: Tony Meyer (anadelonbrin)
Date: 2004-05-12 14:40
Message:
Logged In: YES
user_id=552329
zanthony's bug is not the same as this. It is, however, the
same as:
[ 943397 ] Cannot choose more than one Inbox folder to filter
<https://sourceforge.net/tracker/?func=detail&atid=498103&aid=943397&group_id=61702>
Happily, this has just been fixed & closed, so this should
be resolved in the next release (1.0rc2 or 1.0).
----------------------------------------------------------------------
Comment By: zanthony (zanthony)
Date: 2004-05-12 01: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 13: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 13: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 13: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 13: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 13: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 13: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 22: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-02 12: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