]> git.cworth.org Git - sup/commit
make sup-sync's --start-at actually useful
authorWilliam Morgan <wmorgan-sup@masanjin.net>
Mon, 4 May 2009 12:29:54 +0000 (05:29 -0700)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Mon, 4 May 2009 12:29:54 +0000 (05:29 -0700)
commitde8e4e9c60e0b30186c1638b5ee9da9480242feb
tree1bcd95cab0d4c42b24ab9931ed3abca78a83d338
parent4f20ab55d1b6b609562a18b86bf87ce4c77c36a7
make sup-sync's --start-at actually useful

Using --start-at with sup-sync will now seek forward to the next valid message
if given an offset that's not on a message boundary. This makes it possible to
use that option without going through the laborious process of finding the
exact message boundary.

Also die unless --start-at is used with only one source, since using it across
multiple sources is almost definitely an error. (And if that's really what you
want, you can just call sup-sync multiple times.)
bin/sup-sync
lib/sup/mbox/loader.rb