FreeBSD Bugzilla – Attachment 131904 Details for
Bug 176079
[patch] mail/offlineimap: fix read-only folders
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
offlineimap.diff
offlineimap.diff (text/plain), 1.87 KB, created by
Matthew West
on 2013-02-12 18:20:00 UTC
(
hide
)
Description:
offlineimap.diff
Filename:
MIME Type:
Creator:
Matthew West
Created:
2013-02-12 18:20:00 UTC
Size:
1.87 KB
patch
obsolete
>diff -ruN offlineimap.orig/Makefile offlineimap/Makefile >--- offlineimap.orig/Makefile 2012-11-17 07:59:07.000000000 +0200 >+++ offlineimap/Makefile 2013-02-12 20:00:43.235994144 +0200 >@@ -7,6 +7,7 @@ > > PORTNAME= offlineimap > DISTVERSION= 6.5.4 >+PORTREVISION= 1 > CATEGORIES= mail python > MASTER_SITES= http://cloud.github.com/downloads/spaetz/offlineimap/ \ > http://dist.codelabs.ru/fbsd/offlineimap/ >diff -ruN offlineimap.orig/files/patch-properly-detect-readonly-folders offlineimap/files/patch-properly-detect-readonly-folders >--- offlineimap.orig/files/patch-properly-detect-readonly-folders 1970-01-01 02:00:00.000000000 +0200 >+++ offlineimap/files/patch-properly-detect-readonly-folders 2012-08-05 20:43:01.000000000 +0200 >@@ -0,0 +1,32 @@ >+From 9ad8f76a4313b83587fc44c8c864c52f02a4692c Mon Sep 17 00:00:00 2001 >+From: Eygene Ryabinkin <rea@codelabs.ru> >+Date: Sun, 5 Aug 2012 22:40:52 +0400 >+Subject: [PATCH] IMAPlib mixin class: pass 'readonly' exception to our >+ callers >+ >+This will allow our callers who are capable of dealing with >+readonly folders to properly detect this condition and act >+accordingly. >+ >+Signed-off-by: Eygene Ryabinkin <rea@codelabs.ru> >+--- >+ offlineimap/imaplibutil.py | 3 +++ >+ 1 file changed, 3 insertions(+) >+ >+diff --git a/offlineimap/imaplibutil.py b/offlineimap/imaplibutil.py >+index aa165f0..4290b2b 100644 >+--- a/offlineimap/imaplibutil.py >++++ b/offlineimap/imaplibutil.py >+@@ -49,6 +49,9 @@ class UsefulIMAPMixIn(object): >+ del self.untagged_responses[:] >+ try: >+ result = super(UsefulIMAPMixIn, self).select(mailbox, readonly) >++ except self.readonly as e: >++ # pass self.readonly to our callers >++ raise >+ except self.abort as e: >+ # self.abort is raised when we are supposed to retry >+ errstr = "Server '%s' closed connection, error on SELECT '%s'. Ser"\ >+-- >+1.7.11.1 >+
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 176079
: 131904