[dovecot-cvs] dovecot/src/lib-index mail-index-update.c,1.52,1.53
mail-index.h,1.78,1.79
cras at procontrol.fi
cras at procontrol.fi
Wed Jun 4 19:58:01 EEST 2003
- Previous message: [dovecot-cvs] dovecot/src/imap imap-fetch-body-section.c,1.13,1.14
imap-fetch.c,1.5,1.6
- Next message: [dovecot-cvs] dovecot/src/lib-mail message-parser.c,1.41,1.42
message-parser.h,1.19,1.20 message-send.c,1.17,1.18
message-send.h,1.10,1.11 message-size.c,1.12,1.13
message-size.h,1.10,1.11
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/dovecot/src/lib-index
In directory danu:/tmp/cvs-serv27024/lib-index
Modified Files:
mail-index-update.c mail-index.h
Log Message:
IMAP protocol doesn't allow server to send NULs to client. Send ascii #128
instead.
Index: mail-index-update.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-index-update.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -d -r1.52 -r1.53
--- mail-index-update.c 15 May 2003 19:22:22 -0000 1.52
+++ mail-index-update.c 4 Jun 2003 15:57:58 -0000 1.53
@@ -459,6 +459,13 @@
if (part == NULL) {
part = message_parse(pool, input,
update_header_cb, &ctx);
+ if ((part->flags & MESSAGE_PART_FLAG_HAS_NULS) != 0) {
+ update->rec->index_flags |=
+ INDEX_MAIL_FLAG_HAS_NULS;
+ } else {
+ update->rec->index_flags |=
+ INDEX_MAIL_FLAG_HAS_NO_NULS;
+ }
} else {
/* cached, construct the bodystructure using it.
also we need to parse the header.. */
Index: mail-index.h
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-index.h,v
retrieving revision 1.78
retrieving revision 1.79
diff -u -d -r1.78 -r1.79
--- mail-index.h 29 May 2003 22:48:02 -0000 1.78
+++ mail-index.h 4 Jun 2003 15:57:58 -0000 1.79
@@ -75,7 +75,12 @@
INDEX_MAIL_FLAG_DIRTY = 0x0004,
/* Maildir: Mail file is in new/ dir instead of cur/ */
- INDEX_MAIL_FLAG_MAILDIR_NEW = 0x0008
+ INDEX_MAIL_FLAG_MAILDIR_NEW = 0x0008,
+
+ /* Mail header or body is known to contain NUL characters. */
+ INDEX_MAIL_FLAG_HAS_NULS = 0x0010,
+ /* Mail header or body is known to not contain NUL characters. */
+ INDEX_MAIL_FLAG_HAS_NO_NULS = 0x0020
};
enum mail_lock_type {
- Previous message: [dovecot-cvs] dovecot/src/imap imap-fetch-body-section.c,1.13,1.14
imap-fetch.c,1.5,1.6
- Next message: [dovecot-cvs] dovecot/src/lib-mail message-parser.c,1.41,1.42
message-parser.h,1.19,1.20 message-send.c,1.17,1.18
message-send.h,1.10,1.11 message-size.c,1.12,1.13
message-size.h,1.10,1.11
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list