]> git.notmuchmail.org Git - notmuch/commitdiff
notmuch reply: Add Bcc to the user's primary email address.
authorCarl Worth <cworth@cworth.org>
Thu, 12 Nov 2009 19:08:36 +0000 (11:08 -0800)
committerCarl Worth <cworth@cworth.org>
Thu, 12 Nov 2009 19:08:36 +0000 (11:08 -0800)
The user really wants a copy of all outbound messages to come back
in.

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), "Bcc",
+                          notmuch_config_get_user_primary_email (config));
+
        in_reply_to = talloc_asprintf (ctx, "<%s>",
                             notmuch_message_get_message_id (message));