sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 96762eafad16c9e1b5f404a18d2174c3101e105e
parent cabfa0a57a624a298fe736f61c031658872e9b8f
Author: Eric Weikl <eric.weikl@gmx.net>
Date:   Sat, 20 Apr 2013 20:47:07 +0200

Allow user to permanantly skip syncback

Sup will warn you each time it starts if maildir syncback was not
performed and ask if you really want to continue. If you just started
using sup, this can be annoying, since calling the syncback script is an
unnecessary hassle.

This adds a second question to turn off the startup nag.

Diffstat:
M lib/sup.rb | 5 +++++
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/lib/sup.rb b/lib/sup.rb
@@ -191,6 +191,11 @@ Please run "sup-sync-back-maildir -h" to see why it is useful.
 Are you really sure you want to continue? (y/N)
 EOS
       abort "Aborted" unless STDIN.gets.chomp.downcase == 'y'
+      $stderr.puts <<EOS
+
+Should I complain about this again? (Y/n)
+EOS
+      File.open(Redwood::SYNC_OK_FN, 'w') {|f| f.write("SKIPPED") } if STDIN.gets.chomp.downcase == 'n'
     elsif not $config[:sync_back_to_maildir] and File.exists? Redwood::SYNC_OK_FN
       File.delete(Redwood::SYNC_OK_FN)
     end