My understanding is that "moves" are normally implemented by adding a
hardlink to the same inode, and then removing the old one (IF the
destination is on the same file system). Otherwise, it works as a copy and
unlink chained together,


NEW IDEA:

Ok... so what about this then...

A directory can be opened and read from like a file... why not generate the
UID automatically from the index of the file entry in the directory itself.
It is autogenerating and maintaining, and should be just a simple to read,
but wouldn't require the rebuilds or maintenance to eliminate purged
messages...

Is there a reason that can't work? Would it be an improvement?

m/

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of James A
Baker
Sent: Monday, March 10, 2003 4:17 PM
To: [EMAIL PROTECTED]
Subject: Re: [courier-users] Re: imapd slow


Not to throw gas on the fire, but... Why not?

Can't courier do a rename while moving the file? (Isn't that exactly
the concept of a move? ...in Unices anyway, and typically any other OS
too?) It has to come up with the new UID anyway, why not just do so
before the move is done? -- Or at worst, after an initial move to a
temp file?

Yes, I know I'm talking out of my a**. I have no idea how courier
handles such things. But wouldn't it be possible... at least in theory?

Even if so, I can't really argue -- without some exp. at implementing
these things, and I have exactly "zero" -- as to whether it's a "Good
Idea(tm)" at all. ... E.g. Regenerating UID's might then require
renaming EVERY file in a folder. That's probably bad. ;) -- Although I
can see ways around even that with an intelligently organized naming
structure.

So, I'm just asking.

-jab


On Monday, Mar 10, 2003, at 16:42 US/Central, Sam Varshavchik wrote:

> Mitch \(WebCob\) writes:
>
>> Ok, so maybe I'm crazy, but couldn't the UID be generated in a
>> reversable
>> form from the filename itself? Thereby eliminating the database and
>> allowing
>> a message to keep it's UID across file moves?
>
> A UID is a numerical counter.  Some have advocated inserting the UID
> into the filename.  That's not going to work for a number of reasons
> (think moving a message to a different folder).



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to