Public bug reported:

getmail6 exits with following error:
```
getmail version 6.19.10
Copyright (C) 1998-2025 Charles Cazabon and others. Licensed under GPL-2.0.
SimpleIMAPSSLRetriever:[email protected]@imap.gmail.com:993: read_all 
and not delete -- all messages will be retrieved each time getmail is run
SimpleIMAPSSLRetriever:[email protected]@imap.gmail.com:993:

Exception: please read docs/BUGS and include the following information
in any bug report:

  getmail version 6.19.10
  Python version 3.14.3 (main, Feb  4 2026, 15:33:49) [GCC 15.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 187, in go
    retriever.initialize(options)
    ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
    File "/usr/lib/python3/dist-packages/getmailcore/_retrieverbases.py", line 
1901, in initialize
    self._connect()
    ~~~~~~~~~~~~~^^
    File "/usr/lib/python3/dist-packages/getmailcore/_retrieverbases.py", line 
694, in _connect
    self.conn = IMAP4_SSL_EXTENDED(
                ~~~~~~~~~~~~~~~~~~^
        self.conf['server'], self.conf['port'], keyfile, certfile,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        ssl_version, ca_certs, ssl_ciphers
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
    File "/usr/lib/python3/dist-packages/getmailcore/_retrieverbases.py", line 
633, in __init__
    imaplib.IMAP4_SSL.__init__(self, host, port)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3.14/imaplib.py", line 1641, in __init__
    IMAP4.__init__(self, host, port, timeout)
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3.14/imaplib.py", line 208, in __init__
    self.open(host, port, timeout)
    ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3/dist-packages/getmailcore/_retrieverbases.py", line 
658, in open
    self.file = self.sock.makefile('rb')
    ^^^^^^^^^
  AttributeError: property 'file' of 'IMAP4_SSL_EXTENDED' object has no setter

Please also include configuration information from running getmail
with your normal options plus "--dump".
```

`getmail --dump`:
```
getmail version 6.19.10
Copyright (C) 1998-2025 Charles Cazabon and others. Licensed under GPL-2.0.
getmail configuration:
  getmail version 6.19.10
  Python version 3.14.3 (main, Feb  4 2026, 15:33:49) [GCC 15.2.0]
  retriever:  
SimpleIMAPSSLRetriever(ca_certs="/etc/ssl/certs/ca-certificates.crt", 
certfile="None", getmaildir="/root/.config/getmail", imap_id_extension="False", 
imap_on_delete="None", imap_search="None", keyfile="None", 
mailboxes="('ALL',)", move_on_delete="None", password="*", 
password_command="()", port="993", record_mailbox="True", 
server="imap.gmail.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="False", username="[email protected]")
  destination:  Maildir(filemode="384", path="/tmp/Maildir/", user="None")
  options:
    delete : False
    delete_after : 0
    delete_bigger_than : 0
    delivered_to : True
    fingerprint : False
    logfile : None
    mark_read : False
    max_bytes_per_session : 0
    max_message_size : 0
    max_messages_per_session : 0
    message_log : None
    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 : 1
```

ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: getmail6 6.19.10-1
ProcVersionSignature: Ubuntu 6.19.0-9.9-generic 6.19.5
Uname: Linux 6.19.0-9-generic x86_64
ApportVersion: 2.33.1-0ubuntu3
Architecture: amd64
CasperMD5CheckResult: unknown
CloudBuildName: ubuntu-oci:minimized
CloudSerial: 20260108
Date: Fri Mar 13 10:41:33 2026
Dependencies:
 
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, no user)
 TERM=xterm
SourcePackage: getmail6
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: getmail6 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug cloud-image resolute

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2144299

Title:
  Unhandled exception with python3.14 and SimpleIMAPSSLRetriever

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/getmail6/+bug/2144299/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to