Subject: [sup-talk] [PATCH] Attachment filenames: RFC2184 and extension guessing

From: Gregor Hoffleit <[email-masked]>
Date: Wed, 07 Oct 2009 12:52:34 +0200

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"; 

Bugs:

1. Sup fails to detect these filenames.

2. 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.

Regards,
    Gregor Hoffleit
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk