MailPrivate.h revision 146357b5
1/*
2 * Copyright 2011-2012, Haiku Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
4 */
5#ifndef MAIL_PRIVATE_H
6#define MAIL_PRIVATE_H
7
8
9#include <Message.h>
10#include <Path.h>
11
12
13namespace BPrivate {
14
15
16#define B_MAIL_DAEMON_SIGNATURE "application/x-vnd.Be-POST"
17
18
19// mail daemon & protocol message constants
20const uint32 kMsgCheckAndSend = 'mbth';
21const uint32 kMsgCheckMessage = 'mnow';
22const uint32 kMsgSendMessages = 'msnd';
23const uint32 kMsgSettingsUpdated = 'mrrs';
24const uint32 kMsgAccountsChanged = 'macc';
25const uint32 kMsgSetStatusWindowMode = 'shst';
26const uint32 kMsgCountNewMessages = 'mnum';
27const uint32 kMsgMarkMessageAsRead = 'mmar';
28const uint32 kMsgFetchBody = 'mfeb';
29const uint32 kMsgBodyFetched = 'mbfe';
30const uint32 kMsgSyncMessages = '&SyM';
31
32
33BPath default_mail_directory();
34BPath default_mail_in_directory();
35BPath default_mail_out_directory();
36
37
38status_t WriteMessageFile(const BMessage& archive, const BPath& path,
39	const char* name);
40
41
42}	// namespace BPrivate
43
44
45#endif	// MAIL_PRIVATE_H
46