2011-06-20 02:11:04 +04:00
|
|
|
/*
|
2012-10-31 01:45:54 +04:00
|
|
|
* Copyright 2011-2012, Haiku Inc. All Rights Reserved.
|
2011-06-20 02:11:04 +04:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef MAIL_PRIVATE_H
|
|
|
|
#define MAIL_PRIVATE_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <Message.h>
|
|
|
|
#include <Path.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace BPrivate {
|
|
|
|
|
2012-10-31 01:45:54 +04:00
|
|
|
|
|
|
|
#define B_MAIL_DAEMON_SIGNATURE "application/x-vnd.Be-POST"
|
|
|
|
|
|
|
|
|
|
|
|
// mail daemon & protocol message constants
|
|
|
|
const uint32 kMsgCheckAndSend = 'mbth';
|
|
|
|
const uint32 kMsgCheckMessage = 'mnow';
|
|
|
|
const uint32 kMsgSendMessages = 'msnd';
|
|
|
|
const uint32 kMsgSettingsUpdated = 'mrrs';
|
|
|
|
const uint32 kMsgAccountsChanged = 'macc';
|
|
|
|
const uint32 kMsgCountNewMessages = 'mnum';
|
|
|
|
const uint32 kMsgMarkMessageAsRead = 'mmar';
|
|
|
|
const uint32 kMsgFetchBody = 'mfeb';
|
|
|
|
const uint32 kMsgSyncMessages = '&SyM';
|
|
|
|
|
|
|
|
|
2011-06-20 02:11:04 +04:00
|
|
|
BPath default_mail_directory();
|
|
|
|
BPath default_mail_in_directory();
|
|
|
|
BPath default_mail_out_directory();
|
|
|
|
|
2012-10-31 01:45:54 +04:00
|
|
|
|
2011-06-20 02:11:04 +04:00
|
|
|
status_t WriteMessageFile(const BMessage& archive, const BPath& path,
|
|
|
|
const char* name);
|
|
|
|
|
2012-10-31 01:45:54 +04:00
|
|
|
|
2011-06-20 02:11:04 +04:00
|
|
|
} // namespace BPrivate
|
|
|
|
|
|
|
|
|
|
|
|
#endif // MAIL_PRIVATE_H
|