]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-reply.c
notmuch reply: Add Bcc to the user's primary email address.
[notmuch] / notmuch-reply.c
index d2fc6d9213c32b6cb6711c32795b12534a7d62fb..f26bd5521d278be7bb812684da16bc7d5a413f57 100644 (file)
@@ -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),
                                  "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));
 
        in_reply_to = talloc_asprintf (ctx, "<%s>",
                             notmuch_message_get_message_id (message));