[-]
[+]
|
Changed |
getmail.changes
|
|
[-]
[+]
|
Changed |
getmail.spec
^
|
|
[-]
[+]
|
Changed |
getmail-4.40.3.tar.bz2/PKG-INFO
^
|
@@ -1,6 +1,6 @@
Metadata-Version: 1.0
Name: getmail
-Version: 4.39.1
+Version: 4.40.3
Summary: a mail retrieval, sorting, and delivering system
Home-page: http://pyropus.ca/software/getmail/
Author: Charles Cazabon
|
[-]
[+]
|
Changed |
getmail-4.40.3.tar.bz2/docs/CHANGELOG
^
|
@@ -1,3 +1,28 @@
+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
|
[-]
[+]
|
Changed |
getmail-4.40.3.tar.bz2/getmail
^
|
@@ -14,6 +14,7 @@
import pprint
from optparse import OptionParser, OptionGroup
import socket
+import signal
# Optional gnome-keyring integration
try:
@@ -86,6 +87,18 @@
'logfile' : None,
}
+
+
+
+#######################################
+def convert_to_sigint(unused1, unused2):
+ """Catch a SIGTERM and raise a SIGINT so getmail exits normally and does
+ cleanup if killed with default signal.
+ """
+ raise KeyboardInterrupt('from signal')
+
+signal.signal(signal.SIGTERM, convert_to_sigint)
+
#######################################
def blurb():
log.info('getmail version %s\n' % __version__)
|
[-]
[+]
|
Changed |
getmail-4.40.3.tar.bz2/getmail.spec
^
|
@@ -2,7 +2,7 @@
Summary: POP3 mail retriever with reliable Maildir delivery
Name: getmail
-Version: 4.39.1
+Version: 4.40.3
Release: 1
License: GPL
Group: Applications/Internet
@@ -52,6 +52,18 @@
%{python_sitelib}/getmailcore/
%changelog
+* Fri May 10 2013 Charles Cazabon <charlesc-getmail-rpm@pyropus.ca>
+-update to version 4.40.3
+
+* Wed May 08 2013 Charles Cazabon <charlesc-getmail-rpm@pyropus.ca>
+-update to version 4.40.2
+
+* Mon Apr 22 2013 Charles Cazabon <charlesc-getmail-rpm@pyropus.ca>
+-update to version 4.40.1
+
+* Sun Apr 21 2013 Charles Cazabon <charlesc-getmail-rpm@pyropus.ca>
+-update to version 4.40.0
+
* Sun Mar 10 2013 Charles Cazabon <charlesc-getmail-rpm@pyropus.ca>
-update to version 4.39.1
|
[-]
[+]
|
Changed |
getmail-4.40.3.tar.bz2/getmailcore/__init__.py
^
|
@@ -16,7 +16,7 @@
raise ImportError('getmail version 4 requires Python version 2.3.3'
' or later')
-__version__ = '4.39.1'
+__version__ = '4.40.3'
__all__ = [
'baseclasses',
|
[-]
[+]
|
Changed |
getmail-4.40.3.tar.bz2/getmailcore/_retrieverbases.py
^
|
@@ -330,7 +330,7 @@
- name - parameter name
- type - a type function to compare the parameter value
against (i.e. str, int, bool)
- - default - optional default value. If not preseent, the
+ - default - optional default value. If not present, the
parameter is required.
__str__(self) - return a simple string representing the class instance.
|
[-]
[+]
|
Changed |
getmail-4.40.3.tar.bz2/getmailcore/message.py
^
|
@@ -7,6 +7,7 @@
'Message',
]
+import sys
import os
import time
import cStringIO
@@ -15,14 +16,25 @@
import email.Errors
import email.Utils
import email.Parser
-import email.header
from email.Generator import Generator
+try:
+ from email.header import Header
+except ImportError, o:
+ # Python < 2.5
+ from email import Header
from getmailcore.exceptions import *
from getmailcore.utilities import mbox_from_escape, format_header, \
address_no_brackets
import getmailcore.logging
+if sys.hexversion < 0x02040000:
+ # email module in Python 2.3 uses more recursion to parse messages or
+ # similar; a user reported recursion errors with a message with ~300
+ # MIME parts.
+ # Hack around it by increasing the recursion limit.
+ sys.setrecursionlimit(2000)
+
message_attributes = (
'sender',
'received_by',
@@ -189,7 +201,7 @@
include_from)
def add_header(self, name, content):
- self.__msg[name] = email.header.Header(content.rstrip())
+ self.__msg[name] = Header(content.rstrip())
def remove_header(self, name):
del self.__msg[name]
|
[-]
[+]
|
Changed |
getmail-4.40.3.tar.bz2/getmailcore/utilities.py
^
|
@@ -494,6 +494,17 @@
None.
"""
+ # OSX protocol is not an arbitrary string; it's a code limited to
+ # 4 case-sensitive chars, and only specific values.
+ protocol = protocol.lower()
+ if 'imap' in protocol:
+ protocol = 'imap'
+ elif 'pop' in protocol:
+ protocol = 'pop3'
+ else:
+ # This will break.
+ protocol = '????'
+
# wish we could pass along a comment to this thing for the user prompt
cmd = "%s find-internet-password -g -a '%s' -s '%s' -r '%s'" % (
osx_keychain_binary, user, server, protocol
|