[dovecot-cvs] dovecot/src/lib-storage/index index-mail.c,1.85,1.86

cras at dovecot.org cras at dovecot.org
Sat Jul 23 10:52:08 EEST 2005


Update of /var/lib/cvs/dovecot/src/lib-storage/index
In directory talvi:/tmp/cvs-serv4854/lib-storage/index

Modified Files:
	index-mail.c 
Log Message:
If header wasn't already parsed when opening mail, we read the whole message
as its header and left body empty. Happened with maildir.



Index: index-mail.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/index-mail.c,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -d -r1.85 -r1.86
--- index-mail.c	4 Jul 2005 11:32:22 -0000	1.85
+++ index-mail.c	23 Jul 2005 07:52:06 -0000	1.86
@@ -456,8 +456,8 @@
 				if (index_mail_parse_headers(mail, NULL) < 0)
 					return NULL;
 			} else {
-				message_get_body_size(data->stream,
-						      &data->hdr_size, NULL);
+				message_get_header_size(data->stream,
+							&data->hdr_size, NULL);
 				data->hdr_size_set = TRUE;
 			}
 		}



More information about the dovecot-cvs mailing list