From mboxrd@z Thu Jan 1 00:00:00 1970 From: its.jeff.balogh@gmail.com (Jeff Balogh) Date: Fri, 18 Jan 2008 03:58:33 -0500 Subject: [sup-talk] [PATCH] modulo the file size in a maildir, so it's <= 7 digits. Message-ID: <1200646334-sup-3256@archie> The size needs to be <= 7 digits to preserve sup's increasing id requirement. Otherwise, large messages (probably w/ attachments) have an id that is a magnitude larger than small messages. --- lib/sup/maildir.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/sup/maildir.rb b/lib/sup/maildir.rb index ba9da00..7b85383 100644 --- a/lib/sup/maildir.rb +++ b/lib/sup/maildir.rb @@ -144,7 +144,7 @@ private def make_id fn # use 7 digits for the size. why 7? seems nice. - sprintf("%d%07d", File.mtime(fn), File.size(fn)).to_i + sprintf("%d%07d", File.mtime(fn), File.size(fn) % 10000000).to_i end def with_file_for id -- 1.5.3.7