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 13 namespace BPrivate { 14 15 16 #define B_MAIL_DAEMON_SIGNATURE "application/x-vnd.Be-POST" 17 18 19 // mail daemon & protocol message constants 20 const uint32 kMsgCheckAndSend = 'mbth'; 21 const uint32 kMsgCheckMessage = 'mnow'; 22 const uint32 kMsgSendMessages = 'msnd'; 23 const uint32 kMsgSettingsUpdated = 'mrrs'; 24 const uint32 kMsgAccountsChanged = 'macc'; 25 const uint32 kMsgSetStatusWindowMode = 'shst'; 26 const uint32 kMsgCountNewMessages = 'mnum'; 27 const uint32 kMsgMarkMessageAsRead = 'mmar'; 28 const uint32 kMsgFetchBody = 'mfeb'; 29 const uint32 kMsgSyncMessages = '&SyM'; 30 31 32 BPath default_mail_directory(); 33 BPath default_mail_in_directory(); 34 BPath default_mail_out_directory(); 35 36 37 status_t WriteMessageFile(const BMessage& archive, const BPath& path, 38 const char* name); 39 40 41 } // namespace BPrivate 42 43 44 #endif // MAIL_PRIVATE_H 45