[spambayes-bugs] [ spambayes-Bugs-886133 ] ExpatError in IMAP
folder list
SourceForge.net
noreply at sourceforge.net
Thu Jan 29 06:46:15 EST 2004
Bugs item #886133, was opened at 2004-01-28 11:08
Message generated for change (Settings changed) made by ropuls
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=886133&group_id=61702
Category: imapfilter
Group: Source code 1.0a7
>Status: Open
Resolution: Fixed
Priority: 5
Submitted By: Roman Puls (ropuls)
Assigned to: Tony Meyer (anadelonbrin)
Summary: ExpatError in IMAP folder list
Initial Comment:
first, thanks for this nice piece of software ;)
Unfortunaly, running "sb_imapfilter.py -b" 1.0a7 on win2k
(german) produces the following output on the browser
if I try to train _or_ to configure the IMAP folders:
--- cut ---
500 Server error
Traceback (most recent call last):
File "C:\Python23\Lib\site-
packages\spambayes\Dibbler.py", line 453, in
found_terminator
getattr(plugin, name)(**params)
File "C:\Python23\Lib\site-
packages\spambayes\ImapUI.py", line 175, in
onFilterfolders
folderBox = self._buildFolderBox("imap", opt,
available_folders)
File "C:\Python23\Lib\site-
packages\spambayes\ImapUI.py", line 271, in
_buildFolderBox
folderRow.folderName = folder
File "C:\Python23\Lib\site-
packages\spambayes\PyMeldLite.py", line 738, in
__setattr__
self._replaceNodeContent(node, value)
File "C:\Python23\Lib\site-
packages\spambayes\PyMeldLite.py", line 654, in
_replaceNodeContent
node.children = self._nodeListFromSource(value)
File "C:\Python23\Lib\site-
packages\spambayes\PyMeldLite.py", line 640, in
_nodeListFromSource
tree = _generateTree("<x>"+value+"</x>")
File "C:\Python23\Lib\site-
packages\spambayes\PyMeldLite.py", line 574, in
_generateTree
g.feed(source)
File "C:\Python23\Lib\site-
packages\spambayes\PyMeldLite.py", line 499, in feed
self._parser.Parse(data)
ExpatError: not well-formed (invalid token): line 1,
column 15
--- cut ---
Config looks like that:
--- cut ---
[Storage]
ham_cache:C:\Dokumente und
Einstellungen\Administrator.PROUTE\Anwendungsdaten\S
pamBayes\Proxy\ham_cache
messageinfo_storage_file:C:\Dokumente und
Einstellungen\Administrator.PROUTE\Anwendungsdaten\S
pamBayes\Proxy\message_info_database.db
persistent_storage_file:C:\Dokumente und
Einstellungen\Administrator.PROUTE\Anwendungsdaten\S
pamBayes\Proxy\statistics_database.db
spam_cache:C:\Dokumente und
Einstellungen\Administrator.PROUTE\Anwendungsdaten\S
pamBayes\Proxy\spam_cache
unknown_cache:C:\Dokumente und
Einstellungen\Administrator.PROUTE\Anwendungsdaten\S
pamBayes\Proxy\unknown_cache
[globals]
verbose:True
[imap]
server:10.0.0.1
password:xxxxxxx
username:puls at xxx.com
--- cut ---
I reran the script "sb_imapfilter.py -b -i 5 -v 2>error.log"
--- cut ---
Loading state from C:\Dokumente und
Einstellungen\Administrator.PROUTE\Anwendungsdaten\S
pamBayes\Proxy\statistics_database.db database
C:\Dokumente und
Einstellungen\Administrator.PROUTE\Anwendungsdaten\S
pamBayes\Proxy\statistics_database.db is an existing
database, with 0 spam and 0 ham
58:20.82 > DMME1 LOGIN "puls at xxx.yyy" "xxxxxx"
58:20.88 < DMME1 OK LOGIN completed
58:20.88 matched r'(?P<tag>DMME\d+) (?
P<type>[A-Z]+) (?P<data>.*)' => ('DMME1', 'OK', 'LOGIN
completed')
58:20.88 > DMME2 LIST "" *
58:21.31 < * LIST () "/" "INBOX"
58:21.31 matched r'\* (?P<type>[A-Z-]+)( (?
P<data>.*))?' => ('LIST', ' () "/" "INBOX"', '() "/" "INBOX"')
58:21.31 untagged_responses[LIST] 0 +=
["() "/" "INBOX""]
58:21.32 < * LIST () "/" "INBOX/junk"
58:21.32 matched r'\* (?P<type>[A-Z-]+)( (?
P<data>.*))?' => ('LIST', '
() "/" "INBOX/junk"', '() "/" "INBOX/junk"')
58:21.32 untagged_responses[LIST] 1 +=
["() "/" "INBOX/junk""]
58:21.32 < * LIST () "/" "business"
58:21.32 matched r'\* (?P<type>[A-Z-]+)( (?
P<data>.*))?' => ('LIST', '
() "/" "business"', '() "/" "business"')
[... lines deleted ...]
58:21.38 < DMME2 OK LIST completed
58:21.38 matched r'(?P<tag>DMME\d+) (?
P<type>[A-Z]+) (?P<data>.*)' => ('DMME2', 'OK', 'LIST
completed')
58:21.38 untagged_responses[LIST] =>
['() "/" "INBOX"', '() "/" "INBOX/junk"', '() "/" "business"', ]
[... line cutted ...]
58:27.33 > DMME3 LOGOUT
58:27.33 < * BYE logging out
58:27.33 matched r'\* (?P<type>[A-Z-]+)( (?
P<data>.*))?' => ('BYE', ' logging out', 'logging out')
58:27.33 untagged_responses[BYE] 0 += ["logging out"]
58:27.33 BYE response: logging out
58:27.33 < DMME3 OK LOGOUT completed
58:27.33 matched r'(?P<tag>DMME\d+) (?
P<type>[A-Z]+) (?P<data>.*)' =>
('DMME3', 'OK', 'LOGOUT completed')
--- cut ---
My assumption (without digging deeper) so far is that
the parser might struggle with the fact that I have an
imap server running that has the feature "folders in
folders" enabled. This results in folders like "INBOX/junk",
but this is just a first guess.
If you find out anything or need further information
please let me know!
Best regards
Roman
----------------------------------------------------------------------
Comment By: Roman Puls (ropuls)
Date: 2004-01-29 11:44
Message:
Logged In: YES
user_id=962136
right, some of the foldernames contained german umlauts like
ö,ä,ü. Due to transcoding, a foldername like "Entwürfe"
(drafts) became "Entw&APw-rfe" and therefore contained one
of the "illegal" chars.
Thanks for your answer!
Regards
Roman
----------------------------------------------------------------------
Comment By: Tony Meyer (anadelonbrin)
Date: 2004-01-28 23:39
Message:
Logged In: YES
user_id=552329
It's most likely that this is caused by a folder name having &,
< or > in it. If that's the case, then this has been fixed in
cvs and will therefore be fixed in the next release (due very
soon). If that's not the case, please reopen.
----------------------------------------------------------------------
Comment By: Roman Puls (ropuls)
Date: 2004-01-28 11:14
Message:
Logged In: YES
user_id=962136
BTW: C:\Python23\Scripts>..\python -V
Python 2.3.3
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=886133&group_id=61702
More information about the Spambayes-bugs
mailing list