Subject: Re: bug#10808: gnus-summary-cancel-article does not check from-address of current group

From: Peter Münster <[email-masked]>
Date: Sat, 01 Feb 2014 12:08:35 +0100

On Fri, Jan 31 2014, Lars Ingebrigtsen wrote:

> Can you edebug through `gnus-summary-cancel-article' to see what
> `user-mail-address' ends up being?

Hi Lars,

It ends up being "[email-masked]", my main address.

But it seems, that another function is interesting: `message-is-yours-p'

--8<---------------cut here---------------start------------->8---
	   ;; Email address in From field equals to our address
	   (and (setq from (message-fetch-field "from"))
		(string-equal
		 (downcase (car (mail-header-parse-address from)))
		 (downcase (car (mail-header-parse-address
				 (message-make-from))))))
--8<---------------cut here---------------end--------------->8---

`message-make-from' returns my main address, and not the address for the
group ("[email-masked]"). That's why `message-is-yours-p' returns nil
in the end.

> It seems to work for me...

Perhaps you have set 'message-alternative-emails'? In my setup it's nil.

-- 
           Peter