Subject: [sup-talk] Weird behaviour saving attachments.

From: [email-masked] (Nicolas Pouillard)
Date: Sat, 24 Nov 2007 11:25:57 +0100

Hi,

Sometimes  when  I  save attachment the file name is not properly unquoted and
then save a file with double quotes in the name (e.g. "foo.bar").

Best regards,

-- 
Nicolas Pouillard aka Ertai

---

From: [email-masked] (William Morgan)
Date: Sat, 24 Nov 2007 09:34:28 -0800

Excerpts from nicolas.pouillard's message of Sat Nov 24 02:25:57 -0800 2007:
> Sometimes  when  I  save attachment the file name is not properly
> unquoted and then save a file with double quotes in the name (e.g.
> "foo.bar").

Can you track down the MIME header in the raw message that names the
attachment? 

If you save the message to disk with 's' and search the file for
"filename", you should see it. (Probably a Content-Disposition header.)

-- 
William <wmorgan-sup at masanjin.net>

---

From: [email-masked] (Nicolas Pouillard)
Date: Sun, 25 Nov 2007 12:28:34 +0100

> "filename", you should see it. (Probably a Content-Disposition header.)

It  was  the  name  attribute of the Content-Type header that was not unquoted
like Content-Disposition filename. Here is a patch as attachment.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: unquote-content-type-name.patch
Type: application/octet-stream
Size: 494 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071125/287d1205/attachment.obj

---

From: [email-masked] (William Morgan)
Date: Mon, 26 Nov 2007 12:11:28 -0800

Excerpts from nicolas.pouillard's message of Sun Nov 25 03:28:34 -0800 2007:
> It  was  the  name  attribute of the Content-Type header that was not
> unquoted like Content-Disposition filename. Here is a patch as
> attachment.

Applied. Thanks!