[dovecot-cvs] dovecot/src/lib-storage mail-storage.c,1.64,1.65
tss at dovecot.org
tss at dovecot.org
Sun Dec 3 18:53:48 UTC 2006
- Previous message: [dovecot-cvs] dovecot/src/auth passdb-pam.c,1.43,1.44
- Next message: [dovecot-cvs] dovecot/src/plugins/quota Makefile.am, 1.6.2.2, 1.6.2.3 quota-count.c, NONE, 1.1.2.1 quota-dict.c, 1.9.2.6, 1.9.2.7 quota-private.h, 1.7.2.3, 1.7.2.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /var/lib/cvs/dovecot/src/lib-storage
In directory talvi:/tmp/cvs-serv13791
Modified Files:
mail-storage.c
Log Message:
Don't call mail_storage_created hook twice.
Index: mail-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/mail-storage.c,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -d -r1.64 -r1.65
--- mail-storage.c 25 Nov 2006 22:17:41 -0000 1.64
+++ mail-storage.c 3 Dec 2006 18:53:45 -0000 1.65
@@ -184,19 +184,18 @@
flags |= MAIL_STORAGE_FLAG_NO_AUTODETECTION;
name = t_strdup_until(data, p);
- storage = mail_storage_create(name, p+1, user, flags,
- lock_method);
+ return mail_storage_create(name, p+1, user, flags, lock_method);
+ }
+
+ storage = mail_storage_autodetect(data, flags);
+ if (storage == NULL) {
+ i_error("Ambiguous mail location setting, "
+ "don't know what to do with it: %s "
+ "(try prefixing it with mbox: or maildir:)",
+ data);
} else {
- storage = mail_storage_autodetect(data, flags);
- if (storage == NULL) {
- i_error("Ambiguous mail location setting, "
- "don't know what to do with it: %s "
- "(try prefixing it with mbox: or maildir:)",
- data);
- } else {
- storage = storage->v.create(data, user, flags,
- lock_method);
- }
+ storage = storage->v.create(data, user, flags,
+ lock_method);
}
if (hook_mail_storage_created != NULL && storage != NULL)
- Previous message: [dovecot-cvs] dovecot/src/auth passdb-pam.c,1.43,1.44
- Next message: [dovecot-cvs] dovecot/src/plugins/quota Makefile.am, 1.6.2.2, 1.6.2.3 quota-count.c, NONE, 1.1.2.1 quota-dict.c, 1.9.2.6, 1.9.2.7 quota-private.h, 1.7.2.3, 1.7.2.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list