Copy sent mails to /boot/home/mail/sent. Hope that makes more clear if a mail should be send (in out folder) or already has be sent.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40570 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Clemens Zeidler 2011-02-20 03:54:28 +00:00
parent 84eaee26b8
commit 7ab6cb9ac5
4 changed files with 6 additions and 1 deletions

View File

@ -39,6 +39,9 @@ typedef enum
} b_mail_status_window_look; } b_mail_status_window_look;
#define kDefaultSentDirectory "/boot/home/mail/sent"
class BMailSettings { class BMailSettings {
public: public:
BMailSettings(); BMailSettings();

View File

@ -9,6 +9,7 @@
#include <View.h> #include <View.h>
#include <FilePanel.h> #include <FilePanel.h>
class BTextControl; class BTextControl;
class BButton; class BButton;

View File

@ -71,7 +71,7 @@ SMTPConfigView::SMTPConfigView(MailAddonSettings& settings,
SetTo(settings); SetTo(settings);
fFileView = new BMailFileConfigView("Destination:", "destination", fFileView = new BMailFileConfigView("Destination:", "destination",
false, "/boot/home/mail/out"); false, kDefaultSentDirectory);
fFileView->SetTo(&settings.Settings(), NULL); fFileView->SetTo(&settings.Settings(), NULL);
AddChild(fFileView); AddChild(fFileView);
float w, h; float w, h;

View File

@ -54,6 +54,7 @@ HaikuMailFormatFilter::HaikuMailFormatFilter(MailProtocol& protocol,
fAccountId(settings->AccountID()) fAccountId(settings->AccountID())
{ {
const BMessage* outboundSettings = &settings->OutboundSettings().Settings(); const BMessage* outboundSettings = &settings->OutboundSettings().Settings();
fOutboundDirectory = kDefaultSentDirectory;
outboundSettings->FindString("destination", &fOutboundDirectory); outboundSettings->FindString("destination", &fOutboundDirectory);
} }