Edit Sup Issue: issue63

Summary
Issue type Status
Sup version Ruby version
Assigned To Tags (list)
Description
Attachments
  Make a copy

Created on 2010-02-04.17:03:41 by flight, last changed by flight.

Files
File name Uploaded Type Edit Remove
rfc2184.diff flight, 2010-02-04.17:03:40 application/octet-stream edit
Messages
msg150 (view) Author: flight Date: 2010-02-04.17:03:40
I noticed sup has trouble handling attachments sent by Roundcube webmail. 
Somehow, those mails use an alternative encoding of filenames, specified in 
RFC2184:

    Content-Transfer-Encoding: base64
    Content-Type: image/jpeg;
     name*="UTF-8''20090912-i004232-gr000.jpg";
    Content-Disposition: attachment;
     filename*="UTF-8''20090912-i004232-gr000.jpg";

Sup fails to detect these filenames.

When trying to save these attachements, the filenames generated by sup have a 
trailing semicolon.

The attached patch is a quick and dirty fix for these specific problems.
There's probably a better way to implement this.
History
Date User Action Args
2010-02-04 17:03:41flightcreate