[Dovecot] feature request: maildirquota
Hope maildirquota++ is soon supported, without it, dovecot is useless in my use (mail hosting with maildirquotas).
Also QUOTA cabability in dovecot is needed to get to use my webmail plugins that use a001 CAPABILITY to get quota support. Courier imapd supports this.
--snippet from quota usage plugin to squirrelmail-- function sqimap_get_quota ($imap_stream, $mailbox) { if (check_quota_capability($imap_stream, "QUOTA")) { fputs ($imap_stream, "a001 GETQUOTAROOT \"$mailbox\"\r\n"); $read_ary = sqimap_read_data ($imap_stream, 'a001', true, $result, $message); for ($i = 0; $i < count($read_ary); $i++) { if (ereg("STORAGE", $read_ary[$i])) { $tempusage = ereg_replace("^.*[(]STORAGE +(.*)[)].*$", "\\1", $read_ary[$i]); $usagearray = explode(" ", $tempusage); return $usagearray[0].":".$usagearray[1]; } } } return "NOQUOTA"; }
function check_quota_capability($imap_stream, $capability) { global $imap_general_debug;
fputs ($imap_stream, "a001 CAPABILITY\r\n");
$read_ary = sqimap_read_data($imap_stream, 'a001', true, $a, $b);
for($i = 0; $i < count($read_ary); $i++) {
if (ereg("QUOTA", $read_ary[$i]))
return TRUE;
}
return false;
}
-- end snippet--
-- Eero
On Fri, 2003-09-19 at 11:04, Eero Volotinen wrote:
Hope maildirquota++ is soon supported, without it, dovecot is useless in my use (mail hosting with maildirquotas).
I don't really have plans to write quota support before 1.0. It will be done via plugin anyway (which can be compiled into binary), and it's already possible to write such plugin for CVS Dovecot. Or almost, there's a small problem with calculating quota correctly when saving new mails via IMAP, but that will be fixed hopefully sooner than later :)
There's an example quota plugin if someone wants to write the real thing. Just fill the i_warning() calls with real quota calculations:
Timo Sirainen <tss@iki.fi> writes:
I don't really have plans to write quota support before 1.0. It will be done via plugin anyway (which can be compiled into binary), and it's already possible to write such plugin for CVS Dovecot. Or almost, there's a small problem with calculating quota correctly when saving new mails via IMAP, but that will be fixed hopefully sooner than later :)
Using *real* user accounts and *file system* quotas should work today, and should be bullet-proof on sane operating systems.
I wouldn't place any bets on Linux quota code though. ;-)
-- Matthias Andree
Encrypt your mail: my GnuPG key ID is 0x052E7D95
participants (3)
-
Eero Volotinen
-
Matthias Andree
-
Timo Sirainen