Changeset 5421:f5fe657f0633

Show
Ignore:
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:
2 modified

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r5419 r5421  
     11970-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 
     62008-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 
    1112008-06-11 22:45 -0700  Alexey I. Froloff  <raorn@altlinux.org>  (1e8ca708a52f) 
    212 
  • handler.c

    r5186 r5421  
    12001200    if (rc) 
    12011201    { 
     1202      mutt_error ("One or more parts of this message could not be displayed"); 
    12021203      dprint (1, (debugfile, "Failed on attachment #%d, type %s/%s.\n", count, TYPE(p), NONULL (p->subtype))); 
    12031204    } 
    12041205     
    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)) 
    12071208      break; 
    12081209  } 
     
    15651566    if (!handler) 
    15661567      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    } 
    15671576  } 
    15681577  else if (WithCrypto && b->type == TYPEAPPLICATION)