<p>Removing XOAUTH2 in the configuration option. Fix it in the code I get </p>

<pre><code>ERROR: While attempting to sync account 'nis'
  __init__() got an unexpected keyword argument 'tls_level'

Traceback:
  File "/home/nicolas/dev/official_packages/gitrepos/offlineimap/offlineimap/accounts.py", line 263, in syncrunner
    self.__sync()
  File "/home/nicolas/dev/official_packages/gitrepos/offlineimap/offlineimap/accounts.py", line 326, in __sync
    remoterepos.getfolders()
  File "/home/nicolas/dev/official_packages/gitrepos/offlineimap/offlineimap/repository/IMAP.py", line 384, in getfolders
    imapobj = self.imapserver.acquireconnection()
  File "/home/nicolas/dev/official_packages/gitrepos/offlineimap/offlineimap/imapserver.py", line 490, in acquireconnection
    tls_level=self.tlslevel,
  File "/home/nicolas/dev/official_packages/gitrepos/offlineimap/offlineimap/imaplibutil.py", line 215, in __init__
    IMAP4.__init__(self, *args, **kwargs)
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/OfflineIMAP/offlineimap/pull/222#issuecomment-147295398">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AKFSELsTbkGwWQF7vH8hYY0Bvmw4koodks5o6z6NgaJpZM4FmicW.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/OfflineIMAP/offlineimap/pull/222#issuecomment-147295398"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>