From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.86.2.6 with SMTP id 6cs6633fgb; Thu, 4 Feb 2010 09:14:51 -0800 (PST) Received: by 10.224.44.233 with SMTP id b41mr255253qaf.278.1265303689155; Thu, 04 Feb 2010 09:14:49 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 5si1275848qwg.58.2010.02.04.09.14.47; Thu, 04 Feb 2010 09:14:48 -0800 (PST) Received-SPF: pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id C66E41588065; Thu, 4 Feb 2010 12:14:47 -0500 (EST) Received: from entry.masanjin.net (masanjin.net [209.20.72.13]) by rubyforge.org (Postfix) with ESMTP id F1E991858249 for ; Thu, 4 Feb 2010 12:03:43 -0500 (EST) Received: from localhost ([127.0.0.1] helo=entry.masanjin.net) by entry.masanjin.net with esmtp (Exim 4.69) (envelope-from ) id 1Nd57F-0006Xe-CC for sup-devel@rubyforge.org; Thu, 04 Feb 2010 12:03:43 -0500 Content-Type: multipart/mixed; boundary="===============1224146617951358441==" MIME-Version: 1.0 To: sup-devel@rubyforge.org From: Gregor Hoffleit Date: Thu, 04 Feb 2010 17:03:41 +0000 Precedence: bulk X-Roundup-Name: Sup issue tracker X-Roundup-Loop: hello X-Roundup-Version: 1.4.10 Message-Id: <1265303021.03.0.840779379479.issue63@masanjin.net> X-Roundup-issue-status: unread X-Roundup-issue-files: rfc2184.diff X-Roundup-issue-priority: bug In-Reply-To: <1265303021.03.0.840779379479.issue63@masanjin.net> Subject: [sup-devel] [issue63] Attachment filenames: RFC2184 and extension guessing X-BeenThere: sup-devel@rubyforge.org X-Mailman-Version: 2.1.12 Reply-To: Sup issue tracker , Sup developer discussion List-Id: Sup developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org --===============1224146617951358441== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable New submission from Gregor Hoffleit : I noticed sup has trouble handling attachments sent by Roundcube webmail.=20 Somehow, those mails use an alternative encoding of filenames, specified in= =20 RFC2184: Content-Transfer-Encoding: base64 Content-Type: image/jpeg; name*=3D"UTF-8''20090912-i004232-gr000.jpg"; Content-Disposition: attachment; filename*=3D"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=20 trailing semicolon. The attached patch is a quick and dirty fix for these specific problems. There's probably a better way to implement this. ---------- files: rfc2184.diff messages: 150 nosy: flight priority: bug ruby_version: 1.8.5 status: unread sup_version: 0.10.2 title: Attachment filenames: RFC2184 and extension guessing _________________________________________ Sup issue tracker _________________________________________ --===============1224146617951358441== Content-Type: application/octet-stream MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="rfc2184.diff" ZGlmZiAtLWdpdCBhL2xpYi9zdXAvbWVzc2FnZS5yYiBiL2xpYi9zdXAvbWVzc2FnZS5yYgppbmRl eCBmOWY4N2RlLi40YWQwYjg4IDEwMDY0NAotLS0gYS9saWIvc3VwL21lc3NhZ2UucmIKKysrIGIv bGliL3N1cC9tZXNzYWdlLnJiCkBAIC00NzcsNiArNDc3LDEwIEBAIHByaXZhdGUKICAgICAgICAg ICAkMQogICAgICAgICBlbHNpZiBtLmhlYWRlclsiQ29udGVudC1UeXBlIl0gJiYgbS5oZWFkZXJb IkNvbnRlbnQtVHlwZSJdID1+IC9uYW1lPSI/KC4qP1teXFxdKSgifDt8JCkvaQogICAgICAgICAg ICQxCisgICAgICAgIGVsc2lmIG0uaGVhZGVyWyJDb250ZW50LURpc3Bvc2l0aW9uIl0gJiYgbS5o ZWFkZXJbIkNvbnRlbnQtRGlzcG9zaXRpb24iXSA9fiAvZmlsZW5hbWVcKj0iP1VURi04JycoLio/ W15cXF0pKCJ8O3wkKS8KKyAgICAgICAgICAkMQorICAgICAgICBlbHNpZiBtLmhlYWRlclsiQ29u dGVudC1UeXBlIl0gJiYgbS5oZWFkZXJbIkNvbnRlbnQtVHlwZSJdID1+IC9uYW1lXCo9Ij9VVEYt OCcnKC4qP1teXFxdKSgifDt8JCkvaQorICAgICAgICAgICQxCiAKICAgICAgICAgIyMgaGF2ZW4n dCBmb3VuZCBvbmUsIGJ1dCBpdCdzIGEgbm9uLXRleHQgbWVzc2FnZS4gZmFrZQogICAgICAgICAj IyBpdC4KQEAgLTQ4Niw3ICs0OTAsNyBAQCBwcml2YXRlCiAgICAgICAgICAgZXh0ZW5zaW9uID0K ICAgICAgICAgICAgIGNhc2UgbS5oZWFkZXJbIkNvbnRlbnQtVHlwZSJdCiAgICAgICAgICAgICB3 aGVuIC90ZXh0XC9odG1sLyB0aGVuICJodG1sIgotICAgICAgICAgICAgd2hlbiAvaW1hZ2VcLygu KikvIHRoZW4gJDEKKyAgICAgICAgICAgIHdoZW4gL2ltYWdlXC8oW147XSopLyB0aGVuICQxCiAg ICAgICAgICAgICBlbmQKIAogICAgICAgICAgIFsic3VwLWF0dGFjaG1lbnQtI3tUaW1lLm5vdy50 b19pfS0je3JhbmQgMTAwMDB9IiwgZXh0ZW5zaW9uXS5qb2luKCIuIikK --===============1224146617951358441== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel --===============1224146617951358441==--