Subject: bug#14166: 24.3.50; report-emacs-bug and mail-user-agent == 'gnus-user-agent

From: Stefan Monnier <[email-masked]>
Date: Thu, 11 Apr 2013 09:51:10 -0400

> +    (if (eq mail-user-agent 'gnus-user-agent)
> +	(progn
> +	  (require 'gnus) ;; It defines `gnus-newsgroup-name'.
> +	  (let ((gnus-newsgroup-name "report-emacs-bug"))
> +	    (compose-mail report-emacs-bug-address topic)))
> +      (compose-mail report-emacs-bug-address topic))

Why would we need such a hack?  `compose-mail' already receives very
clearly the destination address.

more to the point: we start with a call to Gnus's `composefunc' with an
explicit "to" address (with value report-emacs-bug-address).  And we end
with a message that uses a different "to" address.  So the problem seems
to be on Gnus's side only.

        Stefan