mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-07 01:15:09 +00:00
Monotone-Parent: 5c16103ef3144005637a40e62d21cf1830441cea
Monotone-Revision: bbb9fd8c5076db6a340935f8f7dba98b04c5b353 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2012-03-06T20:32:20
This commit is contained in:
@@ -468,7 +468,7 @@ static NSString *defaultUserID = @"anyone";
|
||||
{
|
||||
NSException *error;
|
||||
NSFileManager *fm;
|
||||
NSString *spoolPath, *fileName, *zipPath, *qpFileName;
|
||||
NSString *spoolPath, *fileName, *baseName, *extension, *zipPath, *qpFileName;
|
||||
NSDictionary *msgs;
|
||||
NSArray *messages;
|
||||
NSData *content, *zipContent;
|
||||
@@ -533,7 +533,17 @@ static NSString *defaultUserID = @"anyone";
|
||||
}
|
||||
|
||||
response = [context response];
|
||||
qpFileName = [archiveName asQPSubjectString: @"utf-8"];
|
||||
|
||||
baseName = [archiveName stringByDeletingPathExtension];
|
||||
extension = [archiveName pathExtension];
|
||||
if ([extension length] > 0)
|
||||
extension = [@"." stringByAppendingString: extension];
|
||||
else
|
||||
extension = @"";
|
||||
|
||||
qpFileName = [NSString stringWithFormat: @"%@%@",
|
||||
[baseName asQPSubjectString: @"utf-8"],
|
||||
extension];
|
||||
[response setHeader: [NSString stringWithFormat: @"application/zip;"
|
||||
@" name=\"%@\"",
|
||||
qpFileName]
|
||||
|
||||
Reference in New Issue
Block a user