[dovecot-cvs] dovecot/src/plugins/quota Makefile.am, 1.6,
1.7 quota-maildir.c, 1.10, 1.11
cras at dovecot.org
cras at dovecot.org
Fri Jun 16 12:40:42 EEST 2006
- Previous message: [dovecot-cvs] dovecot/src/auth db-sql.c,1.7,1.8
- Next message: [dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-copy.c,
1.44, 1.45 maildir-mail.c, 1.23, 1.24 maildir-save.c, 1.71,
1.72 maildir-storage.h, 1.50, 1.51 maildir-util.c, 1.14, 1.15
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /var/lib/cvs/dovecot/src/plugins/quota
In directory talvi:/tmp/cvs-serv30783/plugins/quota
Modified Files:
Makefile.am quota-maildir.c
Log Message:
Add ",S=size" to maildir filenames when quota plugin is loaded with
Maildir++ backend.
Index: Makefile.am
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/quota/Makefile.am,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- Makefile.am 27 Apr 2006 12:30:05 -0000 1.6
+++ Makefile.am 16 Jun 2006 09:40:40 -0000 1.7
@@ -1,8 +1,11 @@
AM_CPPFLAGS = \
-I$(top_srcdir)/src/lib \
-I$(top_srcdir)/src/lib-dict \
+ -I$(top_srcdir)/src/lib-index \
-I$(top_srcdir)/src/lib-mail \
- -I$(top_srcdir)/src/lib-storage
+ -I$(top_srcdir)/src/lib-storage \
+ -I$(top_srcdir)/src/lib-storage/index \
+ -I$(top_srcdir)/src/lib-storage/index/maildir
lib01_quota_plugin_la_LDFLAGS = -module -avoid-version
Index: quota-maildir.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/quota/quota-maildir.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- quota-maildir.c 11 Jun 2006 17:39:04 -0000 1.10
+++ quota-maildir.c 16 Jun 2006 09:40:40 -0000 1.11
@@ -8,6 +8,7 @@
#include "read-full.h"
#include "write-full.h"
#include "str.h"
+#include "maildir-storage.h"
#include "quota-private.h"
#include <stdio.h>
@@ -552,8 +553,15 @@
static bool
maildir_quota_add_storage(struct quota_root *root __attr_unused__,
- struct mail_storage *storage __attr_unused__)
+ struct mail_storage *_storage)
{
+ if (strcmp(_storage->name, "maildir") == 0) {
+ struct maildir_storage *storage =
+ (struct maildir_storage *)_storage;
+
+ /* For newly generated filenames add ,S=size. */
+ storage->save_size_in_filename = TRUE;
+ }
return TRUE;
}
- Previous message: [dovecot-cvs] dovecot/src/auth db-sql.c,1.7,1.8
- Next message: [dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-copy.c,
1.44, 1.45 maildir-mail.c, 1.23, 1.24 maildir-save.c, 1.71,
1.72 maildir-storage.h, 1.50, 1.51 maildir-util.c, 1.14, 1.15
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list