From 6377be44166ac3a6f8b9c31f6e6622bb46a445bb Mon Sep 17 00:00:00 2001 From: Bart Riepe Date: Mon, 28 Jul 2014 16:24:20 +0900 Subject: [PATCH] Give Message class constants to access the imap flags --- src/Fetch/Message.php | 10 ++++++++++ 1 file changed, 10 insertions(+) mode change 100644 => 100755 src/Fetch/Message.php diff --git a/src/Fetch/Message.php b/src/Fetch/Message.php old mode 100644 new mode 100755 index 98c8048..6a0b8c6 --- a/src/Fetch/Message.php +++ b/src/Fetch/Message.php @@ -177,6 +177,16 @@ class Message */ public static $charsetFlag = '//TRANSLIT'; + /** + * These constants can be used to easily access available flags + */ + const FLAG_RECENT = 'recent'; + const FLAG_FLAGGED = 'flagged'; + const FLAG_ANSWERED = 'answered'; + const FLAG_DELETED = 'deleted'; + const FLAG_SEEN = 'seen'; + const FLAG_DRAFT = 'draft'; + /** * This constructor takes in the uid for the message and the Imap class representing the mailbox the * message should be opened from. This constructor should generally not be called directly, but rather retrieved