From 473c8cf0d0b1b6ec85914e786b78e57db22fd466 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Thu, 9 Apr 2009 16:29:02 +0000 Subject: [PATCH] See ChangeLog Monotone-Parent: cc3307154f3db7f06e6e54e701e48d8e3e676c08 Monotone-Revision: 0280dffce97a63277bc84ffa183716452b431953 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2009-04-09T16:29:02 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 5 +++++ SoObjects/Mailer/SOGoDraftObject.m | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index ff1532349..7ed8a6b33 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-04-09 Francis Lachapelle + + * SoObjects/Mailer/SOGoDraftObject.m ([SOGoDraftObject + -sendMail]): create the Sent folder if it doesn't exist. + 2009-04-07 Cyril Robert * UI/Common/UIxPageFrame.m (isCompatibleBrowser): Fixed Safari 3 issue, diff --git a/SoObjects/Mailer/SOGoDraftObject.m b/SoObjects/Mailer/SOGoDraftObject.m index b9b713aaf..b5476fc60 100644 --- a/SoObjects/Mailer/SOGoDraftObject.m +++ b/SoObjects/Mailer/SOGoDraftObject.m @@ -1381,6 +1381,15 @@ static BOOL showTextAttachmentsInline = NO; if (!error) { error = [sentFolder postData: message flags: @"seen"]; + if (error) + { + // Sent folder probably doesn't exist -- create it + error = [[self imap4Connection] + createMailbox: [imap4 imap4FolderNameForURL: [sentFolder imap4URL]] + atURL: [[self mailAccountFolder] imap4URL]]; + if (!error) + error = [sentFolder postData: message flags: @"seen"]; + } if (!error) { [self imap4Connection];