File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -235,6 +235,7 @@ struct body {
235
235
char parsedheader ; /* this header line has been parsed once */
236
236
char attached ; /* part of attachment */
237
237
char attachment_links ; /* part of generated links to attachments */
238
+ char attachment_rfc822 ; /* first line of a message/rfc822 attachment */
238
239
char demimed ; /* if this is a header, this is set to TRUE if
239
240
it has passed the decoderfc2047() function */
240
241
int format_flowed ; /* TRUE if this a text/plain f=f line */
@@ -334,8 +335,10 @@ struct attach {
334
335
#define BODY_ATTACHED (1<<3) /* this line was attached */
335
336
#define BODY_ATTACHMENT_LINKS (1<<4) /* this line is part of the generated links
336
337
** to attachments */
337
- #define BODY_FORMAT_FLOWED (1<<5) /* this line is format-flowed */
338
- #define BODY_DEL_SSQ (1<<6) /* remove both space stuffing and
338
+ #define BODY_ATTACHMENT_RFC822 (1<<5) /* this line is the beginning of an message/rfc822
339
+ ** attachment */
340
+ #define BODY_FORMAT_FLOWED (1<<6) /* this line is format-flowed */
341
+ #define BODY_DEL_SSQ (1<<7) /* remove both space stuffing and
339
342
* quotes where applicable for f=f */
340
343
341
344
Original file line number Diff line number Diff line change @@ -2257,7 +2257,7 @@ int parsemail(char *mbox, /* file name */
2257
2257
*/
2258
2258
bp = addbody (bp , & lp ,
2259
2259
"<p><strong>attached mail follows:</strong></p><hr />" ,
2260
- BODY_HTMLIZED | bodyflags );
2260
+ BODY_ATTACHMENT_RFC822 | BODY_HTMLIZED | bodyflags );
2261
2261
bodyflags |= BODY_ATTACHED ;
2262
2262
/* @@ should it be 1 or 2 ?? should we use another method? */
2263
2263
#if 0
You can’t perform that action at this time.
0 commit comments