]> git.cworth.org Git - sup/blobdiff - bin/sup-sync-back
fix parsing of encrypted messages that contain further multipart elements
[sup] / bin / sup-sync-back
index adadcb34f03e19e5718ed5c8b8f07583549dc16f..6298c97c3e6190e8704ff2cd1333843f09511fea 100755 (executable)
@@ -65,8 +65,8 @@ EOS
 end
 
 Redwood::start
-index = Redwood::Index.new
-index.lock_or_die
+index = Redwood::Index.init
+index.lock_interactively or exit
 
 deleted_fp, spam_fp = nil
 unless opts[:dry_run]
@@ -108,7 +108,7 @@ EOS
 
     source.reset!
     num_dropped = num_moved = num_scanned = 0
-    
+
     out_fp = Tempfile.new "sup-sync-back-#{source.id}"
     Redwood::PollManager.each_message_from source do |m|
       num_scanned += 1