Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Mar 2011 00:37:17 +0100
From:      Matthias Andree <mandree@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        question+fbsdports@closedsrc.org
Subject:   ports/155644: [PATCH] mail/getmail: don't mark mail fetched through IMAP as read
Message-ID:  <E1Q0Mkn-000CTF-Sn@apollo.emma.line.org>
Resent-Message-ID: <201103172340.p2HNeAv0050749@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         155644
>Category:       ports
>Synopsis:       [PATCH] mail/getmail: don't mark mail fetched through IMAP as read
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 17 23:40:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Matthias Andree
>Release:        FreeBSD 8.2-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD apollo.emma.line.org 8.2-RELEASE FreeBSD 8.2-RELEASE #65: Fri Feb 25 01:47:50 CET 2011
>Description:
Linh,

please follow up this bug report with a statement whether you approve of
the patch or not.

Note that there have been past maintainer timeouts on this port, and I
may reset maintainership if this PR times out again.

Thank you.

-- CHANGES --

Added file(s):
- files/patch-getmailcore___retrieverbases.py

Bump portrevision.

This patch uses RFC-2060/3501 standard PEEK commands to avoid mail downloaded
through IMAP from being marked as read on the server.  Charles Cazabon
has repeatedly refused to fix the bug with spurious arguments, but the
reports come up time and again.

This has been successfully tested against various Cyrus IMAP and Dovecot
versions, GMX.net, web.de, Yahoo, Exchange 2003, and fixes the original
poster's problem (from Feb 2011).

XREF: https://bugs.launchpad.net/ubuntu/+source/getmail4/+bug/737206
REF: http://marc.info/?t=129830724900001
REF: http://marc.info/?t=130033959300003

Port maintainer (question+fbsdports@closedsrc.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- getmail-4.20.0_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/mail/getmail/Makefile,v
retrieving revision 1.89
diff -u -u -r1.89 Makefile
--- Makefile	1 Jul 2010 05:58:10 -0000	1.89
+++ Makefile	17 Mar 2011 23:26:44 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	getmail
 PORTVERSION=	4.20.0
+PORTREVISION=	1
 CATEGORIES=	mail python
 MASTER_SITES=	http://pyropus.ca/software/getmail/%SUBDIR%/ \
 		http://mirrors.closedsrc.org/getmail/
Index: files/patch-getmailcore___retrieverbases.py
===================================================================
RCS file: files/patch-getmailcore___retrieverbases.py
diff -N files/patch-getmailcore___retrieverbases.py
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-getmailcore___retrieverbases.py	17 Mar 2011 23:26:00 -0000
@@ -0,0 +1,16 @@
+--- ./getmailcore/_retrieverbases.py.orig	2010-06-29 18:03:42.000000000 +0200
++++ ./getmailcore/_retrieverbases.py	2011-03-18 00:25:54.000000000 +0100
+@@ -898,11 +898,11 @@
+ 
+     def _getmsgbyid(self, msgid):
+         self.log.trace()
+-        return self._getmsgpartbyid(msgid, '(RFC822)')
++        return self._getmsgpartbyid(msgid, '(BODY.PEEK[])')
+ 
+     def _getheaderbyid(self, msgid):
+         self.log.trace()
+-        return self._getmsgpartbyid(msgid, '(RFC822[header])')
++        return self._getmsgpartbyid(msgid, '(BODY.PEEK[header])')
+ 
+     def initialize(self):
+         self.log.trace()
--- getmail-4.20.0_1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1Q0Mkn-000CTF-Sn>