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

From: Lars Ingebrigtsen <[email-masked]>
Date: Sat, 01 Feb 2014 12:43:30 -0800

Peter Münster <[email-masked]> writes:

> 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.

Hm.  That's wrong, isn't it?  Were you able to determine why it's wrong?

> But it seems, that another function is interesting: `message-is-yours-p'
> 	   ;; 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))))))
> `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.

Aha, yes, that also needs fixing...

>> It seems to work for me...
>
> Perhaps you have set 'message-alternative-emails'? In my setup it's nil.

No, it's nil for me, too.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/