[dovecot-cvs] dovecot/src/imap imap-fetch-body-section.c,1.24,1.25
cras at procontrol.fi
cras at procontrol.fi
Sun May 2 16:05:55 EEST 2004
- Previous message: [dovecot-cvs]
dovecot/src/lib-index mail-transaction-log-view.c, 1.8,
1.9 mail-transaction-log.c, 1.14, 1.15
- Next message: [dovecot-cvs] dovecot/src/lib-index mail-index-sync-private.h, 1.1,
1.2 mail-index-sync-update.c, 1.8, 1.9 mail-index-sync.c, 1.6,
1.7 mail-index.h, 1.102, 1.103
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv909
Modified Files:
imap-fetch-body-section.c
Log Message:
Add CRLF to end of FETCH BODY[HEADER.FIELDS (...)] always.
Index: imap-fetch-body-section.c
===================================================================
RCS file: /home/cvs/dovecot/src/imap/imap-fetch-body-section.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- imap-fetch-body-section.c 27 Apr 2004 20:25:52 -0000 1.24
+++ imap-fetch-body-section.c 2 May 2004 13:05:53 -0000 1.25
@@ -293,13 +293,11 @@
hdr_ctx = message_parse_header_init(input, NULL);
while ((hdr = message_parse_header_next(hdr_ctx)) != NULL) {
- /* see if we want this field.
- we always want the end-of-headers line */
- if (!hdr->eoh &&
- !ctx->match_func(ctx->fields, hdr->name, hdr->name_len))
+ /* see if we want this field. */
+ if (!ctx->match_func(ctx->fields, hdr->name, hdr->name_len))
continue;
- if (!hdr->continued && !hdr->eoh) {
+ if (!hdr->continued) {
if (!fetch_header_append(ctx, hdr->name, hdr->name_len))
break;
if (!fetch_header_append(ctx, ": ", 2))
@@ -312,6 +310,16 @@
break;
}
}
+
+ /* FIXME: We'll just always add the end of headers mark now.
+ mail-storage should rather include it in the header stream..
+ however, not much of a problem since all non-broken mails have it.
+
+ Also, Netscape 4.x seems to require this or it won't show the
+ mail.. So if we do make this as RFC says, we'll need to add
+ netscape-workaround. */
+ (void)fetch_header_append(ctx, "\r\n", 2);
+
message_parse_header_deinit(hdr_ctx);
i_assert(ctx->dest_size <= ctx->max_size);
- Previous message: [dovecot-cvs]
dovecot/src/lib-index mail-transaction-log-view.c, 1.8,
1.9 mail-transaction-log.c, 1.14, 1.15
- Next message: [dovecot-cvs] dovecot/src/lib-index mail-index-sync-private.h, 1.1,
1.2 mail-index-sync-update.c, 1.8, 1.9 mail-index-sync.c, 1.6,
1.7 mail-index.h, 1.102, 1.103
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list