sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 89ac0a7fd8a9da8cc5627b6423ea144bd0962f08
parent 192c6873dbf8d16cdea849a601cbe2614743ff8a
Author: Dan Callaghan <djc@djc.id.au>
Date:   Sat, 21 Nov 2026 11:24:14 +1100

sup-sync-back-maildir: remove broken negative short options

Optimist treats boolean flags whose names begin with no_ specially:
https://github.com/ManageIQ/optimist/blob/v3.2.1/FAQ.txt#L86

For such options the short flag does not have the expected effect (it
sets the value to false not true) and there does not seem to be any
reasonable way to fix it. Just delete the short flag for these options.

Diffstat:
M bin/sup-sync-back-maildir | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/bin/sup-sync-back-maildir b/bin/sup-sync-back-maildir
@@ -22,8 +22,8 @@ have an e-mail file like this: foo_bar:2,FRS (flags are favorite,
 replied, seen) and its Xapian entry has labels 'starred', the merge
 operation will add the 'replied' label to the Xapian entry.
 
-If you choose not to merge (-m) you will lose information ('replied'), and in
-the previous example the file will be renamed to foo_bar:2,FS.
+If you choose not to merge (--no-merge) you will lose information ('replied'),
+and in the previous example the file will be renamed to foo_bar:2,FS.
 
 Running this script is *strongly* recommended when setting the
 "sync_back_to_maildir" option from false to true in config.yaml or changing the
@@ -38,8 +38,8 @@ sync back using the configuration parameter sync_back = false in sources.yaml.
 
 Options include:
 EOS
-  opt :no_confirm, "Don't ask for confirmation before synchronizing", :default => false, :short => "n"
-  opt :no_merge, "Don't merge new supported Maildir flags (R and P)", :default => false, :short => "m"
+  opt :no_confirm, "Don't ask for confirmation before synchronizing", :default => false, :short => :none
+  opt :no_merge, "Don't merge new supported Maildir flags (R and P)", :default => false, :short => :none
   opt :list_sources, "List your Maildir sources and exit", :default => false, :short => "l"
   opt :unusual_sources_too, "Sync unusual sources too if no specific source information is given", :default => false, :short => "u"
 end