Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#39694 - [getmail] 4.45.0 upgrade creates unhandled exception

Attached to Project: Arch Linux
Opened by Willy Wonka (sivers) - Monday, 31 March 2014, 00:13 GMT
Last edited by Andreas Radke (AndyRTR) - Tuesday, 08 April 2014, 13:19 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 11
Private No

Details

Description:
Has been working great for years until 4.45.0 update today introduces new crash, seen below.

Additional info:
getmail version 4.45.0
Python version 2.7.6 (default, Feb 26 2014, 12:07:17)
[GCC 4.8.2 20140206 (prerelease)]

Unhandled exception follows:
File "/usr/bin/getmail", line 866, in main
success = go(configs, options.idle)
File "/usr/bin/getmail", line 156, in go
retriever.initialize(options)
File "/usr/lib/python2.7/site-packages/getmailcore/_retrieverbases.py", line 978, in initialize
self._connect()
File "/usr/lib/python2.7/site-packages/getmailcore/_retrieverbases.py", line 295, in _connect
if ssl and self.conf['ca_certs']:
KeyError: 'ca_certs'

$ getmail --getmaildir=/home/mark --rcfile=/home/mark/somedir/getmailrc -da --dump
getmail version 4.45.0
Copyright (C) 1998-2012 Charles Cazabon. Licensed under the GNU GPL version 2.
getmail configuration:
getmail version 4.45.0
Python version 2.7.6 (default, Feb 26 2014, 12:07:17)
[GCC 4.8.2 20140206 (prerelease)]
retriever: SimplePOP3SSLRetriever(certfile="None", delete_dup_msgids="False", getmaildir="/home/mark", keyfile="None", password="*", port="995", server="mail.gandi.net", timeout="180", use_apop="False", username="mark@somedomain.net")
destination: Maildir(filemode="384", path="/home/mark/somedir/Maildir/", user="None")
options:
delete : True
delete_after : 0
delete_bigger_than : 0
delivered_to : True
fingerprint : False
logfile : None
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
read_all : True
received : True
verbose : 2

## getmailrc:
[retriever]
type = SimplePOP3SSLRetriever
port = 995
server = mail.gandi.net
username = mark@somedomain.net
password = somePassWord

[destination]
type = Maildir
path = /home/mark/somedir/Maildir/

[options]
verbose = 2
read_all = false
delete = true


Steps to reproduce:
As seen above.
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Tuesday, 08 April 2014, 13:19 GMT
Reason for closing:  Fixed
Comment by Francesco (fraS) - Monday, 31 March 2014, 13:01 GMT
I have the same problem

getmail version 4.45.0
Python version 2.7.6 (default, Feb 26 2014, 12:07:17)
[GCC 4.8.2 20140206 (prerelease)]

Unhandled exception follows:
File "/usr/bin/getmail", line 866, in main
success = go(configs, options.idle)
File "/usr/bin/getmail", line 156, in go
retriever.initialize(options)
File "/usr/lib/python2.7/site-packages/getmailcore/_retrieverbases.py", line 978, in initialize
self._connect()
File "/usr/lib/python2.7/site-packages/getmailcore/_retrieverbases.py", line 295, in _connect
if ssl and self.conf['ca_certs']:
KeyError: 'ca_certs'
Comment by Thomas (thomasbk) - Monday, 31 March 2014, 18:01 GMT
Switching to a SimpleIMAPSSLRetriever worked as a temporary fix for me. Adding a ca_certs parameter to the configuration file for a POP3 retriever did not help.

They added SSL verification as a feature. I noticed in the email announcing the update that they only mentioned the IMAP retriever, so they might have forgotten to update the POP3 receiver accordingly.
Comment by Mike Sampson (mikesd) - Tuesday, 01 April 2014, 00:33 GMT
Confirmed. For the moment I commented out lines 295-297 in /usr/lib/python2.7/site-packages/getmailcore/_retrieverbases.py so I can still use SSL without the certificate check, which isn't ideal, but I need the encryption.
Comment by Art (artbristol) - Tuesday, 01 April 2014, 05:42 GMT
I also had this problem. As well as Mike Sampson's fix, you can also just revert to the previous version with pacman -U /var/cache/pacman/pkg/getmail-4.44.0-1-any.pkg.tar.xz

Great to hear getmail is getting SSL certificate checking.
Comment by Joe Konno (thac0) - Tuesday, 01 April 2014, 19:57 GMT
In my case it's a SimplePOP3SSLRetriever, but same error. Rolling back to 4.44.0 has me back in business.
Comment by Thomas (thomasbk) - Saturday, 05 April 2014, 12:57 GMT Comment by Andreas Radke (AndyRTR) - Monday, 07 April 2014, 17:50 GMT
please check 4.46.0
Comment by Sedeer el-Showk (sedeer) - Monday, 07 April 2014, 22:14 GMT
I had the same issue with 4.45.0, but 4.46.0 works for me. Thanks!
Comment by Mike Sampson (mikesd) - Tuesday, 08 April 2014, 02:22 GMT
Confirmed. 4.46.0 works for me as well. \o/

Loading...