[Dovecot] /var/spool/mail directory size and subdirectories

Johannes Berg johannes at sipsolutions.net
Wed Jul 19 20:01:23 EEST 2006


On Wed, 2006-07-19 at 17:37 +0100, David Lee wrote:

> Both "2345" and "12345" need to map onto the same result: "45".  But I
> gather (although I'm new to dovecot) that the "%3.2i" notation acts on the
> uid as a string rather than as a number, therefore would yield different
> values.

Yeah, that's right, it acts on a string and on 2345 just returns '5'.

> Background: This exercise is to do a minimally invasive black-box
> replacement of UW-IMAP with Dovecot.  We are trying to avoid any major
> reworking of our directory structure.

Makes sense.

> Perhaps I should further investigate the "%H"-like stuff (which seems to
> be hex rather than base-10) to see whether I can do a generalised
> extension which could enable a base-10 modulo thing, including leading
> zeroes.  Or a "final n-char substring" thing.  (Naturally, I'd take
> advice, and would hope to feed back any patch.)

Give me a minute, I'm just testing a small patch.

johannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 828 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20060719/83da9aa8/attachment.pgp 


More information about the dovecot mailing list