[PATCH 4/5] Don't make Blinkenlight statuschar configurable

Sebastian Spaeth Sebastian at SSpaeth.de
Sun Aug 14 08:42:20 UTC 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>
---
 offlineimap.conf         |    4 ----
 offlineimap/ui/Curses.py |    2 +-
 2 files changed, 1 insertions(+), 5 deletions(-)

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