notmuch reply: Add Bcc to the user's primary email address.

The user really wants a copy of all outbound messages to come back
in.
This commit is contained in:
Carl Worth 2009-11-12 11:08:36 -08:00
parent bb7ed1f153
commit 077b8b2ac6

View file

@ -251,6 +251,9 @@ notmuch_reply_command (void *ctx, int argc, char *argv[])
g_mime_object_set_header (GMIME_OBJECT (reply), g_mime_object_set_header (GMIME_OBJECT (reply),
"From", from_addr); "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>", in_reply_to = talloc_asprintf (ctx, "<%s>",
notmuch_message_get_message_id (message)); notmuch_message_get_message_id (message));