debian/0000755000000000000000000000000012210225523007160 5ustar debian/compat0000644000000000000000000000000212145440252010363 0ustar 8 debian/changelog0000644000000000000000000002573412210224421011041 0ustar getmail4 (4.43.0-1) unstable; urgency=low * New upstream release. + Fix non-ascii characters handling in message header fields. + Add IMAP IDLE support. Closes: #301690 -- Osamu Aoki Sat, 31 Aug 2013 08:21:36 +0900 getmail4 (4.41.0-2) unstable; urgency=low * Remove patches not needed any more to make sure script lines are not shifted. -- Osamu Aoki Fri, 02 Aug 2013 22:15:28 +0900 getmail4 (4.41.0-1) unstable; urgency=low * New upstream release. -- Osamu Aoki Mon, 10 Jun 2013 00:07:25 +0900 getmail4 (4.40.3-3) unstable; urgency=low * Remove Fredrik Steen from uploader. * Revert Microsoft Exchange Server 2003 patch. Closes: #709170 -- Osamu Aoki Sat, 01 Jun 2013 00:43:40 +0900 getmail4 (4.40.3-2) unstable; urgency=low * Add missing import by Ana Beatriz Guerrero Lopez. Closes: #708797 -- Osamu Aoki Tue, 21 May 2013 00:49:25 +0900 getmail4 (4.40.3-1) unstable; urgency=low * New upstream releases merged for jessie. - non-ASCII chars in IMAP folder name. Closes: #513116, #701717 * Enhance compatibility with Microsoft Exchange Server 2003 with patch by W. Martin Borgert. Closes: #701844 -- Osamu Aoki Fri, 17 May 2013 23:58:30 +0900 getmail4 (4.32.0-2) unstable; urgency=low * Prevent mail data corruption by the mboxo format by applying upstream 4.35 patch to use the mboxrd format. Closes: #633799 -- Osamu Aoki Fri, 16 Nov 2012 20:31:42 +0900 getmail4 (4.32.0-1) unstable; urgency=low * New upstream release. - Prevent some nuisance stack traces if getmail cannot connect to the POP/ IMAP server correctly. - Restore use_peek IMAP retriever parameter which accidentally got removed in 4.30. - 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. This is for Debian system upgrading from squeeze (4.20.0). -- Osamu Aoki Thu, 12 Jul 2012 00:37:18 +0900 getmail4 (4.30.2-1) unstable; urgency=low * New upstream release. -- Osamu Aoki Thu, 28 Jun 2012 21:24:08 +0900 getmail4 (4.30.1-1) unstable; urgency=low * New upstream release. -- Osamu Aoki Fri, 22 Jun 2012 21:40:57 +0900 getmail4 (4.30.0-1) unstable; urgency=low * New upstream release. Closes: #678411 -- Osamu Aoki Fri, 22 Jun 2012 00:12:39 +0900 getmail4 (4.29.0-2) unstable; urgency=low * Upstream provided bug fix for BrokenUIDLPOP3Retriever. Closes: #678330 -- Osamu Aoki Thu, 21 Jun 2012 22:45:16 +0900 getmail4 (4.29.0-1) unstable; urgency=low * New upstream release. -- Osamu Aoki Wed, 20 Jun 2012 20:52:41 +0900 getmail4 (4.27.0-1) unstable; urgency=low * New upstream release. -- Osamu Aoki Fri, 25 May 2012 07:32:20 +0900 getmail4 (4.26.0-1) unstable; urgency=low * New upstream release. + Use BODY.PEEK in IMAP retrieval. Closes: #668602 * Avoid $UID in getmails for BASH compatibility. Closes: #665756 * Swap maintainer and uploader to reflect recent situation. * Updated policy version and made DEP-5 compliant. -- Osamu Aoki Sun, 15 Apr 2012 14:04:42 +0900 getmail4 (4.24.0-1) unstable; urgency=low * New upstream release. -- Osamu Aoki Wed, 14 Dec 2011 21:38:49 +0900 getmail4 (4.23.0-2) unstable; urgency=low * Used -U option for pgrep. -- Osamu Aoki Tue, 22 Nov 2011 22:02:27 +0900 getmail4 (4.23.0-1) unstable; urgency=low * New upstream release to fix race in POP3 mailbox. Thanks to Roland Koebler. Closes: #648242 -- Osamu Aoki Mon, 21 Nov 2011 21:51:52 +0900 getmail4 (4.22.2-1) unstable; urgency=low * New upstream release to fix IMAP regression in 4.21.0. -- Osamu Aoki Sun, 13 Nov 2011 23:14:06 +0900 getmail4 (4.22.1-1) unstable; urgency=low * New upstream release. + Improved retriever support for multiple IMAP mail folders. + Automatically open IMAP folders read-only if neither the delete nor delete_after options are in use; necessary to access chatlogs via Gmail. + Avoid sorting msgids on each retrieval, reducing overhead when dealing with folders containing thousands of messages. * Added a Debian specific wrapper script, getmails. -- Osamu Aoki Sun, 13 Nov 2011 00:01:08 +0900 getmail4 (4.20.4-1) unstable; urgency=low * New upstream release. + Accepted "getmail_retrievers-IMAP-error.patch". + switch to using Parser instead of HeaderParser to correct illegal formatting bogosities in the body parts of incoming messages. Closes: #633735 * Moved homepage-entity in control file to the source side. -- Osamu Aoki Fri, 22 Jul 2011 23:31:54 +0900 getmail4 (4.20.3-2) unstable; urgency=low * Removed Debian patches for Python path since the new policy compliant packaging style does not require them. Closes: #633641 -- Osamu Aoki Tue, 12 Jul 2011 21:27:55 +0900 getmail4 (4.20.3-1) unstable; urgency=low * New upstream release * Bumped to "Standards-Version: 3.9.2". * Python policy updates such as use of "dh $@ --with python2". * Improved IMAP error messages. Closes: #606972 * DEP-3 compliant patch files. * DEP-5 debian/copyright file. -- Osamu Aoki Mon, 11 Jul 2011 23:50:52 +0900 getmail4 (4.20.2-1) unstable; urgency=low * New upstream release. * Bumped to "Standards-Version: 3.9.1". -- Fredrik Steen Mon, 11 Apr 2011 13:26:40 +0200 getmail4 (4.20.0-1) unstable; urgency=low * Added Osamu Aoki as Uploaders. * Updated debian/watch file to run uupdate. * Plcaced this package in collab-maint at git.debian.org. * Fixed broken internal links. Closes: #463897 * New upstream release. Closes: #587651 * Included upstream chengelog in the deb package. -- Osamu Aoki Sat, 03 Jul 2010 09:24:06 +0900 getmail4 (4.17.0-0.1) unstable; urgency=low * Non-maintainer upload. * New upstream release - fixing 500 message issues with some IMAP servers that that return oddball responses to SELECT. * Changed to "dh $@" style and removed unused debian/pycompat. * Enforced Python 2.4 or newer. Closes: #294939 * Moved systematic changes to sed -i in the override_dh_install step. * Moved to 3.0 (quilt) source format and cleaned up patch formats. -- Osamu Aoki Wed, 05 May 2010 02:00:43 +0900 getmail4 (4.16.0-0.1) unstable; urgency=low * Non-maintainer upload. * New upstream release - fixing default port for MultidropIMAPSSLRetriever. - continuing getmail for IMAP exceptions. Closes: #481380, 443856 * Fixed watch file not to fetch beta version from 5 series. * Removed useless debian/getmail4.dirs. * Bumped to "Standards-Version: 3.8.4". * Added debian/source/format. * Fixed lintian build-depends-on-python-dev-with-no-arch-any. * Fixed lintian possible-documentation-but-no-doc-base-registration -- Osamu Aoki Thu, 29 Apr 2010 00:07:20 +0900 getmail4 (4.14.0-2) unstable; urgency=low * Updated to versioned build depends on debhelper 7. * Added misc-depends to Depends. * Now lintian clean. -- Fredrik Steen Tue, 22 Dec 2009 18:11:37 +0100 getmail4 (4.14.0-1.1) unstable; urgency=low * Non-maintainer upload with approval by the mainatainer. * Updated __init__.py-remove-hash-bang.patch. * Set debhelper compatibility level to 7 * Updated to standards version 3.8.3 -- Osamu Aoki Sun, 29 Nov 2009 00:55:08 +0900 getmail4 (4.8.4-1) unstable; urgency=low * Updated to standards version 3.8.0.0 * Added debian/watch * New Upstream Version -- Fredrik Steen Wed, 22 Oct 2008 21:29:53 +0200 getmail4 (4.7.8-1) unstable; urgency=low * New upstream release (Closes:#462020) -- Fredrik Steen Fri, 15 Feb 2008 16:10:41 +0100 getmail4 (4.7.7-1) unstable; urgency=low * New upstream release Closes:#453691 -- Fredrik Steen Sun, 02 Dec 2007 21:09:11 +0100 getmail4 (4.7.6-2) unstable; urgency=low * Updated copyright file to point to GPL-2, thanks Sven Joachim Closes:#439834 -- Fredrik Steen Sun, 26 Aug 2007 09:44:42 +0000 getmail4 (4.7.6-1) unstable; urgency=low * New upstream release * Upstream fix for external MDA stderr handling. Closes:#400304 -- Fredrik Steen Sat, 25 Aug 2007 19:25:51 +0000 getmail4 (4.7.1-1) unstable; urgency=low * New upstream release -- Fredrik Steen Tue, 20 Feb 2007 14:36:22 +0000 getmail4 (4.6.5-1) unstable; urgency=low * New upstream release -- Fredrik Steen Mon, 23 Oct 2006 11:17:40 +0200 getmail4 (4.6.2-3) unstable; urgency=high * Added correct search path for getmail_mbox, getmail_fetch and getmail_maildir. (Closes:#375675) -- Fredrik Steen Tue, 11 Jul 2006 09:33:34 +0200 getmail4 (4.6.2-2) unstable; urgency=high * Patch to supress FutureWarnings from Optparse (#290637) * Upgraded package to comply with new python policy * Updated sys.path to include getmailcore (Closes:#375675) -- Fredrik Steen Thu, 15 Jun 2006 13:41:24 +0200 getmail4 (4.6.2-1) unstable; urgency=low * New upstream release. * Updated to new python policy. -- Fredrik Steen Wed, 14 Jun 2006 12:46:39 +0200 getmail4 (4.5.4-1) unstable; urgency=low * New upstream release Closes:#351788 * keyfile and certfile parameters to SSL retrievers are now expanded Closes:#351291 -- Fredrik Steen Fri, 24 Mar 2006 12:29:43 +0100 getmail4 (4.3.5-1) unstable; urgency=low * New upstream release -- Fredrik Steen Tue, 5 Apr 2005 14:32:08 +0200 getmail4 (4.3.3-1) unstable; urgency=low * Changed URL to homepage (thanks Stephan Gromer) * Changed URL to homepage is README.Debian Closes:#298642 -- Fredrik Steen Mon, 28 Feb 2005 08:17:45 +0100 getmail4 (4.3.2-1) unstable; urgency=low * New upstream release -- Fredrik Steen Fri, 18 Feb 2005 08:28:01 +0100 getmail4 (4.2.5-1) unstable; urgency=low * New upstream release -- Fredrik Steen Thu, 9 Dec 2004 14:47:44 +0100 getmail4 (4.2.4-1) unstable; urgency=low * New upstream release -- Fredrik Steen Tue, 23 Nov 2004 08:03:19 +0100 getmail4 (4.2.2-2) unstable; urgency=low * Fixed Build dep on python-dev Closes:#279512 -- Fredrik Steen Wed, 27 Oct 2004 08:57:32 +0200 getmail4 (4.2.2-1) unstable; urgency=low * New upstream release -- Fredrik Steen Wed, 27 Oct 2004 08:52:23 +0200 getmail4 (4.2.0-1) unstable; urgency=low * Initial Release. -- Fredrik Steen Tue, 5 Oct 2004 08:44:52 +0200 debian/watch0000644000000000000000000000014212145440252010213 0ustar version=3 http://pyropus.ca/software/getmail/old-versions/getmail-(4\..*)\.tar\.gz debian uupdate debian/getmails0000755000000000000000000000103312145440252010715 0ustar #!/bin/sh # vim:se tw=78 sts=4: # Copyright (C) Osamu Aoki , GPL2+ set -e UID_BY_ID=$(id -u) PID_GETMAILS=$(pgrep -U $UID_BY_ID '^getmails$') if [ "x$PID_GETMAILS" != "x$$" ]; then echo "The getmails script is already running as PID=\"$PID_GETMAILS\" ." >&2 exit 1 fi if [ -f $HOME/.getmail/stop ]; then echo "Do not run getmail ... (if not, remove $HOME/.getmail/stop)" >&2 exit 1 fi rcfiles="/usr/bin/getmail" for file in $HOME/.getmail/config/* ; do rcfiles="$rcfiles --rcfile \"$file\"" done eval "$rcfiles $@" debian/getmail4.manpages0000644000000000000000000000002212145440252012402 0ustar debian/getmails.1 debian/control0000644000000000000000000000202412152146154010570 0ustar Source: getmail4 Section: mail Priority: optional Maintainer: Osamu Aoki Build-Depends: debhelper (>= 9) Build-Depends-Indep: python Standards-Version: 3.9.4 Vcs-Git: git://anonscm.debian.org/collab-maint/getmail.git Vcs-browser: http://anonscm.debian.org/gitweb/?p=collab-maint/getmail.git Homepage: http://pyropus.ca/software/getmail/ Package: getmail4 Architecture: all Multi-Arch: foreign Depends: ${python:Depends}, ${misc:Depends} Conflicts: getmail Description: mail retriever with support for POP3, IMAP4 and SDPS getmail is intended as a simple replacement for fetchmail. It retrieves mail (either all messages, or only unread messages) from one or more POP3/IMAP4/SDPS servers for one or more email accounts, and reliably delivers into a qmail-style Maildir, mbox file or to a command (pipe delivery) like maildrop or procmail, specified on a per-account basis. getmail also has support for domain (multidrop) mailboxes. . Supported protocols: POP3, POP3-over-SSL, IMAP4, IMAP4-over-SSL, and SDPS mail. debian/copyright0000644000000000000000000000342112145440252011120 0ustar Format: http://dep.debian.net/deps/dep5 Upstream-Name: getmail Upstream-Contact: charlesc-getmail@pyropus.ca Source: http://pyropus.ca/software/getmail/#download Files: * Copyright: 1998-2011 Charles Cazabon License: GPL-2 This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License (only). . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". Files: debian/* Copyright: 2004-2011 Fredrik Steen 2010-2012 Osamu Aoki License: GPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License or later. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". debian/getmail4.docs0000644000000000000000000000040012145440252011537 0ustar docs/BUGS docs/configuration.html docs/configuration.txt docs/documentation.html docs/documentation.txt docs/faq.html docs/faq.txt docs/getmaildocs.css docs/getmailrc-examples docs/THANKS docs/TODO docs/troubleshooting.html docs/troubleshooting.txt README debian/README.Debian0000644000000000000000000000262112145440252011227 0ustar getmail4 for Debian ------------------- getmail4 package includes a Debian specific convenience wrapper script getmails to ease maintenance of multiple mail accounts. Instead of using single ~/.getmailrc, getmails uses files matching ~/.getmail/config/* . See getmails(1) manpage for its command syntax. Tutorial for getmails ~~~~~~~~~~~~~~~~~~~~~ For example, you can create ~/.getmail/config/foo.bar@gmail.com as follows: === start of ISP1 === [retriever] type = SimplePOP3SSLRetriever server = pop.gmail.com username = foo.bar@gmail.com password = secretbaz [destination] type = MDA_external path = /usr/bin/maildrop unixfrom = True [options] verbose = 0 delete = True delivered_to = False message_log = ~/.getmail/log/foo.bar@gmail.com.log === end of ISP1 === (Here, maildrop package is used to filter incoming mail instead of more conventional procmail.) This configuration enables retrieval of mails from foo.bar@gmail.com . When you have 3 accounts at different ISPs, you can create configuration files for these 3 ISPs as: * ~/.getmail/config/ISP1 * ~/.getmail/config/ISP2 * ~/.getmail/config/.ISP3 getmails only uses ISP1 and ISP2 only and skips .ISP3. I.e., you can turn on and off mail accounts by renaming their configuration files. This made more intuitive to maintain multiple accounts, at least, for this maintainer. -- Osamu Aoki , Sat, 12 Nov 2011 14:06:15 +0000 debian/rules0000755000000000000000000000136512210225523010245 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 %: dh $@ --with python2 override_dh_install: dh_install # remove documentation files created by setup.py rm -rf debian/getmail4/usr/share/doc/getmail-* override_dh_installdocs: dh_installdocs # Check what is out there. -ls -l debian/getmail4/usr/share/doc/getmail4/* # Fix file name to be getmailrc-examples.gz (Bug#463897) if [ -s debian/getmail4/usr/share/doc/getmail4/configuration.txt ]; then \ sed -i -e 's/getmailrc-examples/getmailrc-examples.gz/' debian/getmail4/usr/share/doc/getmail4/configuration.txt ;\ fi sed -i -e 's/getmailrc-examples/getmailrc-examples.gz/g' debian/getmail4/usr/share/doc/getmail4/configuration.html override_dh_installchangelogs: dh_installchangelogs docs/CHANGELOG debian/source/0000755000000000000000000000000012145440252010465 5ustar debian/source/format0000644000000000000000000000001512145440252011674 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012176732172010625 5ustar debian/patches/0003-IMAP-Exchange2003.patch0000644000000000000000000000437512146442656015014 0ustar From: "W. Martin Borgert" , Ana Beatriz Guerrero Lopez Description: Microsoft Exchange Server 2003 compatibilty enhancement With changing from squeeze to wheezy, I could not get emails from an Microsoft Exchange Server 2003 anymore with getmail4. This is caused by changed default in the OpenSSL library. Linking Python against libssl from squeeze "solves" the problem in fact, but of course, this is not an option. The correct solution seems to be to set the right SSL protocol version when connecting, but unfortunately, Python before 3.3.0 does not allow to set the SSL version for the IMAP4_SSL class, which is used by getmail4. One can, however, monkey patch it, which should greatly improve compatibility. Given that MSexChange is regrettably widespread, I took the liberty to set the severity to important. The patch needs a review desperately, but it works for me. --- a/getmailcore/compatibility.py +++ b/getmailcore/compatibility.py @@ -10,6 +10,8 @@ import sys import imaplib import new +import socket +import ssl if sys.version_info < (2, 4, 0): @@ -76,3 +78,23 @@ imaplib.IMAP4_SSL.read = new.instancemethod(fixed_read, None, imaplib.IMAP4_SSL) + +if sys.version_info < (3, 3, 0): + # enhance compatibility, e.g. for Microsoft Exchange Server 2003: + # IMAP4_SSL class uses ssl.PROTOCOL_SSLv23, which is the best choice + # for servers, but the Python documentation states, that for clients + # ssl.PROTOCOL_SSLv3 is the most compatible SSL variant. This monkey + # patch should be removed for Python >= 3.3.0 and the ssl.SSLContext + # should be used instead. + def IMAP4_SSL_open(self, host = '', port = imaplib.IMAP4_SSL_PORT): + self.host = host + self.port = port + self.sock = socket.create_connection((host, port)) + self.sslobj = ssl.wrap_socket(self.sock, self.keyfile, self.certfile, + ssl_version=ssl.PROTOCOL_SSLv3) + self.file = self.sslobj.makefile('rb') + + imaplib.IMAP4_SSL.open = new.instancemethod(IMAP4_SSL_open, None, + imaplib.IMAP4_SSL) +else: + raise DeprecationWarning("better use ssl.SSLContext now") debian/patches/series0000644000000000000000000000003612176730214012034 0ustar #0003-IMAP-Exchange2003.patch debian/getmails.10000644000000000000000000000156012145440252011056 0ustar .TH getmails "1" "November 2011" "getmail 4" "User Commands" .SH NAME getmails \- wrapper for getmail to access multiple mailboxes .SH SYNOPSIS .B getmails [\fIOPTION\fR] ... .SH DESCRIPTION .\" Add any additional description here .PP .B getmails is a wrapper script for .B getmail to retrieve messages with multiple independent configuration files .I ~/.getmail/config/* instead of a single .I ~/.getmailrc file. The option provided as \fIOPTION\fR is passed to \fBgetmail\fR. The existance of .I ~/.getmail/stop can prevent this wrapper script to execute \fBgetmail\fR. .SH "REPORTING BUGS" Report bugs to the getmail4 debian package if bugs are in this wrapper script. .SH COPYRIGHT Copyright 2011 Osamu Aoki .br This is free software; see the file COPYING for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. debian/doc-base0000644000000000000000000000041312145440252010563 0ustar Document: getmail4 Title: getmail documentation Author: Charles Cazabon Abstract: This is the documentation for getmail version 4. Section: Network/Communication Format: HTML Index: /usr/share/doc/getmail4/documentation.html Files: /usr/share/doc/getmail4/*.html debian/getmail4.install0000644000000000000000000000003212145440252012256 0ustar debian/getmails /usr/bin