unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Michal Sojka <sojkam1@fel.cvut.cz>
To: David Edmondson <dme@dme.org>,
	sfischme@uwaterloo.ca, Notmuch Mail <notmuch@notmuchmail.org>
Subject: Re: message-default-mail-headers not working in notmuch 0.22
Date: Sun, 01 May 2016 10:38:18 +0200	[thread overview]
Message-ID: <87y47utbph.fsf@steelpick.2x.cz> (raw)
In-Reply-To: <m2shy4eb6z.fsf@dme.org>

On Fri, Apr 29 2016, David Edmondson wrote:
> On Fri, Apr 29 2016, Sebastian Fischmeister wrote:
>> After upgrading to notmuch 0.22, my emacs config seems broken:
>>
>> (setq message-default-mail-headers "Reply-to: me@example.com\nBcc: me@example.com")
>>
>> When creating a new mail, it has no header other than "To:" and
>> "Subject:".
>>
>> Since I cannot find any item in the NEWS related to this release, is
>> this expected behaviour?
>
> No, it's not intended. Please try this patch:
>
> diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
> index 0445975..399e138 100644
> --- a/emacs/notmuch-mua.el
> +++ b/emacs/notmuch-mua.el
> @@ -338,7 +338,10 @@ modified. This function is notmuch addaptation of
>  	  ;; We need to convert any string input, eg from rmail-start-mail.
>  	  (dolist (h other-headers other-headers)
>  	    (if (stringp (car h)) (setcar h (intern (capitalize (car h))))))))
> -	(args (list yank-action send-actions)))
> +	(args (list yank-action send-actions))
> +	;; Cause `message-setup-1' to do things relevant for mail,
> +	;; such as observe `message-default-mail-headers'.
> +	(message-this-is-mail t))

Yes, this seems to be reasonable thing to do. Thanks.

-Michal

  parent reply	other threads:[~2016-05-01  8:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-29 13:54 message-default-mail-headers not working in notmuch 0.22 Sebastian Fischmeister
2016-04-29 14:33 ` David Edmondson
2016-04-29 20:55   ` Sebastian Fischmeister
2016-05-01  8:38   ` Michal Sojka [this message]
2016-04-29 14:44 ` David Bremner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y47utbph.fsf@steelpick.2x.cz \
    --to=sojkam1@fel.cvut.cz \
    --cc=dme@dme.org \
    --cc=notmuch@notmuchmail.org \
    --cc=sfischme@uwaterloo.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).