Changeset 2282:68fed29a1b9c for attach.c

Show
Ignore:
Timestamp:
2001-02-13 02:54:29 (8 years ago)
Author:
Thomas Roessler <roessler@…>
Branch:
HEAD
Message:

Fix #470: multipart- and message-type attachments weren't handled
correctly.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • attach.c

    r2270 r2282  
    819819 
    820820    saved_encoding = m->encoding; 
     821    if (!is_multipart (m)) 
     822      m->encoding = ENC8BIT; 
     823     
    821824    m->length = st.st_size; 
    822     m->encoding = ENC8BIT; 
    823825    m->offset = 0; 
    824826    saved_parts = m->parts; 
     
    826828    mutt_parse_part (s.fpin, m); 
    827829 
    828     /* display a readable version to the user */ 
    829     if (m->noconv) 
     830    if (m->noconv || is_multipart (m)) 
    830831      s.flags |= M_CHARCONV; 
    831832  }