Changeset 5421:f5fe657f0633
- Timestamp:
- 2008-06-24 23:12:02 (5 months ago)
- Author:
- Brendan Cully <brendan@…>
- Branch:
- HEAD
- Message:
-
Make multipart decoding a little more forgiving.
First, ignore bad content-transfer-encoding in multipart sections.
Second, if an attachment fails to decode, print a warning and continue
instead of giving up on the entire message.
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r5419
|
r5421
|
|
| | 1 | 1970-01-01 00:00 +0000 Brendan Cully <brendan@kublai.com> (a2e8f6fab8d3) |
| | 2 | |
| | 3 | * smtp.c: Test that envelope from or from is set before attempting |
| | 4 | SMTP delivery. Closes #3079. |
| | 5 | |
| | 6 | 2008-06-14 18:23 -0700 Christoph Berg <cb@df7cb.de> (4b790909a037) |
| | 7 | |
| | 8 | * doc/mbox.man: Document that From_ lines use asctime-style dates, |
| | 9 | not RFC2822 dates. Closes #3077. |
| | 10 | |
| 1 | 11 | 2008-06-11 22:45 -0700 Alexey I. Froloff <raorn@altlinux.org> (1e8ca708a52f) |
| 2 | 12 | |
-
|
r5186
|
r5421
|
|
| 1200 | 1200 | if (rc) |
| 1201 | 1201 | { |
| | 1202 | mutt_error ("One or more parts of this message could not be displayed"); |
| 1202 | 1203 | dprint (1, (debugfile, "Failed on attachment #%d, type %s/%s.\n", count, TYPE(p), NONULL (p->subtype))); |
| 1203 | 1204 | } |
| 1204 | 1205 | |
| 1205 | | if (rc || ((s->flags & M_REPLYING) |
| 1206 | | && (option (OPTINCLUDEONLYFIRST)) && (s->flags & M_FIRSTDONE))) |
| | 1206 | if ((s->flags & M_REPLYING) |
| | 1207 | && (option (OPTINCLUDEONLYFIRST)) && (s->flags & M_FIRSTDONE)) |
| 1207 | 1208 | break; |
| 1208 | 1209 | } |
| … |
… |
|
| 1565 | 1566 | if (!handler) |
| 1566 | 1567 | handler = multipart_handler; |
| | 1568 | |
| | 1569 | if (b->encoding != ENC7BIT && b->encoding != ENC8BIT |
| | 1570 | && b->encoding != ENCBINARY) |
| | 1571 | { |
| | 1572 | dprint (1, (debugfile, "Bad encoding type %d for multipart entity, " |
| | 1573 | "assuming 7 bit\n", b->encoding)); |
| | 1574 | b->encoding = ENC7BIT; |
| | 1575 | } |
| 1567 | 1576 | } |
| 1568 | 1577 | else if (WithCrypto && b->type == TYPEAPPLICATION) |