Re: [Dovecot] Adding ", S=size" to new message files when using "dirsize"
On Tue, 2007-03-20 at 11:52 -0700, Rich, Whidbey Telecom wrote: > > > Dirsize was never meant to be used with maildir. Why do you want > to > > use it instead of maildir++ quota? > > We'd like to use maildir++ in the future, but haven't tested it yet > with our MTA (which uses "dirsize"-like summing). We realize > "dirsize is a really bad idea with maildirs" so don't prefer it, but > it's been working OK in the meantime. If it could just enable > tagging appended files too, it might at least be an option for > maildir? I just fear that if I do that, some people would actually use maildir +dirsize combination without realizing how horribly slow it is.. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Adding ", S=size" to new message files when using "dirsize"
On Mar 19, 2007, at 4:46 PM, Timo Sirainen wrote: On 20.3.2007, at 1.37, Rich, Whidbey Telecom wrote: However, Dovecot only seems to do that when the "maildir" quota plugin is specified (from "quota-maildir.c"): Yep. Shouldn't "save_size_in_filename" be included in "quota- dirsize.c", since "dirsize" is the one that actually needs "S="? Dirsize was never meant to be used with maildir. Why do you want to use it instead of maildir++ quota? We'd like to use maildir++ in the future, but haven't tested it yet with our MTA (which uses "dirsize"-like summing). We realize "dirsize is a really bad idea with maildirs" so don't prefer it, but it's been working OK in the meantime. If it could just enable tagging appended files too, it might at least be an option for maildir? Rich smime.p7s Description: S/MIME cryptographic signature
Re: [Dovecot] Adding ", S=size" to new message files when using "dirsize"
On 20.3.2007, at 1.37, Rich, Whidbey Telecom wrote: However, Dovecot only seems to do that when the "maildir" quota plugin is specified (from "quota-maildir.c"): Yep. Shouldn't "save_size_in_filename" be included in "quota-dirsize.c", since "dirsize" is the one that actually needs "S="? Dirsize was never meant to be used with maildir. Why do you want to use it instead of maildir++ quota? PGP.sig Description: This is a digitally signed message part
[Dovecot] Adding ", S=size" to new message files when using "dirsize"
When APPENDing new message files to an IMAP Maildir, Dovecot 1.0 rc27 can be configured to add ",S=size" to the filename. That allows it to be calculated with the "dirsize" quota plugin (and MTA's such as Exim). However, Dovecot only seems to do that when the "maildir" quota plugin is specified (from "quota-maildir.c"): /* For newly generated filenames add ,S=size. */ storage->save_size_in_filename = TRUE; Shouldn't "save_size_in_filename" be included in "quota-dirsize.c", since "dirsize" is the one that actually needs "S="? Maybe I'm missing something? Here're some relevant parts of our test config: -- mail_location = maildir:/var/mail/%u/Maildir:INDEX=MEMORY maildir_copy_with_hardlinks = yes maildir_copy_preserve_filename = yes protocol imap { mail_executable = /usr/local/libexec/dovecot/rawlog /usr/local/ libexec/dovecot/imap mail_plugins = quota imap_quota imap_client_workarounds = delay-newmail outlook-idle } plugin { quota = dirsize:storage=10240 } -- Thanks! Rich smime.p7s Description: S/MIME cryptographic signature