dovecot-2.0: config: Added support for protocol !name {}
dovecot at dovecot.org
dovecot at dovecot.org
Thu Jan 28 23:14:55 EET 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/25c1ed070b3c
changeset: 10603:25c1ed070b3c
user: Timo Sirainen <tss at iki.fi>
date: Thu Jan 28 23:14:52 2010 +0200
description:
config: Added support for protocol !name {}
diffstat:
1 file changed, 8 insertions(+), 2 deletions(-)
src/config/config-filter.c | 10 ++++++++--
diffs (20 lines):
diff -r de1bf8a51556 -r 25c1ed070b3c src/config/config-filter.c
--- a/src/config/config-filter.c Thu Jan 28 23:08:32 2010 +0200
+++ b/src/config/config-filter.c Thu Jan 28 23:14:52 2010 +0200
@@ -17,8 +17,14 @@ bool config_filter_match(const struct co
if (mask->service != NULL) {
if (filter->service == NULL)
return FALSE;
- if (strcmp(filter->service, mask->service) != 0)
- return FALSE;
+ if (mask->service[0] == '!') {
+ /* not service */
+ if (strcmp(filter->service, mask->service + 1) == 0)
+ return FALSE;
+ } else {
+ if (strcmp(filter->service, mask->service) != 0)
+ return FALSE;
+ }
}
if (mask->local_host != NULL) {
if (filter->local_host == NULL)
More information about the dovecot-cvs
mailing list