dovecot-2.1: lib-settings: Support also "seconds" and "minutes" ...
dovecot at dovecot.org
dovecot at dovecot.org
Wed May 29 12:45:13 EEST 2013
details: http://hg.dovecot.org/dovecot-2.1/rev/d16581e2d7cf
changeset: 14972:d16581e2d7cf
user: Timo Sirainen <tss at iki.fi>
date: Wed May 29 12:44:15 2013 +0300
description:
lib-settings: Support also "seconds" and "minutes" (instead of just secs/mins)
diffstat:
src/lib-settings/settings-parser.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r 22c5aff7b25c -r d16581e2d7cf src/lib-settings/settings-parser.c
--- a/src/lib-settings/settings-parser.c Tue May 28 18:18:45 2013 +0300
+++ b/src/lib-settings/settings-parser.c Wed May 29 12:44:15 2013 +0300
@@ -354,12 +354,14 @@
switch (i_toupper(*p)) {
case 'S':
multiply = 1;
- if (strncasecmp(p, "secs", strlen(p)) == 0)
+ if (strncasecmp(p, "secs", strlen(p)) == 0 ||
+ strncasecmp(p, "seconds", strlen(p)) == 0)
p = "";
break;
case 'M':
multiply = 60;
- if (strncasecmp(p, "mins", strlen(p)) == 0)
+ if (strncasecmp(p, "mins", strlen(p)) == 0 ||
+ strncasecmp(p, "minutes", strlen(p)) == 0)
p = "";
break;
case 'H':
More information about the dovecot-cvs
mailing list