summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2020-11-09 16:27:35 +0200
committerSergey Poznyakoff <gray@gnu.org>2020-11-09 16:31:33 +0200
commit5eaafe97469cde9690b37895e4af90511d9c4dc3 (patch)
tree84273231d8db25170db6ee4343be1a0c9b19d706 /include
parent3cab87f05d8a4bbb80198ecb24308f6d21642119 (diff)
downloadmailutils-5eaafe97469cde9690b37895e4af90511d9c4dc3.tar.gz
mailutils-5eaafe97469cde9690b37895e4af90511d9c4dc3.tar.bz2
Fix mapping of the \Seen IMAP attribute.
* include/mailutils/attribute.h: Document message attributes. * libmailutils/imapio/flags.c (_imap4_attrlist): \Seen corresponds to MU_ATTRIBUTE_READ.
Diffstat (limited to 'include')
-rw-r--r--include/mailutils/attribute.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/include/mailutils/attribute.h b/include/mailutils/attribute.h
index 24707ae2d..d47af2a19 100644
--- a/include/mailutils/attribute.h
+++ b/include/mailutils/attribute.h
@@ -24,12 +24,34 @@
extern "C" {
#endif
+/*
+ * Message attributes:
+ */
+
+/* The message has been replied to: */
#define MU_ATTRIBUTE_ANSWERED 0x01
+
+/* The message is explicitly flagged for some purpose: */
#define MU_ATTRIBUTE_FLAGGED 0x02
+
+/* The message is deleted. It will remain in this state until it
+ is expunged (and, consequently, physically removed from the
+ mailbox, or the attribute is removed. */
#define MU_ATTRIBUTE_DELETED 0x04
+
+/* This is a draft message */
#define MU_ATTRIBUTE_DRAFT 0x08
+
+/* The user has seen the message. Notice, that it does not mean that
+ they have read it, all it implies is that the user is aware about
+ existence of this message in the mailbox (e.g. it was displayed in
+ some kind of mailbox listing, as the mail "h" command). */
#define MU_ATTRIBUTE_SEEN 0x10
+
+/* The user has read the message at least partially. */
#define MU_ATTRIBUTE_READ 0x20
+
+/* The message was modified, but not yet saved to the mailbox. */
#define MU_ATTRIBUTE_MODIFIED 0x40
/* A message is recent if the current session is the first session
@@ -46,7 +68,7 @@ extern "C" {
extern int mu_attribute_create (mu_attribute_t *, void *);
extern void mu_attribute_destroy (mu_attribute_t *, void *);
-extern void * mu_attribute_get_owner (mu_attribute_t);
+extern void *mu_attribute_get_owner (mu_attribute_t);
extern int mu_attribute_is_modified (mu_attribute_t);
extern int mu_attribute_clear_modified (mu_attribute_t);
extern int mu_attribute_set_modified (mu_attribute_t attr);

Return to:

Send suggestions and report system problems to the System administrator.