Rich, Whidbey Telecom
2007-Mar-19 23:37 UTC
[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 -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2417 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20070319/4a807753/attachment-0002.bin>
Timo Sirainen
2007-Mar-19 23:46 UTC
[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? -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20070320/40d01449/attachment.bin>