Any thoughts on this exception?
John Cherney <[email protected]> Thu, 14 Dec 2023 04:37:13 +0000
| Newsgroups | gmane.mail.spam.spambayes.devel |
|---|---|
| Message-ID | <CY8PR11MB73374734729BF5EA49694CC4BC8CA@CY8PR11MB7337.namprd11.prod.outlook.com> |
--===============6200029181056999455==
Content-Language: en-US
Content-Type: multipart/alternative;
boundary="_000_CY8PR11MB73374734729BF5EA49694CC4BC8CACY8PR11MB7337namp_"
--_000_CY8PR11MB73374734729BF5EA49694CC4BC8CACY8PR11MB7337namp_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
I've made some progress. I've cloned smontanaro's spambayes repo and used t=
hat as a starting point. I think I've gotten most, of the 2.x to 3.x conver=
sions. I have the Add-in registered. I have the Add-ins menu showing up. Bu=
t (and there has to be a 'but') I can't seem to get the win32com mapi to re=
ad anything meaningful. I haven't seen anything helpful in my Google search=
es. I'm throwing this out there hoping that someone has seen something like=
this and can get me unstuck.
Loaded bayes database from 'C:\<redacted>\default_bayes_database.fs'
Loaded message database from 'C:\<redacted>\default_message_database.fs'
Bayes database initialized with 0 spam and 0 good messages
SpamBayes Outlook Addin Version 2.0a1 (Aug 25, 2022) from source
on Windows 10.0.19045 ()
using Python 3.12.0 (tags/v3.12.0:0fb18b0, Oct 2 2023, 13:03:39) [MSC v.19=
35 64 bit (AMD64)]
Log created Wed Dec 13 22:53:24 2023
*** SpamBayes is NOT enabled, so will not filter incoming mail. ***
Creating new SpamBayes toolbar to host our buttons
Error finding the MAPI folders for a folder switch event
ERROR: 'There appears to be a problem with the SpamBayes configuration\r\n\=
r\nPlease select the SpamBayes manager, and run the\r\nConfiguration Wizard=
to reconfigure the filter.'
Traceback (most recent call last):
File "C:\<redacted>\spambayes\Outlook2000\msgstore.py", line 347, in GetF=
older
folder =3D self._OpenEntry(folder_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\<redacted>\spambayes\Outlook2000\msgstore.py", line 274, in _Ope=
nEntry
store =3D self._GetMessageStore(store_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\<redacted>\spambayes\Outlook2000\msgstore.py", line 247, in _Get=
MessageStore
store =3D self.session.OpenMsgStore(
^^^^^^^^^^^^^^^^^^^^^^^^^^
pywintypes.com_error: (-2147221241, 'OLE error 0x80040107', None, None)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\<redacted>\spambayes\Outlook2000\addin.py", line 1178, in OnFold=
erSwitch
mapi_folder =3D self.manager.message_store.GetFolder(outlook_folder)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\<redacted>\spambayes\Outlook2000\msgstore.py", line 355, in GetF=
older
raise MsgStoreExceptionFromCOMException(details)
msgstore.MsgStoreException: MsgStoreException: Exception 0x-7ffbfef9 (MAPI_=
E_INVALID_ENTRYID): OLE error 0x80040107
ERROR: 'There appears to be a problem with the SpamBayes configuration\r\n\=
r\nPlease select the SpamBayes manager, and run the\r\nConfiguration Wizard=
to reconfigure the filter.'
One thing I'm suspicious of (and I hope I'm wrong) is if the problem is the=
win32 related modules. I'm doing this on a 64bit machine, trying to get th=
is to work with the 64bit install of Outlook (Office 365). Could that be my=
problem? Should I be looking for win64 related modules? (Do any exist? I d=
idn't see any on pypi.org? Or is that also a wrong direction?) At this poin=
t, I don't know enough about COM or 32bit vs 64bit to know what to try next=
.
Thanks in advance,
jwc
--_000_CY8PR11MB73374734729BF5EA49694CC4BC8CACY8PR11MB7337namp_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-ligatures:standardcontextual;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"#0563C1" vlink=3D"#954F72" style=3D"word-wrap:=
break-word">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">I’ve made some progress. I’ve cloned smo=
ntanaro’s spambayes repo and used that as a starting point. I think I=
’ve gotten most, of the 2.x to 3.x conversions. I have the Add-in reg=
istered. I have the Add-ins menu showing up. But (and there
has to be a ‘but’) I can’t seem to get the win32com mapi=
to read anything meaningful. I haven’t seen anything helpful in my G=
oogle searches. I’m throwing this out there hoping that someone has s=
een something like this and can get me unstuck.
<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New"">Loaded bayes database from 'C:\<redacted>\default_bay=
es_database.fs'<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New"">Loaded message database from 'C:\<redacted>\default_m=
essage_database.fs'<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New"">Bayes database initialized with 0 spam and 0 good messages<=
o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New"">SpamBayes Outlook Addin Version 2.0a1 (Aug 25, 2022) from s=
ource<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New"">on Windows 10.0.19045 ()<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New"">using Python 3.12.0 (tags/v3.12.0:0fb18b0, Oct 2 2023=
, 13:03:39) [MSC v.1935 64 bit (AMD64)]<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New"">Log created Wed Dec 13 22:53:24 2023<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New"">*** SpamBayes is NOT enabled, so will not filter incoming m=
ail. ***<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New"">Creating new SpamBayes toolbar to host our buttons<o:p></o:=
p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New"">Error finding the MAPI folders for a folder switch event<o:=
p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New"">ERROR: 'There appears to be a problem with the SpamBayes co=
nfiguration\r\n\r\nPlease select the SpamBayes manager, and run the\r\nConf=
iguration Wizard to reconfigure the filter.'<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New"">Traceback (most recent call last):<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New""> File "C:\<redacted>\spambayes\Outlook2000=
\msgstore.py", line 347, in GetFolder<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New""> folder =3D self._OpenEntry(folder_id)<o:=
p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New"">  =
; ^^^^^^^^^^^^^^^^^^^^^^^^^^<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New""> File "C:\<redacted>\spambayes\Outlook2000=
\msgstore.py", line 274, in _OpenEntry<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New""> store =3D self._GetMessageStore(store_id=
)<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New"">  =
; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New""> File "C:\<redacted>\spambayes\Outlook2000=
\msgstore.py", line 247, in _GetMessageStore<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New""> store =3D self.session.OpenMsgStore(<o:p=
></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New"">  =
; ^^^^^^^^^^^^^^^^^^^^^^^^^^<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New"">pywintypes.com_error: (-2147221241, 'OLE error 0x80040107',=
None, None)<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New""><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New"">During handling of the above exception, another exception o=
ccurred:<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New""><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New"">Traceback (most recent call last):<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New""> File "C:\<redacted>\spambayes\Outlook2000=
\addin.py", line 1178, in OnFolderSwitch<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New""> mapi_folder =3D self.manager.message_sto=
re.GetFolder(outlook_folder)<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New"">  =
; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^=
^^^^^^^^^^^^^^^^^^^^^<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New""> File "C:\<redacted>\spambayes\Outlook2000=
\msgstore.py", line 355, in GetFolder<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New""> raise MsgStoreExceptionFromCOMException(=
details)<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New"">msgstore.MsgStoreException: MsgStoreException: Exception 0x=
-7ffbfef9 (MAPI_E_INVALID_ENTRYID): OLE error 0x80040107<o:p></o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New"">ERROR: 'There appears to be a problem with the SpamBayes co=
nfiguration\r\n\r\nPlease select the SpamBayes manager, and run the\r\nConf=
iguration Wizard to reconfigure the filter.'<o:p></o:p></span></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">One thing I’m suspicious of (and I hope I̵=
7;m wrong) is if the problem is the win32 related modules. I’m doing =
this on a 64bit machine, trying to get this to work with the 64bit install =
of Outlook (Office 365). Could that be my problem? Should
I be looking for win64 related modules? (Do any exist? I didn’t see =
any on pypi.org? Or is that also a wrong direction?) At this point, I don&#=
8217;t know enough about COM or 32bit vs 64bit to know what to try next.
<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">Thanks in advance,<o:p></o:p></p>
<p class=3D"MsoNormal">jwc<o:p></o:p></p>
</div>
</body>
</html>
--_000_CY8PR11MB73374734729BF5EA49694CC4BC8CACY8PR11MB7337namp_--
--===============6200029181056999455==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
spambayes-dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/spambayes-dev
--===============6200029181056999455==--