diff options
| author | Austin Clements <amdragon@mit.edu> | 2014-10-23 08:30:36 -0400 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2014-10-25 19:26:54 +0200 |
| commit | bc9c50602d20ce712188ea2cc3c5d30647d4d3f5 (patch) | |
| tree | a33888e0910ac0c3ae8be9187c4a3989fad3f4d8 /lib/notmuch.h | |
| parent | d99491f27440d83f937131a861ca547bffb8bdf1 (diff) | |
lib: Internal support for querying and creating ghost messages
This updates the message abstraction to support ghost messages: it
adds a message flag that distinguishes regular messages from ghost
messages, and an internal function for initializing a newly created
(blank) message as a ghost message.
Diffstat (limited to 'lib/notmuch.h')
| -rw-r--r-- | lib/notmuch.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/notmuch.h b/lib/notmuch.h index dae04164..92594b9d 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -1221,7 +1221,14 @@ notmuch_message_get_filenames (notmuch_message_t *message); */ typedef enum _notmuch_message_flag { NOTMUCH_MESSAGE_FLAG_MATCH, - NOTMUCH_MESSAGE_FLAG_EXCLUDED + NOTMUCH_MESSAGE_FLAG_EXCLUDED, + + /* This message is a "ghost message", meaning it has no filenames + * or content, but we know it exists because it was referenced by + * some other message. A ghost message has only a message ID and + * thread ID. + */ + NOTMUCH_MESSAGE_FLAG_GHOST, } notmuch_message_flag_t; /** |
