Package: getmail4 / 4.53.0-1+deb9u1

0001-New-upstream-version-4.54.0.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
From: Osamu Aoki <osamu@debian.org>
Date: Sat, 7 Oct 2017 15:17:04 +0900
Subject: New upstream version 4.54.0

This patch fixes a single error in the getmail_fetch command introduced in
4.53.0.  This also contains the patch for the upstream version used in the
source bump to 4.54.0  This should make users not to complain about the buggy
version in stable.


---
 PKG-INFO                       | 2 +-
 docs/CHANGELOG                 | 4 ++++
 getmail.spec                   | 5 ++++-
 getmail_fetch                  | 5 +++++
 getmailcore/__init__.py        | 2 +-
 getmailcore/_retrieverbases.py | 2 +-
 6 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/PKG-INFO b/PKG-INFO
index 3da8957..23a560c 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: getmail
-Version: 4.53.0
+Version: 4.54.0
 Summary: a mail retrieval, sorting, and delivering system
 Home-page: http://pyropus.ca/software/getmail/
 Author: Charles Cazabon
diff --git a/docs/CHANGELOG b/docs/CHANGELOG
index 2407f0b..9eb61b1 100644
--- a/docs/CHANGELOG
+++ b/docs/CHANGELOG
@@ -1,3 +1,7 @@
+Version 4.54.0
+19 February 2017
+    -fix error running getmail_fetch introduced in 4.53.0.  Thanks: "fsckd".
+
 Version 4.53.0
 15 January 2017
     -fix plaintext version of docs not generated correctly.  Thanks: Elijah.
diff --git a/getmail.spec b/getmail.spec
index 51cd8e9..53eef53 100644
--- a/getmail.spec
+++ b/getmail.spec
@@ -2,7 +2,7 @@
 
 Summary: POP3 mail retriever with reliable Maildir delivery
 Name: getmail
-Version: 4.53.0
+Version: 4.54.0
 Release: 1
 License: GPL
 Group: Applications/Internet
@@ -52,6 +52,9 @@ should not be attempted over NFS.  getmail is written entirely in python.
 %{python_sitelib}/getmailcore/
 
 %changelog
+* Sun Feb 19 2017 Charles Cazabon <charlesc-getmail-rpm@pyropus.ca>
+-update to version 4.54.0
+
 * Sun Jan 15 2017 Charles Cazabon <charlesc-getmail-rpm@pyropus.ca>
 -update to version 4.53.0
 
diff --git a/getmail_fetch b/getmail_fetch
index 3750d56..8978ccc 100755
--- a/getmail_fetch
+++ b/getmail_fetch
@@ -9,6 +9,7 @@ if sys.hexversion < 0x2030300:
 import os
 import socket
 import poplib
+import new
 from optparse import OptionParser
 
 try:
@@ -133,6 +134,10 @@ def main():
             raise getmailOperationError('incorrect arguments; try --help'
                                         % args)
 
+        def get(self, key, value=None):
+            return getattr(self, key, value)
+        options.get = new.instancemethod(get, options, options.__class__)
+
         msg = None
         if options.message is not None:
             try:
diff --git a/getmailcore/__init__.py b/getmailcore/__init__.py
index f857842..6dbe2c3 100755
--- a/getmailcore/__init__.py
+++ b/getmailcore/__init__.py
@@ -16,7 +16,7 @@ if sys.hexversion < 0x2030300:
     raise ImportError('getmail version 4 requires Python version 2.3.3'
                       ' or later')
 
-__version__ = '4.53.0'
+__version__ = '4.54.0'
 
 __all__ = [
     'baseclasses',
diff --git a/getmailcore/_retrieverbases.py b/getmailcore/_retrieverbases.py
index e4592e0..ff14a92 100755
--- a/getmailcore/_retrieverbases.py
+++ b/getmailcore/_retrieverbases.py
@@ -439,7 +439,7 @@ class Py24POP3SSLinitMixIn(object):
             fingerprint_message += ' using cipher %s' % ssl_cipher
         fingerprint_message += os.linesep
 
-        if self.app_options['fingerprint']:
+        if self.app_options.get('fingerprint', False):
             self.log.info(fingerprint_message)
         else:
             self.log.trace(fingerprint_message)