docker-offlineimap/offlineimap
John Goerzen 817c09a460 Apply patch to fix autorefresh with Kerberos
Patch from Eric Dorland

Closes: #470875

From: Wouter Verhelst
Subject: kerberos authentication works only the first time
Date: Fri, 14 Mar 2008 09:28:37 +0100

Package: offlineimap
Version: 5.99.8
Severity: normal

Hi,

I have the "autorefresh" configuration option specified in my
.offlineimaprc, and am now using the kerberos authentication.

However, this kerberos authentication seems to work only the first
time
offlineimap tries to fetch mails. The next time, it fails with this
output:

Thread 'Account sync Test' terminated with exception:
Traceback (most recent call last):
  File "/var/lib/python-support/python2.4/offlineimap/threadutil.py",
  line 153, in run
    Thread.run(self)
  File "/usr/lib/python2.4/threading.py", line 422, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/var/lib/python-support/python2.4/offlineimap/accounts.py",
  line 119, in syncrunner
    self.sync()
  File "/var/lib/python-support/python2.4/offlineimap/accounts.py",
  line 148, in sync
    remoterepos.syncfoldersto(localrepos, [statusrepos])
  File
  "/var/lib/python-support/python2.4/offlineimap/repository/Base.py",
  line 135, in syncfoldersto
    srcfolders = src.getfolders()
  File
  "/var/lib/python-support/python2.4/offlineimap/repository/IMAP.py",
  line 192, in getfolders
    listresult = imapobj.list(directory =
    self.imapserver.reference)[1]
  File "/usr/lib/python2.4/imaplib.py", line 469, in list
    typ, dat = self._simple_command(name, directory, pattern)
  File "/usr/lib/python2.4/imaplib.py", line 1028, in _simple_command
    return self._command_complete(name, self._command(name, *args))
  File "/usr/lib/python2.4/imaplib.py", line 787, in _command
    raise self.error(
error: command LIST illegal in state NONAUTH
2009-04-21 00:03:28 -05:00
..
folder Implementation of IMAP IDLE 2009-02-10 11:27:48 +11:00
repository Allow keepalive to be overridden by user if imapfolders is set 2009-02-10 15:57:03 +11:00
ui Patch for signal handling to start a sync by Jim Pryor 2008-12-01 16:13:16 -06:00
__init__.py Step 2 of SVN to arch tree conversion 2005-04-16 20:33:35 +01:00
accounts.py Fix missing import for pre/postsynchook 2009-01-14 00:05:00 -06:00
CustomConfig.py Update FSF address 2006-08-12 05:15:55 +01:00
imaplib2.py Implementation of IMAP IDLE 2009-02-10 11:27:48 +11:00
imaplibutil.py Implementation of IMAP IDLE 2009-02-10 11:27:48 +11:00
imapserver.py Apply patch to fix autorefresh with Kerberos 2009-04-21 00:03:28 -05:00
imaputil.py Update FSF address 2006-08-12 05:15:55 +01:00
init.py Implementation of IMAP IDLE 2009-02-10 11:27:48 +11:00
localeval.py Update FSF address 2006-08-12 05:15:55 +01:00
mbnames.py Update FSF address 2006-08-12 05:15:55 +01:00
syncmaster.py Implementation of IMAP IDLE 2009-02-10 11:27:48 +11:00
threadutil.py Patch to make exit on Ctrl-C cleaner 2008-12-01 16:10:49 -06:00
version.py Prepping 6.0.3 2008-08-13 00:05:17 -05:00