Commit notifications for all Sup repositories
 help / color / mirror / Atom feed
From: Dan Callaghan <dan@bl2.djc.id.au>
To: sup-commits@supmua.dev
Subject: [sup.git] 03/04: sup-sync: handle message updates
Date: Sat, 31 Oct 2026 20:01:15 +1100	[thread overview]
Message-ID: <20261031090112.CDDCA2C728B@bl2.djc.id.au> (raw)
In-Reply-To: <179343727252.62525.6154116323776963401@bl2.djc.id.au>

New commit on branch develop:
https://supmua.dev/git/sup/commit/8335e911073a02f2aedb4790540f70d6df81fb58.html

commit 8335e911073a02f2aedb4790540f70d6df81fb58
Author: Dan Callaghan <djc@djc.id.au>
AuthorDate: Sat Oct 31 19:13:20 2026 +1100

    sup-sync: handle message updates
    
    Fixes #169.
---
 bin/sup-sync | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/bin/sup-sync b/bin/sup-sync
index ee939332..7238442e 100755
--- a/bin/sup-sync
+++ b/bin/sup-sync
@@ -126,7 +126,7 @@ begin
       if action == :delete
         num_deleted += 1
         puts "Deleting #{m.id}" if opts[:verbose]
-      elsif action == :add
+      elsif action == :add || action == :update
         seen[m.id] = true
 
         ## tweak source labels according to commandline arguments if necessary
@@ -174,7 +174,6 @@ begin
           puts "Changing flags for #{source}##{m.source_info} from #{old_m.labels} to #{m.labels}" if opts[:verbose]
           num_updated += 1
         end
-      else fail "sup-sync cannot handle :update's"
       end
 
       if Time.now - last_info_time > PROGRESS_UPDATE_INTERVAL

  parent reply	other threads:[~2026-10-31  9:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-31  9:01 [sup.git] branch develop updated (ce4fb685 -> 1cfa015a) Dan Callaghan
2026-10-31  9:01 ` [sup.git] 01/04: Add sent-save-to hook Dan Callaghan
2026-10-31  9:01 ` [sup.git] 02/04: tweak sent-save-to hook doc for clarity Dan Callaghan
2026-10-31  9:01 ` Dan Callaghan [this message]
2026-10-31  9:01 ` [sup.git] 04/04: clean up dead conditional in PollManager#poll_from 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=20261031090112.CDDCA2C728B@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