poll: fix message update vs. already-imported detection
authorSascha Silbe <sascha-pgp@silbe.org>
Tue, 18 Jan 2011 18:24:27 +0000 (19:24 +0100)
committerRich Lane <rlane@club.cc.cmu.edu>
Wed, 19 Jan 2011 03:21:19 +0000 (19:21 -0800)
commitd28973ca33f219614fb416dffb3df226ee32c958
treecc1e83f08916f9c8aa528769a5ec3c5b43f1868e
parentf7f1f6e0600b52c03ab4a513b2ff14921ff3f58b
poll: fix message update vs. already-imported detection

poll_from prepends existing locations to the "new" message, so we can't use
just the first location.

While using the last location would work, calculating the difference should be
fast and is more robust in the face of future changes to poll_from.

Signed-off-by: Sascha Silbe <sascha-pgp@silbe.org>
lib/sup/poll.rb