View | Details | Raw Unified | Return to bug 176079
Collapse All | Expand All

(-)offlineimap/Makefile (+1 lines)
Lines 7-12 Link Here
7
7
8
PORTNAME=	offlineimap
8
PORTNAME=	offlineimap
9
DISTVERSION=	6.5.4
9
DISTVERSION=	6.5.4
10
PORTREVISION=	1
10
CATEGORIES=	mail python
11
CATEGORIES=	mail python
11
MASTER_SITES=	http://cloud.github.com/downloads/spaetz/offlineimap/ \
12
MASTER_SITES=	http://cloud.github.com/downloads/spaetz/offlineimap/ \
12
		http://dist.codelabs.ru/fbsd/offlineimap/
13
		http://dist.codelabs.ru/fbsd/offlineimap/
(-)offlineimap/files/patch-properly-detect-readonly-folders (+32 lines)
Line 0 Link Here
1
From 9ad8f76a4313b83587fc44c8c864c52f02a4692c Mon Sep 17 00:00:00 2001
2
From: Eygene Ryabinkin <rea@codelabs.ru>
3
Date: Sun, 5 Aug 2012 22:40:52 +0400
4
Subject: [PATCH] IMAPlib mixin class: pass 'readonly' exception to our
5
 callers
6
7
This will allow our callers who are capable of dealing with
8
readonly folders to properly detect this condition and act
9
accordingly.
10
11
Signed-off-by: Eygene Ryabinkin <rea@codelabs.ru>
12
---
13
 offlineimap/imaplibutil.py | 3 +++
14
 1 file changed, 3 insertions(+)
15
16
diff --git a/offlineimap/imaplibutil.py b/offlineimap/imaplibutil.py
17
index aa165f0..4290b2b 100644
18
--- a/offlineimap/imaplibutil.py
19
+++ b/offlineimap/imaplibutil.py
20
@@ -49,6 +49,9 @@ class UsefulIMAPMixIn(object):
21
         del self.untagged_responses[:]
22
         try:
23
             result = super(UsefulIMAPMixIn, self).select(mailbox, readonly)
24
+        except self.readonly as e:
25
+            # pass self.readonly to our callers
26
+            raise
27
         except self.abort as e:
28
             # self.abort is raised when we are supposed to retry
29
             errstr = "Server '%s' closed connection, error on SELECT '%s'. Ser"\
30
-- 
31
1.7.11.1
32

Return to bug 176079