getmail 5.7 and OpenBSD 6.5

[email protected]
Newsgroups gmane.mail.getmail.user
Message-ID <[email protected]>
I'm having some difficulty getting getmail to work under OpenBSD using nmh on a Thinkpad x220:

getmail version 5.7
Copyright (C) 1998-2012 Charles Cazabon.  Licensed under the GNU GPL version 2.
SimpleIMAPSSLRetriever:[email protected]:993:

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

  getmail version 5.7
  Python version 2.7.16 (default, Apr 13 2019, 18:59:49)
[GCC 4.2.1 Compatible OpenBSD Clang 7.0.1 (tags/RELEASE_701/final)]

Unhandled exception follows:
    File "/usr/local/bin/getmail", line 898, in main
    success = go(configs, options.idle)
    File "/usr/local/bin/getmail", line 157, in go
    retriever.initialize(options)
    File "/usr/local/lib/python2.7/site-packages/getmailcore/_retrieverbases.py", line 1709, in initialize
    if o.startswith('[UNAVAILABLE]'):
  AttributeError: 'error' object has no attribute 'startswith'

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

getmail --verbose --dump:

getmail version 5.7
Copyright (C) 1998-2012 Charles Cazabon.  Licensed under the GNU GPL version 2.
getmail configuration:
  getmail version 5.7
  Python version 2.7.16 (default, Apr 13 2019, 18:59:49) 
[GCC 4.2.1 Compatible OpenBSD Clang 7.0.1 (tags/RELEASE_701/final)]
  retriever:  SimpleIMAPSSLRetriever(ca_certs="None", certfile="None", getmaildir="/home/aalinovi/.getmail/", keyfile="None", mailboxes="('ALL',)", move_on_delete="None", password="*", password_command="()", port="993", record_mailbox="True", server="mail.riseup.net", ssl_cert_hostname="None", ssl_ciphers="None", ssl_fingerprints="()", ssl_version="None", timeout="180", use_cram_md5="False", use_kerberos="False", use_peek="True", use_xoauth2="False", username="aalinovi")
  destination:  MDA_external(allow_root_commands="False", arguments="('+inbox',)", command="rcvstore", group="None", ignore_stderr="False", path="/usr/local/libexec/nmh/rcvstore", unixfrom="False", user="None")
  options:
    delete : False
    delete_after : 0
    delete_bigger_than : 0
    delivered_to : True
    fingerprint : False
    logfile : logfile(filename="~/.getmail/log")
    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 : True
    read_all : False
    received : True
    verbose : 1

~/.getmail/getmailrc:

[options]
verbose = 2
read_all = false
delete = false
message_log = ~/.getmail/log
message_log_verbose = true

[retriever]
type=SimpleIMAPSSLRetriever
server = mail.riseup.net
port = 993
username = aalinovi
password = hidden
mailboxes = ALL

[destination]
type = MDA_external
path = /usr/local/libexec/nmh/rcvstore
arguments = ("+inbox", )


From what I see Im guessing the problem has to do with python. However, not being a programmer, I have
no idea how to fix this.
Any help would be appreciated.

Thank you
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.