Package: offlineimap3
Version: 0.0~git20210105.00d395b+dfsg-2
Severity: important
X-Debbugs-Cc: Vagrant Cascadian <[email protected]>

Thanks for the work porting and maintaining offlineimap for python3!


When I use the remotepassfile feature, where the specified
remotepassfile is a single-line plain text file, it fails with a
traceback.

If I use the default ui interface and comment out the remotepassfile
option for that account, it works fine.


  $ offlineimap -u quiet -q -a ACCOUNT
  ERROR: While attempting to sync account 'ACCOUNT'
    sequence item 2: expected str instance, bytes found
  ERROR: Exceptions occurred during the run!
  ERROR: While attempting to sync account 'ACCOUNT'
    sequence item 2: expected str instance, bytes found
  
  Traceback:
    File "/usr/share/offlineimap3/offlineimap/accounts.py", line 298, in
    syncrunner
      self.__sync()
    File "/usr/share/offlineimap3/offlineimap/accounts.py", line 374, in
    __sync
      remoterepos.getfolders()
    File "/usr/share/offlineimap3/offlineimap/repository/IMAP.py", line
    648, in getfolders
      imapobj = self.imapserver.acquireconnection()
    File "/usr/share/offlineimap3/offlineimap/imapserver.py", line 592, in
    acquireconnection
      self.__authn_helper(imapobj)
    File "/usr/share/offlineimap3/offlineimap/imapserver.py", line 449, in
    __authn_helper
      if func(imapobj):
    File "/usr/share/offlineimap3/offlineimap/imapserver.py", line 375, in
    __authn_plain
      imapobj.authenticate('PLAIN', self.__plainhandler)
    File "/usr/lib/python3/dist-packages/imaplib2.py", line 691, in
    authenticate
      typ, dat = self._simple_command('AUTHENTICATE', mechanism.upper())
    File "/usr/lib/python3/dist-packages/imaplib2.py", line 1684, in
    _simple_command
      return self._command_complete(self._command(name, *args), kw)
    File "/usr/lib/python3/dist-packages/imaplib2.py", line 1404, in
    _command
      literal = literator(data, rqb)
    File "/usr/lib/python3/dist-packages/imaplib2.py", line 2247, in
    process
      ret = self.mech(self.decode(data))
    File "/usr/share/offlineimap3/offlineimap/imapserver.py", line 217, in
    __plainhandler
      retval = NULL.join((authz, authc, passwd))


live well,
  vagrant

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (12, 'unstable'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: armhf, arm64

Kernel: Linux 5.10.0-2-amd64 (SMP w/4 CPU threads)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages offlineimap3 depends on:
ii  python3           3.9.1-1
ii  python3-distro    1.5.0-1
ii  python3-imaplib2  2.57-5.2

offlineimap3 recommends no packages.

offlineimap3 suggests no packages.

-- no debconf information

Attachment: signature.asc
Description: PGP signature

Reply via email to