4 messages in net.sourceforge.lists.courier-sqwebmailRe: [sqwebmail] Downloading a message...
FromSent OnAttachments
Pawel TeczaMay 15, 2006 2:29 am 
Sam VarshavchikMay 15, 2006 2:37 pm 
Pawel TeczaMay 17, 2006 4:09 am 
Brian CandlerMay 18, 2006 2:15 am 
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] Downloading a message as message.txt fileActions...
From:Sam Varshavchik (mrs@courier-mta.com)
Date:May 15, 2006 2:37:50 pm
List:net.sourceforge.lists.courier-sqwebmail

Pawel Tecza writes:

Hi Sam,

Under MS Windows systems default mail client opens .msg files. Unfortunately, Outlook Express is the most popular mail client there, so if a user tries to download and open a message.msg file, then it fails, because it's a raw message, not a message in Outlook Express format. Maybe the better idea is downloading a message as message.txt file? Below is an appropriate patch:

--- courier-0.53.1.20060502/webmail/folder.c-orig 2006-05-15 11:21:29.000000000
+0200 +++ courier-0.53.1.20060502/webmail/folder.c 2006-05-15 11:21:51.000000000 +0200 @@ -4505,7 +4505,7 @@ p=disposition_filename;

if (!p || !*p) p=content_name; - if (!p || !*p) p="message.msg"; + if (!p || !*p) p="message.txt"; disposition_attachment(stdout, p); content_type="application/octet-stream"; free(disposition_filename);

"message.txt" would certainly not be appropriate for random binary files. ".txt" implies something that's not necessary true.

Probably message.dat would be a better choice.