From mboxrd@z Thu Jan 1 00:00:00 1970 From: marcus-sup@bar-coded.net (Marcus Williams) Date: Wed, 23 Jan 2008 09:59:54 +0000 Subject: [sup-talk] [PATCH] modulo the file size in a maildir, so it's <= 7 digits. In-Reply-To: <1201065536-sup-7142@south> References: <1200646334-sup-3256@archie> <1200970931-sup-8284@south> <1201034511-sup-3452@tomsk> <1201065536-sup-7142@south> Message-ID: <1201081580-sup-6798@tomsk> On 23.1.2008, William Morgan wrote: > Reformatted excerpts from Marcus Williams's message of 2008-01-22: > > :) Why do you use mtime + filesize rather than just the filename > > (before the colon) as the id? Other than the flags on files (after the > > colon) does this ever change? > > Exactly the type of question man was not meant to ask. :) > The terrible part about this solution, of course, is that Sup can't > uniquely represent two messages that have the same mtime and the same > size. One day I'm sure this will cause pain. If you store the id in the ferret index, is it quick enough just to use ferret to tell you if its there? That way an id could be a string and could be tracked by the source via ferret (a source would just have to guarantee its unique when combined with the source id). Off on a slight tangent - I cant get any maildir working with sup here. I added a maildir to my sources list and it gets scanned as expected but nothing gets into the index. I'm wondering whether this is as a result of the id function. Marcus