See ChangeLog

Monotone-Parent: 63271073bf7d0a76f33d176368439c6dcd2cb1b1
Monotone-Revision: 73e29d3a84d2c6904889f66d1758bfcbbb10951c

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2007-11-15T22:39:17
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Ludovic Marcotte 2007-11-15 22:39:17 +00:00
parent 958f39b5f8
commit 51f5520e44
5 changed files with 55 additions and 16 deletions

View File

@ -1,3 +1,27 @@
2007-11-15 Ludovic Marcotte <ludovic@inverse.ca>
* UI/WebServerResources/MailerUI.js
We now check for empty selection and warn the
user about it when deleting messages
* SoObjects/Mailer/SOGoDraftObject.m
Correctly check for the presence of a subject
before attempting to forward a message from
the Drafts folder.
* SoObjects/Mailer/SOGoMailObject+Draft.m
We no longer use "[Fwd: ]" but simply "Fwd:"
when forwarding email messages.
* SoObjects/SOGo/SOGoUser.m
Modified the default forwarding format to be
inline instead of "attachment".
* SoObjects/Mailer/SOGoDraftObject.m
We now create and use a NGMimeContentDispositionHeaderField
in order to avoid encoding the whole Content-Disposition
header in case a non-ASCII char is present!
2007-11-13 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/iCalEntityObject+Utilities.m ([iCalEntityObject

View File

@ -51,6 +51,7 @@
#import <NGMime/NGMimeMultipartBody.h>
#import <NGMime/NGMimeType.h>
#import <NGMime/NGMimeHeaderFieldGenerator.h>
#import <NGMime/NGMimeHeaderFields.h>
#import <SoObjects/SOGo/NSArray+Utilities.h>
#import <SoObjects/SOGo/NSCalendarDate+SOGo.h>
@ -614,10 +615,14 @@ static BOOL showTextAttachmentsInline = NO;
SOGoUser *currentUser;
[sourceMail fetchCoreInfos];
info = [NSDictionary dictionaryWithObject: [sourceMail subjectForForward]
forKey: @"subject"];
[self setHeaders: info];
if ([sourceMail subjectForForward])
{
info = [NSDictionary dictionaryWithObject: [sourceMail subjectForForward]
forKey: @"subject"];
[self setHeaders: info];
}
[self setSourceURL: [sourceMail imap4URLString]];
[self setSourceFlag: @"$Forwarded"];
@ -905,7 +910,7 @@ static BOOL showTextAttachmentsInline = NO;
cdtype = @"inline";
else
cdtype = @"attachment";
cd = [cdtype stringByAppendingString: @"; filename=\""];
cd = [cd stringByAppendingString: _name];
cd = [cd stringByAppendingString: @"\""];
@ -950,7 +955,13 @@ static BOOL showTextAttachmentsInline = NO;
is7bit = YES;
}
if ((s = [self contentDispositionForAttachmentWithName:_name]))
[map setObject:s forKey: @"content-disposition"];
{
NGMimeContentDispositionHeaderField *o;
o = [[NGMimeContentDispositionHeaderField alloc] initWithString: s];
[map setObject:o forKey: @"content-disposition"];
[o release];
}
/* prepare body content */

View File

@ -180,7 +180,7 @@
subject = [self decodedSubject];
if ([subject length] > 0)
newSubject = [NSString stringWithFormat: @"[Fwd: %@]", subject];
newSubject = [NSString stringWithFormat: @"Fwd: %@", subject];
else
newSubject = subject;

View File

@ -506,7 +506,7 @@ NSString *SOGoWeekStartFirstFullWeek = @"FirstFullWeek";
messageForwarding
= [[self userDefaults] stringForKey: @"MessageForwarding"];
if (![messageForwarding length])
messageForwarding = @"attached";
messageForwarding = @"inline";
return messageForwarding;
}

View File

@ -211,14 +211,18 @@ function deleteSelectedMessages(sender) {
var messageList = $("messageList");
var rowIds = messageList.getSelectedRowsId();
for (var i = 0; i < rowIds.length; i++) {
var url;
var rowId = rowIds[i].substr(4);
var messageId = currentMailbox + "/" + rowId;
url = ApplicationBaseURL + messageId + "/trash";
deleteMessageRequestCount++;
var data = { "id": rowId, "mailbox": currentMailbox, "messageId": messageId };
triggerAjaxRequest(url, deleteSelectedMessagesCallback, data);
if (rowIds.length > 0) {
for (var i = 0; i < rowIds.length; i++) {
var url;
var rowId = rowIds[i].substr(4);
var messageId = currentMailbox + "/" + rowId;
url = ApplicationBaseURL + messageId + "/trash";
deleteMessageRequestCount++;
var data = { "id": rowId, "mailbox": currentMailbox, "messageId": messageId };
triggerAjaxRequest(url, deleteSelectedMessagesCallback, data);
}
} else {
window.alert(labels["Please select a message."]);
}
return false;