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 kMsgCountNewMessages = 'mnum'; 26const uint32 kMsgMarkMessageAsRead = 'mmar'; 27const uint32 kMsgFetchBody = 'mfeb'; 28const uint32 kMsgSyncMessages = '&SyM'; 29 30 31BPath default_mail_directory(); 32BPath default_mail_in_directory(); 33BPath default_mail_out_directory(); 34 35 36status_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