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 kMsgCountNewMessages = 'mnum'; 26 const uint32 kMsgMarkMessageAsRead = 'mmar'; 27 const uint32 kMsgFetchBody = 'mfeb'; 28 const uint32 kMsgSyncMessages = '&SyM'; 29 30 31 BPath default_mail_directory(); 32 BPath default_mail_in_directory(); 33 BPath default_mail_out_directory(); 34 35 36 status_t WriteMessageFile(const BMessage& archive, const BPath& path, 37 const char* name); 38 39 40 } // namespace BPrivate 41 42 43 #endif // MAIL_PRIVATE_H 44