[dovecot-cvs] dovecot/src/deliver deliver.c,1.49,1.50
tss at dovecot.org
tss at dovecot.org
Mon Feb 19 14:27:20 UTC 2007
Update of /var/lib/cvs/dovecot/src/deliver
In directory talvi:/tmp/cvs-serv4982
Modified Files:
deliver.c
Log Message:
Get pop3_uidl_format even if it's inside protocol pop3 {}
Index: deliver.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/deliver/deliver.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- deliver.c 16 Feb 2007 13:12:10 -0000 1.49
+++ deliver.c 19 Feb 2007 14:27:17 -0000 1.50
@@ -189,7 +189,7 @@
struct istream *input;
const char *key, *value;
char *line, *p, quote;
- int fd, sections = 0, lda_section = FALSE;
+ int fd, sections = 0, lda_section = FALSE, pop3_section = FALSE;
size_t len;
fd = open(path, O_RDONLY);
@@ -237,21 +237,27 @@
if (strcmp(line, "protocol lda {") == 0 ||
strcmp(line, "plugin {") == 0)
lda_section = TRUE;
+ if (strcmp(line, "protocol pop3 {") == 0)
+ pop3_section = TRUE;
sections++;
}
if (*line == '}') {
sections--;
lda_section = FALSE;
+ pop3_section = FALSE;
}
continue;
}
- if (sections > 0 && !lda_section)
- continue;
-
while (p > line && p[-1] == ' ') p--;
key = t_strdup_until(line, p);
+ if (sections > 0 && !lda_section) {
+ if (!pop3_section ||
+ strcmp(key, "pop3_uidl_format") != 0)
+ continue;
+ }
+
do {
value++;
} while (*value == ' ');
More information about the dovecot-cvs
mailing list