]> git.cworth.org Git - sup/commit
fixed off-by-one error in imap.rb and maildir.rb
authorChristopher Warrington <chrisw@rice.edu>
Mon, 3 Mar 2008 08:00:33 +0000 (02:00 -0600)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Wed, 26 Mar 2008 16:03:25 +0000 (09:03 -0700)
commita828cc9542555d1c6fba0b3ade3b4a9ae16681dc
tree95412cbec3cc149b299380d01f14c2828ab90e0a
parent0fdf24ead3975a91254ef0941519de9fefb0aae1
fixed off-by-one error in imap.rb and maildir.rb

The end_offset reported by imap and maildir sources was incorrect if there was
only one message in the source. Since end_offset is exclusive, we must add one to
the last known id to get include all valid message ids in the range.
lib/sup/imap.rb
lib/sup/maildir.rb