View | Details | Raw Unified | Return to bug 5310
Collapse All | Expand All

(-)a/camel/camel-mime-parser.c (-4 / +5 lines)
Lines 51-57 Link Here
51
#define c(x) 
51
#define c(x) 
52
#define d(x) 
52
#define d(x) 
53
53
54
/*#define PRESERVE_HEADERS*/
54
#define PRESERVE_HEADERS
55
55
56
/*#define PURIFY*/
56
/*#define PURIFY*/
57
57
Lines 1227-1240 Link Here
1227
					h(printf("got line part: '%.*s'\n", inptr-1-start, start));
1227
					h(printf("got line part: '%.*s'\n", inptr-1-start, start));
1228
					/* got a line, strip and add it, process it */
1228
					/* got a line, strip and add it, process it */
1229
					s->midline = FALSE;
1229
					s->midline = FALSE;
1230
1231
					/* check for end of headers */
1232
					if (start+1 == inptr)
1233
						goto header_done;
1230
#ifdef PRESERVE_HEADERS
1234
#ifdef PRESERVE_HEADERS
1231
					header_append(s, start, inptr);
1235
					header_append(s, start, inptr);
1232
#else
1236
#else
1233
					header_append(s, start, inptr-1);
1237
					header_append(s, start, inptr-1);
1234
#endif
1238
#endif
1235
					/* check for end of headers */
1236
					if (s->outbuf == s->outptr)
1237
						goto header_done;
1238
1239
1239
					/* check for continuation/compress headers, we have atleast 1 char here to work with */
1240
					/* check for continuation/compress headers, we have atleast 1 char here to work with */
1240
					if (inptr[0] ==  ' ' || inptr[0] == '\t') {
1241
					if (inptr[0] ==  ' ' || inptr[0] == '\t') {

Return to bug 5310