[dovecot-cvs] dovecot/src/lib-index mail-index-update.c,1.26,1.27
cras at procontrol.fi
cras at procontrol.fi
Mon Oct 28 10:12:31 EET 2002
Update of /home/cvs/dovecot/src/lib-index
In directory danu:/tmp/cvs-serv11499
Modified Files:
mail-index-update.c
Log Message:
if virtual_size == physical_size in message, update it's binary-flag.
Index: mail-index-update.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-index-update.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- mail-index-update.c 27 Oct 2002 06:37:18 -0000 1.26
+++ mail-index-update.c 28 Oct 2002 08:12:29 -0000 1.27
@@ -402,6 +402,16 @@
update->index->update_field_raw(update, DATA_HDR_VIRTUAL_SIZE,
&uoff_size, sizeof(uoff_size));
+ /* update binary flags */
+ if (part->header_size.virtual_size ==
+ part->header_size.physical_size)
+ update->rec->index_flags |=
+ INDEX_MAIL_FLAG_BINARY_HEADER;
+
+ if (part->body_size.virtual_size ==
+ part->body_size.physical_size)
+ update->rec->index_flags |= INDEX_MAIL_FLAG_BINARY_BODY;
+
/* don't save both BODY + BODYSTRUCTURE since BODY can be
generated from BODYSTRUCTURE. FIXME: However that takes
CPU, maybe this should be configurable (I/O vs. CPU)? */
More information about the dovecot-cvs
mailing list