Subject: Re: bug#38967: 27.0.60; Incorrect 'from' header when gnus-summary-mail-forward called from nnir group

From: Pankaj Jangid <[email-masked]>
Date: Sun, 31 Jan 2021 11:24:53 +0530

> 1. Do nnir search on an IMAP group to create a temp nnir group
>    C-u G G <RET> search-term <RET> subject <RET>
> 2. Process mark a few articles using '#' key
> 3. gnus-summary-attach-article (S A) selects from address that is specified in
>    the configuration variable user-mail-address 

Yes. This is reproducible with nnselect.

But step (3) has misleading information. It is not picking from
user-mail-address. It is picking from gnus-posting-style,

(setq gnus-posting-styles
      '((".*"
         (name "Pankaj Jangid")
         (address "[email-masked]"))
	("nnimap\\+j4d:.*"
         (address "[email-masked]"))))

When I create an nnselect group by doing C-u G G on nnimap+j4d:INBOX
group, it should actually pick the address defined for group
(j4d:.*). But it is picking the first one, defined for (.*).