]> git.notmuchmail.org Git - notmuch/commitdiff
correct message flag enum value so that it matches the type
authorBart Trojanowski <bart@jukie.net>
Sat, 28 Nov 2009 02:20:09 +0000 (21:20 -0500)
committerCarl Worth <cworth@cworth.org>
Sat, 28 Nov 2009 04:50:59 +0000 (20:50 -0800)
As per Carl's request, this patch corrects the only value defined under
the notmuch_message_flag_t enum typedef to match the name of the type.

Signed-off-by: Bart Trojanowski <bart@jukie.net>
lib/notmuch.h
lib/thread.cc
notmuch-show.c

index e4f399291689d3d533a2aab90fe79d97159e41b8..60834fb50bb687da9d097ed5b41c15f394554854 100644 (file)
@@ -711,7 +711,7 @@ notmuch_message_get_filename (notmuch_message_t *message);
 
 /* Message flags */
 typedef enum _notmuch_message_flag {
-    NOTMUCH_MSG_FLAG_MATCHING_SEARCH,
+    NOTMUCH_MESSAGE_FLAG_MATCH,
 } notmuch_message_flag_t;
 
 /* Get a value of a flag for the email corresponding to 'message'. */
index 9e4cb5c89174cc697af2c3f828a66eeb9497024a..321937b0ac3315be803473debbc4d475736d7a23 100644 (file)
@@ -148,7 +148,7 @@ _thread_add_matched_message (notmuch_thread_t *thread,
                            notmuch_message_get_message_id (message), NULL,
                            (void **) &hashed_message)) {
        notmuch_message_set_flag (hashed_message,
-                       NOTMUCH_MSG_FLAG_MATCHING_SEARCH, 1);
+                                 NOTMUCH_MESSAGE_FLAG_MATCH, 1);
     }
 }
 
index f189e943488e69b7397a61c87e23ca4a4aaa06fe..13c91e47f17cee399d881af125ad2907916c5d56 100644 (file)
@@ -158,7 +158,7 @@ show_message (void *ctx, notmuch_message_t *message, int indent)
     printf ("\fmessage{ id:%s depth:%d match:%d filename:%s\n",
            notmuch_message_get_message_id (message),
            indent,
-           notmuch_message_get_flag (message, NOTMUCH_MSG_FLAG_MATCHING_SEARCH),
+           notmuch_message_get_flag (message, NOTMUCH_MESSAGE_FLAG_MATCH),
            notmuch_message_get_filename (message));
 
     printf ("\fheader{\n");