diff options
| author | Martin Wilke <miwi@FreeBSD.org> | 2008-10-19 16:20:34 +0000 |
|---|---|---|
| committer | Martin Wilke <miwi@FreeBSD.org> | 2008-10-19 16:20:34 +0000 |
| commit | b1d835f28c7d1fcae60dbda6a6047e384be40204 (patch) | |
| tree | 4d3c5d915ba5d339ff6fb4bd1a0c1cdcfce3206d /mail/mutt-devel/files | |
| parent | - Fix handling of malformed multipart messages (diff) | |
- Fix handling of malformed multipart messages
- Bump PORTREVISION
PR: 128075
Submitted by: Udo Schweigert (maintainer)
Reported by: Guy Brand <gb@isis.u-strasbg.fr>
Obtained from: The patch has been taken from mutt's source code repository.
Diffstat (limited to 'mail/mutt-devel/files')
| -rw-r--r-- | mail/mutt-devel/files/patch-handler.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/mail/mutt-devel/files/patch-handler.c b/mail/mutt-devel/files/patch-handler.c new file mode 100644 index 000000000000..51b191aff18f --- /dev/null +++ b/mail/mutt-devel/files/patch-handler.c @@ -0,0 +1,32 @@ +--- handler.c.orig 2008-01-30 05:26:50.000000000 +0100 ++++ handler.c 2008-10-16 10:56:40.000000000 +0200 +@@ -1199,11 +1199,12 @@ + + if (rc) + { ++ mutt_error ("One or more parts of this message could not be displayed"); + dprint (1, (debugfile, "Failed on attachment #%d, type %s/%s.\n", count, TYPE(p), NONULL (p->subtype))); + } + +- if (rc || ((s->flags & M_REPLYING) +- && (option (OPTINCLUDEONLYFIRST)) && (s->flags & M_FIRSTDONE))) ++ if ((s->flags & M_REPLYING) ++ && (option (OPTINCLUDEONLYFIRST)) && (s->flags & M_FIRSTDONE)) + break; + } + +@@ -1564,6 +1565,14 @@ + + if (!handler) + handler = multipart_handler; ++ ++ if (b->encoding != ENC7BIT && b->encoding != ENC8BIT ++ && b->encoding != ENCBINARY) ++ { ++ dprint (1, (debugfile, "Bad encoding type %d for multipart entity, " ++ "assuming 7 bit\n", b->encoding)); ++ b->encoding = ENC7BIT; ++ } + } + else if (WithCrypto && b->type == TYPEAPPLICATION) + { |
