sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 3a7ab71ea7e7041dba6abd40da6215ecaba1303b
parent 2c0bc997ecf7faa8aad3aa740624aa50473dc2c4
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date:   Mon,  4 Jun 2007 04:35:50 +0000

bugfix: empty labels for sup-config

git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@432 5c8cc53c-5e98-4d25-b20a-d8db53a31250

Diffstat:
M bin/sup-config | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bin/sup-config b/bin/sup-config
@@ -78,7 +78,7 @@ def add_source
         return if srv.nil? || srv.empty?
         $last_server = srv
 
-        fn = axe "What's the full path to the mbox file?", $last_fn #" stupid ruby-mode
+        fn = axe "What's the path to the mbox file?", $last_fn #" stupid ruby-mode
         return if fn.nil? || fn.empty?
         $last_fn = fn
         fn = "/#{fn}" # lame
@@ -133,7 +133,7 @@ def add_source
     cmd = build_cmd "sup-add"
     cmd += " --unusual" unless usual
     cmd += " --archive" if archive
-    cmd += " --labels=#{labels.join(',')}" if labels
+    cmd += " --labels=#{labels.join(',')}" if labels && !labels.empty?
     cmd += " #{uri}"
 
     puts "Ok, trying to run \"#{cmd}\"..."