From 52cee6495ac61057405d305914d14917b8a405d8 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 25 Oct 2007 15:28:14 +0000 Subject: [PATCH] Monotone-Parent: 6942fad37af1688fabf9fedce658eafff7ae9cf7 Monotone-Revision: 324953981461ad15df80c3193646a4ca4e57d5b5 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-10-25T15:28:14 Monotone-Branch: ca.inverse.sogo --- UI/MailerUI/UIxMailEditor.m | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/UI/MailerUI/UIxMailEditor.m b/UI/MailerUI/UIxMailEditor.m index a2eb9ee00..2950bd39d 100644 --- a/UI/MailerUI/UIxMailEditor.m +++ b/UI/MailerUI/UIxMailEditor.m @@ -280,13 +280,14 @@ static NSArray *infoKeys = nil; for (count = 0; count < max; count++) { part = [parts objectAtIndex: count]; - header = (NGMimeContentDispositionHeaderField *) [part headerForKey: @"content-disposition"]; - mimeType = [(NGMimeType *) [part headerForKey: @"content-type"] stringValue]; + header = (NGMimeContentDispositionHeaderField *) + [part headerForKey: @"content-disposition"]; + mimeType = [(NGMimeType *) + [part headerForKey: @"content-type"] stringValue]; attachment = [NSDictionary dictionaryWithObjectsAndKeys: [header filename], @"filename", - mimeType, @"mime-type", nil]; - [filenames setObject: attachment - forKey: [header name]]; + mimeType, @"mimetype", nil]; + [filenames setObject: attachment forKey: [header name]]; } return filenames;