From: Dan Callaghan <dan@bl2.djc.id.au>
To: sup-commits@supmua.dev
Subject: [sup.git] 02/08: sup-sync-back-maildir: remove broken negative short options
Date: Sat, 28 Nov 2026 17:13:37 +1100 [thread overview]
Message-ID: <20261128061335.610702D45CB@bl2.djc.id.au> (raw)
In-Reply-To: <179584641514.302139.17817016268117078700@bl2.djc.id.au>
New commit on branch develop:
https://supmua.dev/git/sup/commit/89ac0a7fd8a9da8cc5627b6423ea144bd0962f08.html
commit 89ac0a7fd8a9da8cc5627b6423ea144bd0962f08
Author: Dan Callaghan <djc@djc.id.au>
AuthorDate: Sat Nov 21 11:24:14 2026 +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.
---
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
index 1eeb9a34..5199806a 100755
--- 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
next prev parent reply other threads:[~2026-11-28 6:13 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-28 6:13 [sup.git] branch develop updated (ce27c933 -> 53f07beb) Dan Callaghan
2026-11-28 6:13 ` [sup.git] 01/08: delete dead report_broken_sources method Dan Callaghan
2026-11-28 6:13 ` Dan Callaghan [this message]
2026-11-28 6:13 ` [sup.git] 03/08: show both raw and encoded sizes of attachments Dan Callaghan
2026-11-28 6:13 ` [sup.git] 04/08: shell escape bounce destination addresses Dan Callaghan
2026-11-28 6:13 ` [sup.git] 05/08: call setlocale() through ncurses bindings instead of fiddle Dan Callaghan
2026-11-28 6:13 ` [sup.git] 06/08: use libmagic to detect attachment MIME types Dan Callaghan
2026-11-28 6:13 ` [sup.git] 07/08: clean up directory traversal in Maildir#poll Dan Callaghan
2026-11-28 6:13 ` [sup.git] 08/08: bring back sup-recover-sources from the dead Dan Callaghan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261128061335.610702D45CB@bl2.djc.id.au \
--to=dan@bl2.djc.id.au \
--cc=djc@djc.id.au \
--cc=sup-commits@supmua.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox