From: William Morgan Date: Fri, 25 Jan 2008 04:42:37 +0000 (-0800) Subject: sup-sync: don't save the index and sources if an error occurred X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;h=f2e3351e55e177818eab5c2e2099548b638111f4;p=sup sup-sync: don't save the index and sources if an error occurred If the error was caused by a particular message, saving the source file will move the pointer past the message, so it will never get added. --- diff --git a/bin/sup-sync b/bin/sup-sync index 0acb8ed..611afc4 100644 --- a/bin/sup-sync +++ b/bin/sup-sync @@ -238,7 +238,7 @@ rescue Exception => e File.open("sup-exception-log.txt", "w") { |f| f.puts e.backtrace } raise ensure - index.save + #index.save # actually, don't want to save! Redwood::finish index.unlock end