docker-offlineimap/offlineimap
Sebastian Spaeth fe57140224 Fix repository 'readonly' configuration
The readonly feature was introduced to safeguard repositories from
accidental modifications. Unfortunately, my patch treated the readonly
setting as a string and not as a boolean, so if *anything* was set in
the configuration file as 'readonly', this value evaluated to True

Fortunately this was safe, we never treated a repository that we wanted
read-only as read-write. We always treated them readonly if something
was configured as "readonly=..." even if that was False.

The fix is simply to use getconfboolean() rather than getconf() which
checks for True/False/On/Off/yes/no/1/0 and hands back the correct boolean.

Reported-by: Tomasz Nowak <nowak2000@poczta.onet.pl>
Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2011-09-15 19:20:27 +02:00
..
folder IMAP cachefolder: Fix returning None on select 2011-09-13 18:31:28 +02:00
repository Implement Server SSL fingerprint check 2011-09-12 19:45:15 +02:00
ui Shorten list of messages to be deleted in UI output 2011-09-06 20:03:33 +02:00
__init__.py v6.3.5-rc1 2011-09-12 20:10:44 +02:00
accounts.py Fix repository 'readonly' configuration 2011-09-15 19:20:27 +02:00
CustomConfig.py Use SafeConfigParser for the configuration 2011-08-30 22:16:35 +02:00
error.py Introduce new error level FOLDER_RETRY 2011-09-06 19:00:21 +02:00
imaplib2.py imaplib2: bump to upstream version 2.28 (rev 8228a0f) 2011-08-15 12:21:38 +02:00
imaplibutil.py Check for SSL module existence and only do fingerprint check then 2011-09-12 19:45:16 +02:00
imapserver.py Merge branch 'ss/cleanup-idle' into next 2011-09-12 20:02:26 +02:00
imaputil.py Merge branch 'ss/better-error-throwing-and-id-sequence' into next 2011-09-06 20:15:05 +02:00
init.py Always call ui.terminate() 2011-06-16 18:57:35 +02:00
localeval.py Update FSF address 2006-08-12 05:15:55 +01:00
mbnames.py explicitly define symbols to import instead of 'import *' 2011-05-09 22:43:03 +02:00
syncmaster.py Remove weird SigListener class 2011-05-08 14:25:16 +02:00
threadutil.py fix broken ui Blinkenlights in multi-threaded mode 2011-05-18 18:38:05 +02:00