[spambayes-bugs] [ spambayes-Bugs-903905 ] IMAP Configuration Error

SourceForge.net noreply at sourceforge.net
Thu Sep 30 03:44:40 CEST 2004


Bugs item #903905, was opened at 2004-02-25 16:38
Message generated for change (Settings changed) made by anadelonbrin
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=903905&group_id=61702

Category: imapfilter
Group: Source code 1.0a9 (0.9)
>Status: Open
>Resolution: None
Priority: 5
Submitted By: Ron Gerrans (rgerrans)
Assigned to: Tony Meyer (anadelonbrin)
Summary: IMAP Configuration Error

Initial Comment:
I checked the mail list and saw one other user with
this same problem, but no resolution and you asked them
to submit a bug report which I couldn't locate.

After setting up the configuration page with the proper
server and login information if I click on the train
folders link I get the following error page:


500 Server error

Traceback (most recent call last):

  File
"/usr/lib/python2.3/site-packages/spambayes/Dibbler.py",
line 461, in found_terminator
    getattr(plugin, name)(**params)

  File
"/usr/lib/python2.3/site-packages/spambayes/ImapUI.py",
line 222, in onTrainingfolders
    self._login_to_imap()

  File
"/usr/lib/python2.3/site-packages/spambayes/ImapUI.py",
line 217, in _login_to_imap
    self.imap.login(username, self.imap_pwd)

  File "/usr/bin/sb_imapfilter.py", line 212, in login
    BaseIMAP.login(self, username, pwd)  # superclass login

  File "/usr/lib/python2.3/imaplib.py", line 471, in login
    typ, dat = self._simple_command('LOGIN', user,
self._quote(password))

  File "/usr/lib/python2.3/imaplib.py", line 992, in _quote
    arg = arg.replace('\', '\\')

AttributeError: 'NoneType' object has no attribute
'replace'

Configuration:
*  Suse 9.0
*  Python 2.3
*  SpamBayes 1.0a9

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

Comment By: Ron Gerrans (rgerrans)
Date: 2004-04-15 16:01

Message:
Logged In: YES 
user_id=717883

Had a few minutes to finally take another run at it. 
Installed v1.0b1 and have basically the same results have
tried stopping/starting it again, tried removing the
password and using the -P option, but all to no avail. 
Latest error traceback below, any other thoughts would be
appreciated.

TIA,

-Ron

   File
"/usr/lib/python2.3/site-packages/spambayes/Dibbler.py",
line 461, in found_terminator
    getattr(plugin, name)(**params)

  File
"/usr/lib/python2.3/site-packages/spambayes/ImapUI.py", line
222, in onTrainingfolders
    self._login_to_imap()

  File
"/usr/lib/python2.3/site-packages/spambayes/ImapUI.py", line
217, in _login_to_imap
    self.imap.login(username, self.imap_pwd)

  File "/usr/bin/sb_imapfilter.py", line 223, in login
    BaseIMAP.login(self, username, pwd)  # superclass login

  File "/usr/lib/python2.3/imaplib.py", line 471, in login
    typ, dat = self._simple_command('LOGIN', user,
self._quote(password))

  File "/usr/lib/python2.3/imaplib.py", line 1000, in
_simple_command
    return self._command_complete(name, self._command(name,
*args))

  File "/usr/lib/python2.3/imaplib.py", line 832, in
_command_complete
    raise self.abort('command: %s => %s' % (name, val))

abort: command: LOGIN => socket error: EOF


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

Comment By: Tony Meyer (anadelonbrin)
Date: 2004-03-16 12:41

Message:
Logged In: YES 
user_id=552329

I believe that simply stopping and starting again, with or
without -v (which shouldn't effect operation in any way)
would fix this.  The problems appears to be that the filter
didn't try to log in correctly after the configuration
options were setup (the password was None).  (This assumes
that the password was entered, if not, then you have to stop
it, and run with -P from the command line).

The first problem has been fixed in CVS, so should be fixed
in the next release.

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

Comment By: James Bland (birdra)
Date: 2004-03-16 08:23

Message:
Logged In: YES 
user_id=717251

I was able to access the train folders page after I issued
"python -v" from the command line.

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

Comment By: James Bland (birdra)
Date: 2004-03-16 06:07

Message:
Logged In: YES 
user_id=717251

I am also getting the same problem with a Suse configuration.

Suse Pro 9.0
Python 2.3
Spambayes 1.0a9


500 Server error

Traceback (most recent call last):

  File
"/usr/lib/python2.3/site-packages/spambayes/Dibbler.py",
line 461, in found_terminator
    getattr(plugin, name)(**params)

  File
"/usr/lib/python2.3/site-packages/spambayes/ImapUI.py", line
172, in onFilterfolders
    self._login_to_imap()

  File
"/usr/lib/python2.3/site-packages/spambayes/ImapUI.py", line
217, in _login_to_imap
    self.imap.login(username, self.imap_pwd)

  File "/usr/bin/sb_imapfilter.py", line 212, in login
    BaseIMAP.login(self, username, pwd)  # superclass login

  File "/usr/lib/python2.3/imaplib.py", line 471, in login
    typ, dat = self._simple_command('LOGIN', user,
self._quote(password))

  File "/usr/lib/python2.3/imaplib.py", line 992, in _quote
    arg = arg.replace('\', '\\')

AttributeError: 'NoneType' object has no attribute 'replace'


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

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


More information about the Spambayes-bugs mailing list