Package: getmail6
Version: 6.19.12-1
Severity: normal

As of a few days ago, maybe with the change to from python 3.14.6 to
3.14.7, getmail6 started throwing the following error after fetching the
emails via imapssl:

  getmail version 6.19.12
  Python version 3.14.7 (main, Aug 11 2026, 08:48:35) [GCC 16.2.0]

Unhandled exception follows:
    File "/usr/bin/getmail", line 1091, in main
    success = go(configs, options.idle, options.only_account)
    File "/usr/bin/getmail", line 197, in go
    retriever.select_mailbox(mailbox)
    ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
    File "/usr/lib/python3/dist-packages/getmailcore/_retrieverbases.py", line 
1621, in select_mailbox
    codecs.encode(
    ~~~~~~~~~~~~~^
        self.conn._quote(mailbox),
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
        'imap4-utf-7'),
        ^^^^^^^^^^^^^^
    File "/usr/lib/python3/dist-packages/getmailcore/imap_utf7.py", line 96, in 
encoder
    r.extend(b'&' + modified_base64(''.join(_in)) + b'-')
                                    ~~~~~~~^^^^^
  TypeError: sequence item 0: expected str instance, int found
  encoding with 'imap4-utf-7' codec failed

Here are the configuration options (from --dump):

getmail version 6.19.12
Copyright (C) 1998-2026 Charles Cazabon and others. Licensed under GPL-2.0.
getmail configuration:
  getmail version 6.19.12
  Python version 3.14.7 (main, Aug 11 2026, 08:48:35) [GCC 16.2.0]
  retriever:  SimpleIMAPSSLRetriever(ca_certs="None", 
certfile="CERTFILE.crt.pem", getmaildir="DIR/.getmail", 
imap_id_extension="False", imap_on_delete="None", imap_search="None", 
keyfile="KEYFILE.key.pem", mailboxes="('Inbox', 'Sent Items', 'Junk Email')", 
move_on_delete="fetched_by_laptop", password="*", 
password_command="('getmail-gmail-xoauth-tokens', 'DIR/provider.json')", 
port="993", record_mailbox="True", server="outlook.office365.com", 
ssl_cert_hostname="None", ssl_ciphers="None", ssl_fingerprints="()", 
ssl_version="None", timeout="180", uid_cache="None", use_cram_md5="False", 
use_kerberos="False", use_peek="True", use_xoauth2="True", 
username="EMAIL@DOMAIN")
  destination:  MDA_external(allow_root_commands="False", arguments="()", 
command="procmail", group="None", ignore_stderr="False", 
path="/usr/bin/procmail", pipe_stdout="True", unixfrom="True", user="None")
  options:
    delete : True
    delete_after : 0
    delete_bigger_than : 0
    delivered_to : False
    fingerprint : False
    logfile : logfile(filename="~/.getmail/log")
    mark_read : False
    max_bytes_per_session : 0
    max_message_size : 0
    max_messages_per_session : 0
    message_log : ~/.getmail/log
    message_log_syslog : False
    message_log_verbose : False
    netrc_file : None
    only_oldmail_file : False
    read_all : True
    received : True
    skip_imap_fetch_size : False
    to_oldmail_on_each_mail : False
    use_netrc : False
    verbose : 2




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

Kernel: Linux 7.1.4+deb14-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (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 getmail6 depends on:
ii  python3  3.14.6-1

getmail6 recommends no packages.

getmail6 suggests no packages.

-- no debconf information

-- 
-Sanjoy

"An error can never become true however many times you repeat it.
 The truth can never be wrong, even if no one ever hears about it."
 --Mahatma Gandhi

"Not to know is bad.  Not to wish to know is worse."  -African proverb

Reply via email to