3 messages in net.sourceforge.lists.courier-sqwebmailRe: [sqwebmail] [PATCH] Fixed attachm...
FromSent OnAttachments
Marcin SemeniukJun 30, 2006 3:49 am.patch
Sam VarshavchikJun 30, 2006 4:59 pm 
Marcin SemeniukJul 1, 2006 2:47 am.patch
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [sqwebmail] [PATCH] Fixed attachment name in Display actionActions...
From:Sam Varshavchik (mrs@courier-mta.com)
Date:Jun 30, 2006 4:59:10 pm
List:net.sourceforge.lists.courier-sqwebmail

Marcin Semeniuk writes:

Hello Sam,

When user use Display attachment link in message view, and if browser don't know how to display it, Save As/Download window appear, but default name is meaningless number (it's probably cookie timestamp, but it doesn't matter). I know that user should use Download link to download attachment, but this bug is also available when user first display attachments (image for example), and then choose "File -> Save Page as" from browser menu or "Save Image as ..." from context menu and this is very common situation, so I made patch that set Content-Disposition: in HTTP headers, and now browser can set correct attachment name.

This is wrong. The Content-Disposition header MUST specify "inline" or "attachment". This is not optional, this is a structured MIME header.

All structured MIME headers follow the "Header: value[; [option=value]*]" format. "value" is not optional, it is mandatory.