[Bug 718350] Re: python imaplib misparses certain server messages
Matthias Klose
doko at ubuntu.com
Thu May 26 08:24:45 UTC 2011
is this different in python2.7?
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python2.6 in Ubuntu.
https://bugs.launchpad.net/bugs/718350
Title:
python imaplib misparses certain server messages
Status in “python2.6” package in Ubuntu:
New
Bug description:
Binary package hint: python2.6
After upgrading my mail server to Debian squeeze, offlineimap, which
uses python's imaplib, started to fail with this message:
WARNING: Error occured attempting to sync account DebianIn: command
LIST illegal in state NONAUTH, only allowed in states AUTH, SELECTED
This is because the server wants gamin to be installed, so on connect
(I'm using an ssh tunnel to connect), the following output is sent by
the server:
* OK: [ALERT] Filesystem notification initialization error -- contact your mail administrator (check for configuration errors with the FAM/Gamin library)
* PREAUTH Ready.
and imaplib gets confused, ignoring the PREAUTH message entirely.
AFAICS this is a bug in imaplib's parser.
I've worked around this issue on the server side by installing gamin.
ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: python2.6 2.6.6-5ubuntu1
ProcVersionSignature: Ubuntu 2.6.35-25.44-generic 2.6.35.10
Uname: Linux 2.6.35-25-generic x86_64
Architecture: amd64
Date: Sun Feb 13 11:08:46 2011
InstallationMedia: Ubuntu 10.04.1 LTS "Lucid Lynx" - Release amd64 (20100816.1)
ProcEnviron:
PATH=(custom, user)
LANG=en_US.utf8
SHELL=/bin/bash
SourcePackage: python2.6
More information about the foundations-bugs
mailing list