Fix account name in mail.

Work in progress: fetch next partial downloaded message.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40504 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Clemens Zeidler
2011-02-15 02:19:49 +00:00
parent 9c4e0ece54
commit df0ad9c12a
9 changed files with 69 additions and 48 deletions
+1
View File
@@ -41,6 +41,7 @@ enum mail_flags {
};
#define B_MAIL_TYPE "text/x-email" // mime type
#define B_PARTIAL_MAIL_TYPE "text/x-partial-email" // mime type
// WARNING: Everything past this point is deprecated. See MailMessage.h,
+2 -1
View File
@@ -15,6 +15,7 @@ const uint32 kMsgAccountsChanged = 'macc';
const uint32 kMsgSetStatusWindowMode = 'shst';
const uint32 kMsgCountNewMessages = 'mnum';
const uint32 kMsgMarkMessageAsRead = 'mmar';
const uint32 kMsgFetchBody = 'mfeb';
class BMailDaemon {
@@ -27,7 +28,7 @@ public:
bool waitForFetchCompletion = false);
static status_t MarkAsRead(int32 account, const entry_ref& ref,
bool read = true);
static status_t FetchBody(const entry_ref& ref);
static status_t Quit();
};
+1 -2
View File
@@ -63,8 +63,7 @@ class BEmailMessage : public BMailContainer {
void SendViaAccount(const char *account_name);
void SendViaAccount(int32 account);
int32 Account() const;
status_t GetAccountName(char *account,int32 maxLength) const;
status_t GetAccountName(BString *account) const;
status_t GetAccountName(BString& accountName) const;
virtual status_t AddComponent(BMailComponent *component);
virtual status_t RemoveComponent(BMailComponent *component);