Paul Jarc <[EMAIL PROTECTED]> wrote:
>
> <URL:http://cr.yp.to/proto/maildir.html> says:
> # If you're delivering several messages from one process, use
> # starttime.pid_count.host, where starttime is the time that your
> # process started, and count is the number of messages you've
> # delivered.
>
> In my case, the program doing deliveries is a long-running UI program.
> It's likely there will be long intervals between deliveries from the
> same process. Is there any reason I shouldn't update the timestamp
> for each delivery, so the filename-sorting works? In case there are
> multiple deliveries close to each other, I'll still use _count, but I
> could reset it each time the timestamp changes.
I'm actually curious why djb specified this as the process start time,
rather than the current time. I see no obvious advantage to using the
start time, and as the PID and count are encoded, it would not appear to
have any affect on the possibility of collisions.
Personally, I would lean to using the current time instead of start
time, and would not bother with resetting count; it has no harmful
effects.
Anybody see any problems with that?
Charles
--
-----------------------------------------------------------------------
Charles Cazabon <[EMAIL PROTECTED]>
GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/
-----------------------------------------------------------------------