Package: offlineimap3
Version: 0.0~git20210105.00d395b+dfsg-3
Severity: normal
Tags: upstream

Dear Sudip,

offlineimap3 is not able to handle the folderincludes config, that
worked with offlineimap. I got this when trying to sync (tested with two
different accounts):

  'str' object has no attribute 'decode'

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 695, in 
getfolders
    imapobj.select(imaputil.utf8_IMAP(foldername),
  File "/usr/share/offlineimap3/offlineimap/imaputil.py", line 360, in utf8_IMAP
    return foldername.decode('utf-8').encode('imap4-utf-7')

Attached a sample config. Tell me if you need a full log.

Cheers,

 -- Santiago


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

Kernel: Linux 5.10.0-3-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_WARN
Locale: LANG=es_CO.UTF-8, LC_CTYPE=es_CO.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/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
[general]
accounts = Example
ui = Blinkenlights
metadata = ~/.var/offlineimap
ignore-readonly = no
maxsyncaccounts = 3

[mbnames]
enabled = yes
filename = ~/.var/offlineimap/mailboxes
header = "mailboxes "
peritem = "+%(accountname)s/%(foldername)s"
#sep = '\n'
sep = ' '
footer = '\n'

####################################################################
[Account Example]
localrepository = Example-Local
remoterepository = Example-Remote
autorefresh = 15
quick = 16

[Repository Example-Local]
type = Maildir
localfolders = ~/Mail/Example/

[Repository Example-Remote]
type = IMAP
ssl=yes
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
remotehost = imap.example.net
remoteport = 993
remoteuser = myuser
folderincludes = ['debian']
####################################################################

Attachment: signature.asc
Description: PGP signature

Reply via email to