X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-tag.c;h=fd54bc786d84d7f910c5916e8c845dea906b5516;hp=8b6f7dc081f4dcd79cba27539ccc0dca9fdfc246;hb=40ff2ab62a4b1b4a5fad4cc8c102afb09135b9ca;hpb=aadb15a002dc01903d60ca40048d6d4ef3990863 diff --git a/notmuch-tag.c b/notmuch-tag.c index 8b6f7dc0..fd54bc78 100644 --- a/notmuch-tag.c +++ b/notmuch-tag.c @@ -107,6 +107,9 @@ notmuch_tag_command (void *ctx, unused (int argc), unused (char *argv[])) return 1; } + /* tagging is not interested in any special sort order */ + notmuch_query_set_sort (query, NOTMUCH_SORT_UNSORTED); + for (messages = notmuch_query_search_messages (query); notmuch_messages_valid (messages) && !interrupted; notmuch_messages_move_to_next (messages))