Ofer Inbar: > > Postfix hash_queue_names uses one-character (letter or digit) > > directory names. This is sufficient to implement a tree. > > > > Current queue file names are longer than 1, because they have two > > parts (inode number and time). > > Thanks! > > > A future queue implementation may use a different organization: > > one tree that combines incoming, active and deferred, with file > > names that are cryptograpically unique, and without rename() > > operations, but some other mechanism to keep track of state > > so that we can eliminate reading directories. > > Would such a theoretical queue implementation provide a simple way to > ask postfix how many items are in each queue?
That state is kept in "some other mechanism" as mentioned above. Sendmail X uses Berkeley DB. I would not trust any of the UNIX user-level "databases" for that purpose. Wietse