raise self.error(self.welcome) error: None

Sebastian Spaeth Sebastian at SSpaeth.de
Tue Jun 14 08:13:03 BST 2011


On Mon, 13 Jun 2011 22:28:37 -0300, Marcelo Laia <marcelolaia at gmail.com> wrote:
> Hi,
> 
> I have 3 accounts and one have problem and I dont no what this error
> (error: None) means.

> Account sync UFVJM:
>  ***** Processing account UFVJM
> 
> Account sync UFVJM:
>  Copying folder structure from IMAP to Maildir
>  Establishing connection to mail.ufvjm.edu.br:995.
>  WARNING: Error occured attempting to sync account UFVJM: Traceback
> (most recent call last):
>   File "/usr/lib/pymodules/python2.6/offlineimap/accounts.py", line
> 191, in syncrunner
>     self.sync(siglistener)
>   File "/usr/lib/pymodules/python2.6/offlineimap/accounts.py", line 246, in sync
>     remoterepos.syncfoldersto(localrepos, [statusrepos])
>   File "/usr/lib/pymodules/python2.6/offlineimap/repository/Base.py",
> line 121, in syncfoldersto
>     srcfolders = src.getfolders()
>   File "/usr/lib/pymodules/python2.6/offlineimap/repository/IMAP.py",
> line 242, in getfolders
>     imapobj = self.imapserver.acquireconnection()
>   File "/usr/lib/pymodules/python2.6/offlineimap/imapserver.py", line
> 207, in acquireconnection
>     cacertfile = self.sslcacertfile)
>   File "/usr/lib/pymodules/python2.6/offlineimap/imaplibutil.py", line
> 141, in __init__
>     IMAP4_SSL.__init__(self, *args, **kwargs)
>   File "/usr/lib/pymodules/python2.6/offlineimap/imaplib2.py", line
> 1871, in __init__
>     IMAP4.__init__(self, host, port, debug, debug_file, identifier, timeout)
>   File "/usr/lib/pymodules/python2.6/offlineimap/imaplib2.py", line
> 352, in __init__
>     raise self.error(self.welcome)
> error: None
> 
>  ***** Finished processing account UFVJM
> 
> What is wrong?

Hi Marcelo,

this is an error in imaplib2, which seems to receive an invalid response
From an IMAP server on connecting. Piers, another case for you :-).

In what cases could self._request_push return None?

Marcello, is this reproducible? It would be great if we could get an
IMAP debug log so we can see what exactly we ask the server and what it
replies. You can create one with -d imap -l debug.log. Make sure to
delete all passwords in the debug log. You can send it to me privately
if you don't want to make it public. THanks.

Sebastian

The "failing" imaplib2 code
try:
    self.welcome = self._request_push(tag='continuation').get_response('IMAP4 protocol error: %s')[1]
    if self._get_untagged_response('PREAUTH'):
       self.state = AUTH
       if __debug__: self._log(1, 'state => AUTH')
    elif self._get_untagged_response('OK'):
       if __debug__: self._log(1, 'state => NONAUTH')
    else:
       raise self.error(self.welcome)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20110614/0644c796/attachment-0001.sig>


More information about the OfflineIMAP-project mailing list