sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit a5e89b54499fd03162b840b3bd6afd1fe671db33
parent bf0887d8dedb30af2ab4bfd50ccc931b21c297a4
Author: Eric Weikl <eric.weikl@gmx.net>
Date:   Thu, 10 Oct 2013 14:55:49 +0200

Handle missing sync-back-ok in sup-sync-back-maildir

The script sup-sync-back-maildir was also not handling a missing sync file
gracefully.

Diffstat:
M bin/sup-sync-back-maildir | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/bin/sup-sync-back-maildir b/bin/sup-sync-back-maildir
@@ -55,7 +55,8 @@ index.load
 $config[:sync_back_to_maildir] = true
 
 begin
-  sync_performed = File.readlines Redwood::SYNC_OK_FN
+  sync_performed = []
+  sync_performed = File.readlines Redwood::SYNC_OK_FN if File.exists? Redwood::SYNC_OK_FN
   sources = []
 
   ## Try to find out sources given in parameters