From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by bl2.djc.id.au (Postfix, from userid 1000) id CDDCA2C728B; Sat, 31 Oct 2026 20:01:12 +1100 (AEDT) Date: Sat, 31 Oct 2026 20:01:15 +1100 To: sup-commits@supmua.dev Subject: [sup.git] 03/04: sup-sync: handle message updates MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Reply-To: Dan Callaghan In-Reply-To: <179343727252.62525.6154116323776963401@bl2.djc.id.au> References: <179343727252.62525.6154116323776963401@bl2.djc.id.au> Thread-Index: AQAAEjRWarHkiHxBQMWzVJUEI8076g== X-Git-Host: bl2.djc.id.au X-Git-Repo: sup.git X-Git-Refname: refs/heads/develop X-Git-Reftype: branch X-Git-Rev: 8335e911073a02f2aedb4790540f70d6df81fb58 X-Git-NotificationType: diff X-Git-Multimail-Version: 1.7.dev Auto-Submitted: auto-generated Message-Id: <20261031090112.CDDCA2C728B@bl2.djc.id.au> From: Dan Callaghan List-Id: New commit on branch develop: https://supmua.dev/git/sup/commit/8335e911073a02f2aedb4790540f70d6df81fb58.html commit 8335e911073a02f2aedb4790540f70d6df81fb58 Author: Dan Callaghan 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