]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-reply.c
notmuch_query_search_threads: Avoid returning more threads than asked for.
[notmuch] / notmuch-reply.c
index d2fc6d9213c32b6cb6711c32795b12534a7d62fb..86e9b3a29b1048b3371b734097cf49477656a2ac 100644 (file)
@@ -211,7 +211,7 @@ notmuch_reply_command (void *ctx, int argc, char *argv[])
        return 1;
     }
 
-    for (messages = notmuch_query_search_messages (query);
+    for (messages = notmuch_query_search_messages (query, 0, -1);
         notmuch_messages_has_more (messages);
         notmuch_messages_advance (messages))
     {
@@ -251,6 +251,9 @@ notmuch_reply_command (void *ctx, int argc, char *argv[])
        g_mime_object_set_header (GMIME_OBJECT (reply),
                                  "From", from_addr);
 
+       g_mime_object_set_header (GMIME_OBJECT (reply), "Bcc",
+                          notmuch_config_get_user_primary_email (config));
+
        in_reply_to = talloc_asprintf (ctx, "<%s>",
                             notmuch_message_get_message_id (message));