• Michael Gratton's avatar
    Workaround Mailman/Python/others sending F=F without CRLF line endings. · 254297cd
    Michael Gratton authored
    Despite RFC 3676 defining format=flowed lines as ending in CRLF, some
    software doesn't do that. Workaround this when parsing F=F by always
    converting CRLF to just LF, then just looking for LF alone as line
    endings.
    
    Bug 769137
    
    * src/engine/rfc822/rfc822-message.vala
      (Message::mime_part_to_memory_buffer): Unconditionally convert CRLF to
      just LF, do so before applying the F=F filter.
    
    * src/engine/rfc822/rfc822-gmime-filter-flowed.vala: Re-write to not
      expect CRLF sequences, or treat CR any differently. As a bonus, also
      check for signature lines without requiring the whole sig line to be in
      the bufer.
    254297cd
rfc822-gmime-filter-flowed.vala 5.51 KB