Hi, Thanks for filing bug report. https://bugs.debian.org/766670 I think your report on 4.2.0-1 is typo.
These only affect stable 4.32.0-2 and oldstable 4.20.0-1. I think that the use of backported current testing package is the reasonable option. The updates listed in the upstream changelog (see below) are releted to security updatyes and their regression fixes? Quite frankly, I am not competent enough to extract a correct set of patches out of these changes without breaking the program? It is too risky since even upstream had few regressions. The changelog entry in 4.46.0 implied Python 2.6 or newer. The available Python versions are: oldstable 2.6.6-3+squeeze7 OK stable 2.7.3-4+deb7u1 OK === upstream CHANGELOG === Version 4.46.0 6 April 2014 -fix --idle checking Python version incorrectly, resulting in incorrect warning about running with Python < 2.5. Thanks: "Voytek", Krzysztof Warzecha. -add missing support for SSL certificate checking in POP3 which broke POP retrieval in v4.45.0. Requires Python 2.6 or newer. Thanks: "mancha". Version 4.45.0 30 March 2014 -perform hostname-vs-certificate matching of SSL certificate if validating the certifcate. Thanks: "mancha". -fix missing plaintext versions of documentation. Version 4.44.0 22 March 2014 -add extended SSL options for IMAP retrievers, allowing certificate verification and other features. Thanks: Steven Murdoch. -fix missing plaintext versions of documentation. Thanks: Osamu Aoki. -fix "Header instance has no attribute 'strip'" error which cropped up in some configurations. Thanks: Krzysztof Warzecha. Version 4.43.0 25 August 2013 -add IMAP IDLE support. Thanks: Jon Gjengset. Version 4.42.0 3 August 2013 -fix problem with non-ascii characters in newly-added message header fields with output from Filter_classifier. Thanks: "Gour". Version 4.41.0 26 May 2013 -messages retrieved with POP could have a blank trailing line removed when delivered; fixed. Thanks: Christoph Mitterer, Krzysztof Warzecha. -fix an ImportError when IMAP retriever used with getmail under Python 2.4. Version 4.40.3 10 May 2013 -increase system recursion limit when run with Python 2.3, to prevent recursion errors in parsing some pathologically complex MIME emails. Thanks: Kenneth Pronovici. Version 4.40.2 8 May 2013 -fix a backwards incompatibility with Python 2.3 and 2.4 introduced in getmail 4.38.0. Thanks: Massimo Zambelli, Krzysztof Warzecha. Version 4.40.1 22 April 2013 -again change protocol codes passed to OSX, as they're not only reserved codes, but also case-sensitive. Use the ones an OSX user reports work properly. Thanks: Tim Gray. Version 4.40.0 21 April 2013 -convert SIGTERM to SIGINT so getmail can cleanup and exit normally if killed with a default signal. Thanks: Carl Lei. -fix change which resulted in passing full protocol name to OSX keyring program, which can't handle it (restricted to 4-character code). Thanks: Tim Gray. Version 4.39.1 10 March 2013 -fix a bug that could crop up when retrieving mail via IMAP from Gmail, and the Gmail servers provided weird data in their header extensions. Thanks: Krzysztof Warzecha. Version 4.39.0 22 February 2013 -fix an oldmail filename issue that occurred with certain non-ASCII characters in an IMAP mailbox name. Thanks: Michael Kockmeyer. Version 4.38.0 16 February 2013 -fix retrieving mail from an IMAP mailbox with non-ASCII characters in its name causing difficult-to-understand unicode errors during delivery. Thanks: "fsLeg", Krzysztof Warzecha. Version 4.37.0 27 January 2013 -handle IMAP servers which include "/" in message IDs better, so those messages aren't always thought to be new. Thanks: Bradley Rintoul. -record (IMAP) mailbox retrieved from in X-getmail-retrieved-from-mailbox: header field, and make it available as %(mailbox) substitution in MDA_external arguments. Thanks: Les Barstow. -add delete_bigger_than option to allow removal of large messages after retrieval, even if not deleting messages otherwise. Thanks: Jan Vereecke. Version 4.36.0 15 December 2012 -add support for retrieving POP/IMAP passwords from, and storing them to, the Gnome keyring. Thanks: Krzysztof Warzecha, Scott Hepler. Version 4.35.0 24 October 2012 -fix From_ quoting in mbox delivery; use of the Python stdlib function meant getmail was incorrectly using mboxo-style quoting instead of mboxrd quoting, probably since early in the v4 series. Thanks: Christoph Mitterer. Version 4.34.0 8 September 2012 -retrieve Gmail metadata (labels, thread ID, message ID) via IMAP extension and record it in new message headers. Thanks: Krzysztof Warzecha. Version 4.33.0 7 August 2012 -allow normal exit on interrupt (ctrl-c) to allow the user to abort message retrieval while still remembering already-retrieved messages as successfully delivered. You may get a weird error message after you abort, since the server may be in the middle of delivering another message to getmail at the time. Thanks: Krzysztof Warzecha. Version 4.32.0 6 July 2012 -prevent some nuisance stack traces if getmail cannot connect to the POP/ IMAP server correctly. Thanks: Daniel Dumke. -restore use_peek IMAP retriever parameter which accidentally got removed in 4.30. Thanks: Andreas Amann. Version 4.31.0 5 July 2012 -improved backwards compatibility with pre-v.4.22.0 oldmail files, so IMAP mail is not re-retrieved if you upgrade from a 4.22 or earlier to this one; no user action necessary. Thanks: Osamu Aoki, Tim van der Molen. Version 4.30.2 27 June 2012 -fix a nuisance stack trace that would be dumped if a connection failed in particular states. Thanks: Gary Schmidt. Version 4.30.1 21 June 2012 -silence a nuisance deprecation warning about the sets module when running with Python >= 2.5 which was reintroduced in 4.29.0. Thanks: Stephan Schulz. Version 4.30.0 21 June 2012 -fix breakage introduced in 4.29.0 where BrokenUIDLPOP3Retriever would fail with a TypeError at logout time. Thanks: Scott Robbins, Stephan Schulz. -fix breakage introduced in 4.29.0 where deleted mail was not being expunged from the last (or only) folder retrieved from in an IMAP session. Thanks: Paul Howarth. Version 4.29.0 19 June 2012 -update old contact information for Free Software Foundation. Thanks: Ricky Zhou. -fix incorrect character encoding in plaintext documentation. Thanks: Ricky Zhou. -ensure getmail exits nonzero if a server refuses login due to a credential problem. Thanks: Stephan Schulz. Version 4.28.0 26 May 2012 -ensure getmail exits nonzero if various error conditions (like POP/IMAP authentication failure) occur. Thanks: Ryan J., Stephan Schulz. -python versions prior to 2.5.0 contain a bug when dealing with read-only IMAP mailboxes. Monkey-patch imaplib when running with Python<2.5.0. Thanks: Les Barstow. -do IMAP modified-utf7 conversion of mailbox names containing non-ASCII characters. Thanks: A. Lapraitis, Randall Mason. -add special ALL value for retrieving mail from all selectable IMAP mailboxes in the account. -change IMAP retrieval strategy to retrieve all messages from a mailbox, then move on to the next mailbox, etc. Should result in increased speed, but if you set `max_messages_per_session` too low, this could result in later mailboxes not being retrieved from. Version 4.27.0 20 May 2012 -make use of IMAP BODY.PEEK configurable; set the IMAP retriever parameter `use_peek` to False to disable use of PEEK to get getmail's historical IMAP behaviour. Version 4.26.0 14 April 2012 -switch to using BODY.PEEK in IMAP retrieval; I no longer see problems with this feature in my testing. If users experience incompatibility with any IMAP servers where 4.25.0 worked, please let me know. Version 4.25.0 1 February 2012 -add support for storing POP/IMAP password in OSX keychain. Thanks: Adam Lazur. Version 4.24.0 11 December 2011 -add an explicit expunge when closing an IMAP mailbox, for servers that incorrectly do not do this when the mailbox is closed. Thanks: Nicolas Pomarède. -fix incorrect section reference for `mailboxes` parameter in documentation. Thanks: Ross Boylan. -fix getmail_fetch broken in 4.21.0. Thanks: Chris Donoghue. Version 4.23.0 20 November 2011 -fix race if new message shows up in POP3 mailbox between running the UIDL and LIST commands. Thanks: Roland Koebler, Osamu Aoki. Version 4.22.2 12 November 2011 -fix an error when logging a bad response to an IMAP SELECT command, introduced in 4.21.0. Thanks: "kureshii". Version 4.22.1 30 September 2011 -fix BrokenUIDLPOP3Retriever breakage from 4.21.0. Thanks: Scott Robbins, "hgolden". Version 4.22.0 25 September 2011 -when retriever supports multiple mail folders (IMAP), store oldmail data for each folder separately, preventing problems in some cases when using multiple rc files with the same account. Thanks: Jesse Schobben. Version 4.21.0 23 September 2011 -automatically open IMAP folders read-only if neither the delete nor delete_after options are in use; necessary to access chatlogs via Gmail. Thanks: Daniel M. Drucker. -avoid sorting msgids on each retrieval, reducing overhead when dealing with folders containing thousands of messages. Thanks: Daniel Koukola. Version 4.20.4 16 July 2011 -include more info from server response in error message when IMAP command errors out. Thanks: W. Martin Borgert, Osamu Aoki. -switch to using Parser instead of HeaderParser to correct illegal formatting bogosities in the body parts of incoming messages. Thanks: Lauri Alanko. Version 4.20.3 30 May 2011 -fix logging errors in error paths. Thanks: Visa Putkinen. Version 4.20.2 9 Apr 2011 -further changes to the Received: header construction to handle IPv6 better. Thanks: Frédéric Perrin. Version 4.20.1 7 Apr 2011 -ensure correct remote address and port is included in the Received: trace headers generated by getmail. Previously the first address found for the server was used even if another address was actually used to connect to the server. Thanks: Frédéric Perrin. -add workaround for Python issue http://bugs.python.org/issue1389051 which affects Python < 2.5.3, causing message retrieval of large messages from IMAP4 SSL servers to consume pathologically large amounts of memory. Thanks: Bill Janssen. Version 4.20.0 29 June 2010 -fix crap code from bad svn merge that slipped into 4.18.0, triggering exceptions in MDA_external configs. Thanks: Paul Howarth. Osamu -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org