[dovecot-cvs] dovecot/src/lib-mail message-size.c,1.15,1.15.2.1
tss at dovecot.org
tss at dovecot.org
Fri Apr 6 12:21:19 EEST 2007
Update of /var/lib/cvs/dovecot/src/lib-mail
In directory talvi:/tmp/cvs-serv21617
Modified Files:
Tag: branch_1_0
message-size.c
Log Message:
If message body started with a LF, we didn't count it into number of lines.
This made BODY and BODYSTRUCTURE replies give wrong line counts for such
messages.
Index: message-size.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-mail/message-size.c,v
retrieving revision 1.15
retrieving revision 1.15.2.1
diff -u -d -r1.15 -r1.15.2.1
--- message-size.c 13 Jan 2006 20:26:16 -0000 1.15
+++ message-size.c 6 Apr 2007 09:21:16 -0000 1.15.2.1
@@ -76,8 +76,10 @@
if (i_stream_read_data(input, &msg, &size, 0) <= 0)
return;
- if (msg[0] == '\n')
+ if (msg[0] == '\n') {
missing_cr_count++;
+ body->lines++;
+ }
do {
for (i = 1; i < size; i++) {
More information about the dovecot-cvs
mailing list