[Dovecot] Dovecot IMAP not putting size in maildir filenames
I notice that when you move a message from one maildir folder to another, Dovecot drops the size information ("S=") from the filename. Dovecot also does not add the size info to filenames after it gets it via stat().
Shouldn't Dovecot add the size info to the filename so that "maildirsize" recalculations are fast?
Bill
On Fri, 2006-05-05 at 15:34 -0400, Bill Boebel wrote:
I notice that when you move a message from one maildir folder to another, Dovecot drops the size information ("S=") from the filename.
I guess it should do that.. Although I'd like it to be optional in some way. Perhaps it could be done only if quota plugin is loaded.
Dovecot also does not add the size info to filenames after it gets it via stat().
But I don't think it should do this, because the file's base name changes then which I think is a bad thing. Does Courier do it?
On May 5, 2006, at 1:47 PM, Timo Sirainen wrote:
On Fri, 2006-05-05 at 15:34 -0400, Bill Boebel wrote:
I notice that when you move a message from one maildir folder to
another, Dovecot drops the size information ("S=") from the filename.I guess it should do that.. Although I'd like it to be optional in
some way. Perhaps it could be done only if quota plugin is loaded.
That would be great! We already noticed Dovecot saves time by
reading "S=" filename extensions written by Exim, but they're
currently removed when IMAP messages are moved (or new mail is
uploaded).
If Dovecot could add "S=" to uploaded and moved messages, it would
save even more stat() time, and Exim could figure all the messages
into its quota checks.
On Fri, May 5, 2006 16:47, Timo Sirainen said:
On Fri, 2006-05-05 at 15:34 -0400, Bill Boebel wrote:
I notice that when you move a message from one maildir folder to another, Dovecot drops the size information ("S=") from the filename.
I guess it should do that.. Although I'd like it to be optional in some way. Perhaps it could be done only if quota plugin is loaded.
That sounds like the right way to handle this.
Dovecot also does not add the size info to filenames after it gets it via stat().
But I don't think it should do this, because the file's base name changes then which I think is a bad thing. Does Courier do it?
I tested with Courier, and it adds the size ("S=") to the file name when moving mail from folder to folder, and from one IMAP account to another. But Courier does not add the size to the file name when it does a stat() on an existing file that does not already have it in the name.
Bill
On May 5, 2006, at 1:47 PM, Timo Sirainen wrote:
On Fri, 2006-05-05 at 15:34 -0400, Bill Boebel wrote:
I notice that when you move a message from one maildir folder to
another, Dovecot drops the size information ("S=") from the filename.I guess it should do that.. Although I'd like it to be optional in
some way. Perhaps it could be done only if quota plugin is loaded.
Any chance this is still on the to-do radar, or anyone picked it up?
Rich
On Fri, May 05, 2006 at 11:47:55PM +0300, Timo Sirainen wrote:
On Fri, 2006-05-05 at 15:34 -0400, Bill Boebel wrote:
I notice that when you move a message from one maildir folder to another, Dovecot drops the size information ("S=") from the filename.
I guess it should do that.. Although I'd like it to be optional in some way. Perhaps it could be done only if quota plugin is loaded.
we use Exim's ability to read the message sizes from the filenames to enforce quota at delivery time, so I would be in favour of having this be a configuration option regardless of the Dovecot quota plugin (which we do not use).
grant.
participants (4)
-
Bill Boebel
-
grant beattie
-
richs@whidbey.net
-
Timo Sirainen