GNU bug report logs - #34293
27.0.50; comma inserted at the beginning of email address

Previous Next

Package: gnus;

Reported by: Juri Linkov <juri <at> linkov.net>

Date: Sat, 2 Feb 2019 21:18:01 UTC

Severity: normal

Tags: fixed

Found in version 5.13

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 34293 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Juri Linkov <juri <at> linkov.net>
Cc: 34293 <at> debbugs.gnu.org
Subject: Re: bug#34293: 27.0.50;
 comma inserted at the beginning of email address
Date: Tue, 09 Jul 2019 19:20:06 +0200
Juri Linkov <juri <at> linkov.net> writes:

> I have customized 'message-alternative-emails' to a regexp that
> matches email aliases, but when a email lacks the 'To:' field,
> message-use-alternative-email-as-from doesn't remove
> the leading ',' prepended due to the empty 'To' field:
>
> (defun message-use-alternative-email-as-from ()
>   ...
>   (let* ((fields '("To" "Cc" "From"))
> 	 (emails
> 	  (message-tokenize-header
> 	   (mail-strip-quoted-names
> 	    (mapconcat 'message-fetch-reply-field fields ","))))
>   ...
>
> As a result, a comma is added to the beginning of email address.

Yup.  Should be fixed on the trunk now.

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




This bug report was last modified 6 years and 12 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.