summaryrefslogtreecommitdiff
path: root/src/include/message.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/message.h')
-rw-r--r--src/include/message.h43
1 files changed, 19 insertions, 24 deletions
diff --git a/src/include/message.h b/src/include/message.h
index 76607e5..e1bbf2b 100644
--- a/src/include/message.h
+++ b/src/include/message.h
@@ -6,8 +6,9 @@
* ----------------------------------------------------------------- **/
#ifndef message_h_included
#define message_h_included
-#include <vector>
#include <string>
+#include <vector>
+
#include <time.h>
#ifndef UINTMAX
@@ -30,21 +31,20 @@ namespace Binc {
*/
class Message {
public:
-
/*!
Standard IMAP message flags.
*/
enum Flags {
- F_NONE = 0x00, /*!< No flag is set */
- F_SEEN = 0x01, /*!< The message has been seen */
- F_ANSWERED = 0x02, /*!< The message has been answered */
- F_DELETED = 0x04, /*!< The message is marked as deleted */
- F_DRAFT = 0x08, /*!< The message is a draft */
- F_RECENT = 0x10, /*!< The message arrived recently */
- F_FLAGGED = 0x20, /*!< The message is flagged / important */
- F_EXPUNGED = 0x40, /*!< The message has been expunged */
- F_PASSED = 0x80 /*!< The message has been bounced */
+ F_NONE = 0x00, /*!< No flag is set */
+ F_SEEN = 0x01, /*!< The message has been seen */
+ F_ANSWERED = 0x02, /*!< The message has been answered */
+ F_DELETED = 0x04, /*!< The message is marked as deleted */
+ F_DRAFT = 0x08, /*!< The message is a draft */
+ F_RECENT = 0x10, /*!< The message arrived recently */
+ F_FLAGGED = 0x20, /*!< The message is flagged / important */
+ F_EXPUNGED = 0x40, /*!< The message has been expunged */
+ F_PASSED = 0x80 /*!< The message has been bounced */
};
virtual void setUID(unsigned int) = 0;
@@ -79,8 +79,7 @@ namespace Binc {
virtual const std::string &getHeader(const std::string &header) = 0;
- virtual bool headerContains(const std::string &header,
- const std::string &text) = 0;
+ virtual bool headerContains(const std::string &header, const std::string &text) = 0;
virtual bool bodyContains(const std::string &text) = 0;
virtual bool textContains(const std::string &text) = 0;
@@ -90,11 +89,11 @@ namespace Binc {
virtual bool printEnvelope(void) const = 0;
virtual bool printHeader(const std::string &section,
- std::vector<std::string> headers,
- bool includeHeaders = false,
- unsigned int startOffset = 0,
- unsigned int length = UINTMAX,
- bool mime = false) const = 0;
+ std::vector<std::string> headers,
+ bool includeHeaders = false,
+ unsigned int startOffset = 0,
+ unsigned int length = UINTMAX,
+ bool mime = false) const = 0;
virtual unsigned int getHeaderSize(const std::string &section,
std::vector<std::string> headers,
@@ -129,13 +128,9 @@ namespace Binc {
static std::string lastError;
};
- inline Message::Message(void)
- {
- }
+ inline Message::Message(void) {}
- inline Message::~Message(void)
- {
- }
+ inline Message::~Message(void) {}
inline void Message::setLastError(const std::string &error) const
{