• rswindell's avatar
    Correctly detect a "last boundary delimeter": · 1cbfce29
    rswindell authored
    Without this change, some attachment (e.g. from gmail) would not be correctly
    decoded because gmail would not insert any blank lines between the end of the
    nested multipart/alternative part and the beginning of the attachment part:
    Content-Type: image/jpeg;
    Content-Disposition: attachment;
    Content-Transfer-Encoding: base64
    It looks (from RFC2046) like boundary delimeters should actually be:
    "\r\n--<boundary>", but I'll look into that later.