[PATCHv2 2/2] Don't make Blinkenlight statuschar configurable
Sebastian Spaeth
Sebastian at SSpaeth.de
Mon Aug 15 08:59:56 BST 2011
Allowing to specify the char to use in the BLinkenlights is a bit over
the top and bloats our default offlineimap.conf. The dot is just fine,
so let us settle for it and cut the example config file by an unneeded
section.
Signed-off-by: Sebastian Spaeth <Sebastian at SSpaeth.de>
---
v2 of the patch now with Changelog entry.
Changelog.draft.rst | 3 +++
offlineimap.conf | 4 ----
offlineimap/ui/Curses.py | 2 +-
3 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/Changelog.draft.rst b/Changelog.draft.rst
index 6b5b18e..96558c5 100644
--- a/Changelog.draft.rst
+++ b/Changelog.draft.rst
@@ -23,6 +23,9 @@ Changes
* Refactor our IMAPServer class. Background work without user-visible
changes.
+* Remove the configurability of the Blinkenlights statuschar. It
+ cluttered the main configuration file for little gain.
+
Bug Fixes
---------
diff --git a/offlineimap.conf b/offlineimap.conf
index 2a4b1a2..8cc2882 100644
--- a/offlineimap.conf
+++ b/offlineimap.conf
@@ -141,10 +141,6 @@ footer = "\n"
# Note that this filter can be used only to further restrict mbnames
# to a subset of folders that pass the account's folderfilter.
-[ui.Curses.Blinkenlights]
-# Character used to indicate thread status.
-
-statuschar = .
##################################################
# Accounts
diff --git a/offlineimap/ui/Curses.py b/offlineimap/ui/Curses.py
index 9e0b9d5..afe3acb 100644
--- a/offlineimap/ui/Curses.py
+++ b/offlineimap/ui/Curses.py
@@ -230,7 +230,7 @@ class CursesThreadFrame:
if self.getcolor() == 'black':
self.window.addstr(self.y, self.x, ' ', self.color)
else:
- self.window.addstr(self.y, self.x, self.ui.config.getdefault("ui.Curses.Blinkenlights", "statuschar", '.'), self.color)
+ self.window.addstr(self.y, self.x, '.', self.color)
self.c.stdscr.move(self.c.height - 1, self.c.width - 1)
self.window.refresh()
self.c.locked(lockedstuff)
--
1.7.4.1
More information about the OfflineIMAP-project
mailing list