Robert Pluim <rpluim@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Robert Pluim <rpluim@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 77866) by debbugs.gnu.org; 18 Apr 2025 15:15:57 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 18 11:15:57 2025 Received: from localhost ([127.0.0.1]:52494 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1u5nRZ-0001so-1K for submit <at> debbugs.gnu.org; Fri, 18 Apr 2025 11:15:57 -0400 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:56557) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <rpluim@HIDDEN>) id 1u5nRH-0001mn-D5; Fri, 18 Apr 2025 11:15:40 -0400 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-43ce70f9afbso17186555e9.0; Fri, 18 Apr 2025 08:15:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1744989325; x=1745594125; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=BARd2fANsINlFfQtQcR2z7xlR7h3NKdmc/jLgGZCGFY=; b=VQlPz10gN1U7Ppz2+6K5FbMUzrSu/hikrL5n7IpMiRbkmNBeDRLcACC9SOVU7fwonM Dnxg7rQW3N3jfGQFWpPuleLPzZPhlR2C9rb/plJnQNYto3jrmxrIJRNXnfR2Whc4yRPq 4KaclqW6Jjy+zVjqvo0niB9rRWx65tdqknbHz4QOLPyMgYs7lFqkU5iD4lGV/xE8MDhV 7RVePIjhSAplhSfu4mcJMGGzujorMzGrMUPUoAPKLVSnyD7SbFuzDfffwppS4Vbq43KM 51dWkNuuB//ElGJwhIGGC1zLe6/PgvHSQFU3aqOOrJrMoLz9raaaxN7eo5ANHR+1nbsn z9ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744989325; x=1745594125; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BARd2fANsINlFfQtQcR2z7xlR7h3NKdmc/jLgGZCGFY=; b=nrLNaTHLKlVqvECPomMDMcD6NrYyIy+XQ2+5UkEj9YRgYmscTE9RAoWSkcay/qQ0yg rRXytKLP6ehf+3GwHW0K2KKZm2Kw/CNTt8HMsQSgRcMC3bMBsbk9mnh8cIbKZFBNSGLA kMcp8wk/1j4EbBzHPrvQ24RJhxsf0MqiJbVQf+NQsJ8poUfxIGaJRsnQw4uDk23fbtEh CNx3rbTYuezDG9/CXdWtEbrP0gne7q+cX6AaNSHQk1Vut2ID1hjkV4RQSH39DMQZ04kw O+8XJCP9Nb//GfY4nVoSxfaV0K91OpUAI9STGg9tOFMB4+iBgxUSGX2qBE26a/wXJlxO Z0vg== X-Forwarded-Encrypted: i=1; AJvYcCUEbaF2XWBPmTRg5yRHL/Z47JRHlKu0/syfjCP1V/KRdKdN7HajwXkqToar9xEsUbM9ueBN+C/utw==@debbugs.gnu.org, AJvYcCVqBI49TmrVLfd+vXJGcABQzDXbl+eN7/DYQQk791L8h5u6ZXmJMTxOnw+mkomMtR5EEXQG7g==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yz9B9Em4hMDztXJ24NZP0Ip6EHcVBNaG9gJYodlmEa386SYG6pD N1+YcHdOCw4CBa7zcD9mXMDxSEIhOQpcuCyJjABfWUirgWekB8lkBL4p+g== X-Gm-Gg: ASbGncuOmUgYe/ubeTMcT1NxhPvBok99tdo8NqCyGk3WKATQYtRTUgk44xUG3AHosLp I4Q37RSQNagEoh4Y5K+uzIgBE8zP9HIbFEhjBEZOqt+RMH+2Cs9WehJYFpMJpYD2S4ex9xX378o AD4psDTCjTGJGgARpg6REQCeiHbxkm5i2HBkwXFi61jIsx3Tks0j1iYDWx9rLps7XSBoPfmZp4y zG3byWJRvfknAuRqtll7rKaMLpVVuWWFL5OEdvaauacGRRcYjvATGaYRQNyoR9y89BV0r5w3vZa qPcx10KYEidOnfOYHyrkqBFHpQXq X-Google-Smtp-Source: AGHT+IHV1/Cukpoggp6Q2kjlnCMKNisGY2wjCYmAB7A37ofQjoIl5SW5qG82KMdVwmhr08a39LVV6g== X-Received: by 2002:a05:600c:b8b:b0:440:66a4:8d1a with SMTP id 5b1f17b1804b1-4406ab671d0mr26736245e9.7.1744989324942; Fri, 18 Apr 2025 08:15:24 -0700 (PDT) Received: from rltb ([2a01:e0a:3f3:fb51:90b7:b360:bb5d:2064]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4406d5a9e6csm26461535e9.1.2025.04.18.08.15.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Apr 2025 08:15:24 -0700 (PDT) From: Robert Pluim <rpluim@HIDDEN> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#77866: 30.0.50; message.el handling of non-ascii names in addresses In-Reply-To: <868qnxbt8z.fsf@HIDDEN> References: <m0ikn3x81u.fsf@HIDDEN> <875xj2ganh.fsf@HIDDEN> <m01ptqyep6.fsf@HIDDEN> <87wmbhex41.fsf@HIDDEN> <868qnxbt8z.fsf@HIDDEN> Date: Fri, 18 Apr 2025 17:15:23 +0200 Message-ID: <87ldrxec1g.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 77866 Cc: abdo.haji.ali@HIDDEN, 77866 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) tags 77866 fixed close 77866 31.1 quit >>>>> On Fri, 18 Apr 2025 14:31:56 +0300, Eli Zaretskii <eliz@HIDDEN> said: >> Cc: 77866 <at> debbugs.gnu.org >> From: Robert Pluim <rpluim@HIDDEN> >> Date: Fri, 18 Apr 2025 09:40:14 +0200 >>=20 >> >>>>> On Thu, 17 Apr 2025 16:45:25 +0100, Al Haji-Ali <abdo.haji.ali= @gmail.com> said: >>=20 Abdo> On 17/04/2025, Robert Pluim wrote: >> >> The root cause of this is that `mail-encode-encoded-word-buffer' = is >> >> using the `mime' method to encode the value, instead of the >> >> `address-mime' method. That=CA=BCs because you=CA=BCve written th= e "Cc" header >> >> name as "CC", and the lookup for the method based on the header n= ame >> >> is being done case-sensitively. Patch below fixes it for me (it a= lso >> >> helps if you put a newline at the end of the string you=CA=BCre t= esting) >>=20 Abdo> Yep, can confirm your patch fixes the issue. Thanks! >>=20 >> Thanks for testing. Maintainers, since this bug has been around >> basically forever, I guess the fix goes to master, not the release >> branch? Eli> Yes, please. Robert --=20 Pushed to master. 7d886f214e1 2025-04-18T15:53:13+02:00 "Match mail headers case-insensitivel= y when encoding" https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=3D7d886f214e165d84d3= fdbe14b3766d9e88056529
bug-gnu-emacs@HIDDEN
:bug#77866
; Package emacs
.
Full text available.Received: (at 77866) by debbugs.gnu.org; 18 Apr 2025 11:32:15 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 18 07:32:15 2025 Received: from localhost ([127.0.0.1]:50347 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1u5jx7-00057f-4H for submit <at> debbugs.gnu.org; Fri, 18 Apr 2025 07:32:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54460) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1u5jx0-00050S-IA for 77866 <at> debbugs.gnu.org; Fri, 18 Apr 2025 07:32:10 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1u5jwu-0005w5-72; Fri, 18 Apr 2025 07:32:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=78e8P+tiri5WKyBvniLtywlEeRFHIjKpJq8aEbtiUlA=; b=QbYZxKHxExEW8p2GlNr+ Sa3F71IEoc9jSv5tT/5EPtMpL1FTdVTi/fNWDQQHmErtdMKTKn3IC9naMCxvx8056r950t9pTsZbW qDFWM4vId0USlCZLJrKfXdD9vUUY20NrPYqMvV5dnHLiMwlE7L+YnLP5xoXdxTBJrZSCrcX5YppZ0 o5T+iJf74v0kFrgKJ/to71JsmXuspXMQNPCyO0XLzzSRXqG03Zqdfan52+/0tiklmNSvtMqJQgCyz jT7M35vCR1naF05YGzWsZ0MZ2/WzD0ZWqy2CMq2osGmD+ZHj703tyLiSgQCi825BayEbrv23bi6Uf k9ctblHdr2XyPA==; Date: Fri, 18 Apr 2025 14:31:56 +0300 Message-Id: <868qnxbt8z.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Robert Pluim <rpluim@HIDDEN> In-Reply-To: <87wmbhex41.fsf@HIDDEN> (message from Robert Pluim on Fri, 18 Apr 2025 09:40:14 +0200) Subject: Re: bug#77866: 30.0.50; message.el handling of non-ascii names in addresses References: <m0ikn3x81u.fsf@HIDDEN> <875xj2ganh.fsf@HIDDEN> <m01ptqyep6.fsf@HIDDEN> <87wmbhex41.fsf@HIDDEN> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 77866 Cc: abdo.haji.ali@HIDDEN, 77866 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Cc: 77866 <at> debbugs.gnu.org > From: Robert Pluim <rpluim@HIDDEN> > Date: Fri, 18 Apr 2025 09:40:14 +0200 > > >>>>> On Thu, 17 Apr 2025 16:45:25 +0100, Al Haji-Ali <abdo.haji.ali@HIDDEN> said: > > Abdo> On 17/04/2025, Robert Pluim wrote: > >> The root cause of this is that `mail-encode-encoded-word-buffer' is > >> using the `mime' method to encode the value, instead of the > >> `address-mime' method. Thatʼs because youʼve written the "Cc" header > >> name as "CC", and the lookup for the method based on the header name > >> is being done case-sensitively. Patch below fixes it for me (it also > >> helps if you put a newline at the end of the string youʼre testing) > > Abdo> Yep, can confirm your patch fixes the issue. Thanks! > > Thanks for testing. Maintainers, since this bug has been around > basically forever, I guess the fix goes to master, not the release > branch? Yes, please.
bug-gnu-emacs@HIDDEN
:bug#77866
; Package emacs
.
Full text available.Received: (at 77866) by debbugs.gnu.org; 18 Apr 2025 07:40:30 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 18 03:40:29 2025 Received: from localhost ([127.0.0.1]:49524 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1u5gKq-0004nt-0v for submit <at> debbugs.gnu.org; Fri, 18 Apr 2025 03:40:29 -0400 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]:58692) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <rpluim@HIDDEN>) id 1u5gKj-0004iq-H2 for 77866 <at> debbugs.gnu.org; Fri, 18 Apr 2025 03:40:24 -0400 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-43ce71582e9so12333055e9.1 for <77866 <at> debbugs.gnu.org>; Fri, 18 Apr 2025 00:40:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1744962015; x=1745566815; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=/VAFwkgbrthiG8JsJjoG1045FjgCYo/5+XS8fibIBwg=; b=LSopYMXUi8ae6EVI835Vrgu4olVDUf3ZFd20Qg1qucNlujBBlWAj79+BaXdiMloyDK SXRmEFimxm57gaUNGf9BH7SYtiy6GgAxSVYf51PBQz/79RW3haHUfw04VTohn1z+f0PN n2rw6l+e4QMKlkc8Y22kBXPLJ/mZalnQJgJ+AmBsyNT9fisH4kCHu4A/w/L+f05LTOv9 k3hbuvMAtqEhNJ1j3R7mat/6SKMoM/Lm6sSUDeehNWRu5bAYDDkedNp1EwKO49yTK4bX XwGK9cC7vE+eywhdlReTUv0+q/r34or/tYqdG0btR2IfI97hNiMjUd1pCZ9SYGtMswrG Hdsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744962015; x=1745566815; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/VAFwkgbrthiG8JsJjoG1045FjgCYo/5+XS8fibIBwg=; b=FD0FAjMmXF+Zb/3Q6FkPHH7HtZLvrsEATw3WLRPUqY9K/ytRW1zPqBBH61RjYHIHo4 F6cwFc6s4PW3UzRjrRLPrVWLhA9FU6ypab42szdNznTQt4EmR99wzTj3G/E5UB6eAgCc 7WzxX492oq0+YW2SwTuqCqlNp5kTWlhdb71yKoqdmzlyQ03haB6cGyMl4WtkVbHMbSbo bDnLMD1RrnG5c35uTIovQyRPGWhgSYXkgYY8bebxyZisCABRvxX3XOgAZhL3OZ50KsxC I0pNCk3XJngsk0S/7iBkRdOTrm0YO6vIdkXsNrPCsAuLViGwHT6cgSeQK539yVoaptRa 5SIw== X-Gm-Message-State: AOJu0YwRLppo+Bfi7vLtk+MnOJyYrnYNHsg278QaOgojx7qH3c/EilUt NOH/WtIwv5jHv4wle9dHiBB4vQSqvd6amPCpuNRpdc3Ffp4rGoySyxdeKQ== X-Gm-Gg: ASbGnctru/ivKe22NIALvswhh1K4dBZ0+rXfvdXzCWRPypHOidTkDF2oE5EYcp+z9ZU +dhmb2nat2+ijKlN8cq7Fp1NJrREFjKQl/EemDyg1OJaEScSBtk9SuF3jeVc2sNs28M8UQA1Qt2 X8vthGxN24Z/+9pQ1I0nDOJw5rMxPkeVET2+haVik0gZxWs59hLnrEWy0aXT3+RQ9RiBJnYfPek mthd85PrOgDSETEPctI94+D6e558d/JL83AvRlOjhyTQFJEnzg9k4RFwSGRNRuAFoGnTQT0fItx +baDViC0Q7ibBpe9Y4s070jqwMT8uy79Q/Cg1uk= X-Google-Smtp-Source: AGHT+IHo2DCW5+nqoJi7MmbuMSktSOs3r2f9f6199R6h7Ju3cgd81KRZLexFLyTvcGP5EODVy3JFoQ== X-Received: by 2002:a05:600c:4e87:b0:43c:fffc:786c with SMTP id 5b1f17b1804b1-4406abbec98mr12409915e9.19.1744962014858; Fri, 18 Apr 2025 00:40:14 -0700 (PDT) Received: from rltb ([2a01:e0a:3f3:fb51:e198:763f:81a2:38c9]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4406d5bbcaasm12160875e9.21.2025.04.18.00.40.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Apr 2025 00:40:14 -0700 (PDT) From: Robert Pluim <rpluim@HIDDEN> To: Al Haji-Ali <abdo.haji.ali@HIDDEN> Subject: Re: bug#77866: 30.0.50; message.el handling of non-ascii names in addresses In-Reply-To: <m01ptqyep6.fsf@HIDDEN> References: <m0ikn3x81u.fsf@HIDDEN> <875xj2ganh.fsf@HIDDEN> <m01ptqyep6.fsf@HIDDEN> Date: Fri, 18 Apr 2025 09:40:14 +0200 Message-ID: <87wmbhex41.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 77866 Cc: 77866 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) >>>>> On Thu, 17 Apr 2025 16:45:25 +0100, Al Haji-Ali <abdo.haji.ali@gmail.= com> said: Abdo> On 17/04/2025, Robert Pluim wrote: >> The root cause of this is that `mail-encode-encoded-word-buffer' is >> using the `mime' method to encode the value, instead of the >> `address-mime' method. That=CA=BCs because you=CA=BCve written the "= Cc" header >> name as "CC", and the lookup for the method based on the header name >> is being done case-sensitively. Patch below fixes it for me (it also >> helps if you put a newline at the end of the string you=CA=BCre test= ing) Abdo> Yep, can confirm your patch fixes the issue. Thanks! Thanks for testing. Maintainers, since this bug has been around basically forever, I guess the fix goes to master, not the release branch? Thanks Robert --=20
bug-gnu-emacs@HIDDEN
:bug#77866
; Package emacs
.
Full text available.Received: (at 77866) by debbugs.gnu.org; 17 Apr 2025 15:50:13 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 17 11:50:13 2025 Received: from localhost ([127.0.0.1]:48174 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1u5RVF-0006Qa-2x for submit <at> debbugs.gnu.org; Thu, 17 Apr 2025 11:50:13 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:46487) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <abdo.haji.ali@HIDDEN>) id 1u5RVA-0006Ok-Id for 77866 <at> debbugs.gnu.org; Thu, 17 Apr 2025 11:50:10 -0400 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-43ea40a6e98so8107505e9.1 for <77866 <at> debbugs.gnu.org>; Thu, 17 Apr 2025 08:50:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1744905002; x=1745509802; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=w5CmezkXGs0Og0g8JETkIjEQw/RdAw5ILw5IGddBqv0=; b=T9ZcI/R0E8R/HV5zon6h2sKkzmNYCYENxWtTWttD2i3FJpUIlVG8RfwF1LReZhxOsQ g6r8vR3qf8nidTCXOhMiPiVHI/CfCH3CtpzjWHE/Dg2tC6YEZ5AWWRhUrrJ806zU8xop tRlDvrYyaD1TB6TkZ7qvEHZD4k0UUrGfHK4bTAKzZ5Sb4/nTf6aJCnh137gYvdBp7cDJ NuzC/ApmPK/FTM25ZTGyUDwPKgH8Iig4fc6kEPlfrIbGJHmkno0nW0SAWQ1eF1LEmmqQ 0w7hOac1u2eJPw8WWFkaY3SeWOCPUoydHECYMLdbDa76PJZGfhoUV/1kLajJHiPGmkZT VeHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744905002; x=1745509802; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=w5CmezkXGs0Og0g8JETkIjEQw/RdAw5ILw5IGddBqv0=; b=gEDRd2UONBxxtp3mldCsCGyYmOQS6al5EUtBJbailtGSx0Vw1cRw/j8Rn4iHmPaAMC s0oHSnp82tudEeKylzTS07IxBLcH+Tb3qUWn703nvxQMiaOSECeeXShUvtsi8lyFWwUl x7OxOqi5sTr92HC6pqV1J0jAETCYy7zzNOTgR9Gr4iXRIvSE0fLSiSCeIAysexCrt6ma 8+ecyNlQiAXKWzgEVs3pFgWpuzqEZCtLIDKgqvWZ9DIb4WMT/Li3JwPCvGZsvTX7prVY gnptjZZpekLMzOkStM8mY1wKxeiKJTGEf3etpXpHppOMXkUgfHBZb3iDeXkA94Ad3TJu anmw== X-Gm-Message-State: AOJu0YysT0RlB1Wo2drNd1lNbyrw0O0YNDCpdUijb+Ixd7Cmmq/++ujs YmDF/0Ex/GOPucBKqSgv7L/SAUrQGkgsI9LPmVpdfUiJzIkfIIrqtBol8wx3 X-Gm-Gg: ASbGncvIVo9qkskBmoJ4iBATjI+QIB1brsdRlXYrvPA2j/j3wxozd2YXpJBgKbTKjYs mh1depHGAwXauRebXpLB/lZ2a4VNTO2kNWG7orZIxp0EPVoEyIsAgZCpB0QYe9YTeXgFR6na6TV TIBxXQttEz8N2wid4zrDOtfVrRTRe9RHKf4KcEEnnggDn+hDR241HSLXAXVEIqWhfioUoEY249r kphAogDg6jfiF5Z237I543PNvIPtSRBl4qZKXc7GUQBo9NsSUlc6p2oUUMMY1kua+KVqCPaK4yM uKlBfxSlLJIeEq8xxgN3SJ7N6iCA5prNJ6AAo4wu7LflHcrTdx8EYkMUCeKmE1E6hNwkG6Jt6Za BEW8lxqyAqUOBnn6zKEFVT8Hd8widqL540DUYRidShho1W0wrToM= X-Google-Smtp-Source: AGHT+IHkNIvkL1VATek6zzbCWP65sR6o7xTiWvDcMLtgzo8apZCgBtkm62BaSWz5do28wGrodpMGMg== X-Received: by 2002:a05:600c:1988:b0:43d:40b0:5b with SMTP id 5b1f17b1804b1-4405d6abc46mr57291355e9.25.1744905002087; Thu, 17 Apr 2025 08:50:02 -0700 (PDT) Received: from localhost (sgyl-45-b2-v4wan-166941-cust3717.vm6.cable.virginm.net. [82.37.190.134]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4405b4c8028sm59798265e9.8.2025.04.17.08.50.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Apr 2025 08:50:01 -0700 (PDT) From: Al Haji-Ali <abdo.haji.ali@HIDDEN> To: Robert Pluim <rpluim@HIDDEN> Subject: Re: bug#77866: 30.0.50; message.el handling of non-ascii names in addresses In-Reply-To: <875xj2ganh.fsf@HIDDEN> References: <m0ikn3x81u.fsf@HIDDEN> <875xj2ganh.fsf@HIDDEN> Date: Thu, 17 Apr 2025 16:45:25 +0100 Message-ID: <m01ptqyep6.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 77866 Cc: 77866 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On 17/04/2025, Robert Pluim wrote: > The root cause of this is that `mail-encode-encoded-word-buffer' is > using the `mime' method to encode the value, instead of the > `address-mime' method. That=CA=BCs because you=CA=BCve written the "Cc" h= eader > name as "CC", and the lookup for the method based on the header name > is being done case-sensitively. Patch below fixes it for me (it also > helps if you put a newline at the end of the string you=CA=BCre testing) Yep, can confirm your patch fixes the issue. Thanks!
bug-gnu-emacs@HIDDEN
:bug#77866
; Package emacs
.
Full text available.Received: (at 77866) by debbugs.gnu.org; 17 Apr 2025 13:57:41 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 17 09:57:41 2025 Received: from localhost ([127.0.0.1]:47936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1u5PkK-0002Sb-Lu for submit <at> debbugs.gnu.org; Thu, 17 Apr 2025 09:57:41 -0400 Received: from smtp-out1.suse.de ([2a07:de40:b251:101:10:150:64:1]:34428) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <schwab@HIDDEN>) id 1u5PkF-0002S6-B7 for 77866 <at> debbugs.gnu.org; Thu, 17 Apr 2025 09:57:37 -0400 Received: from hawking.nue2.suse.org (unknown [10.168.4.11]) by smtp-out1.suse.de (Postfix) with ESMTP id 4B7CF2118E; Thu, 17 Apr 2025 13:57:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1744898247; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/BN1jIWFj1LPamJrmeUii/iNmqk7IC+NWVk0Dk7rAjo=; b=C7V72H8j50DNIogppCoI08tlnY/00E+cj70Zz9HAI7UFS7tq60GG9z11LclJvzI0o3bOjZ lg9F18ORIwVC8E+EerWqNXRQwRnwqO/oxSrM1uprJAsMHDJ+x9GEF1AdDBYVMQcmgsOdPn kqIIUCdp0Y2uXP8pULPAdL8BDwaKLGo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1744898247; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/BN1jIWFj1LPamJrmeUii/iNmqk7IC+NWVk0Dk7rAjo=; b=D8Tgcq7OYcEhGYNrr+344llAsauGYGkiaV8jX+RePDc4ePBknKPg7CePCvRh6ljMM2cTvR 6NhEMwiZU4wxdoCg== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1744898247; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/BN1jIWFj1LPamJrmeUii/iNmqk7IC+NWVk0Dk7rAjo=; b=C7V72H8j50DNIogppCoI08tlnY/00E+cj70Zz9HAI7UFS7tq60GG9z11LclJvzI0o3bOjZ lg9F18ORIwVC8E+EerWqNXRQwRnwqO/oxSrM1uprJAsMHDJ+x9GEF1AdDBYVMQcmgsOdPn kqIIUCdp0Y2uXP8pULPAdL8BDwaKLGo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1744898247; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/BN1jIWFj1LPamJrmeUii/iNmqk7IC+NWVk0Dk7rAjo=; b=D8Tgcq7OYcEhGYNrr+344llAsauGYGkiaV8jX+RePDc4ePBknKPg7CePCvRh6ljMM2cTvR 6NhEMwiZU4wxdoCg== Received: by hawking.nue2.suse.org (Postfix, from userid 17005) id 3C9014A04EC; Thu, 17 Apr 2025 15:57:27 +0200 (CEST) From: Andreas Schwab <schwab@HIDDEN> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#77866: 30.0.50; message.el handling of non-ascii names in addresses In-Reply-To: <868qnzdixy.fsf@HIDDEN> (Eli Zaretskii's message of "Thu, 17 Apr 2025 16:19:21 +0300") References: <m0ikn3x81u.fsf@HIDDEN> <868qnzdixy.fsf@HIDDEN> Date: Thu, 17 Apr 2025 15:57:27 +0200 Message-ID: <mvmcydaj3g8.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -4.18 X-Spamd-Result: default: False [-4.18 / 50.00]; BAYES_HAM(-2.98)[99.90%]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.20)[-0.986]; RCVD_NO_TLS_LAST(0.10)[]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; FREEMAIL_CC(0.00)[gmail.com,debbugs.gnu.org]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TO_DN_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; TAGGED_RCPT(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:mid,suse.de:email] X-Spam-Flag: NO X-Spam-Level: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 77866 Cc: Al Haji-Ali <abdo.haji.ali@HIDDEN>, 77866 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On Apr 17 2025, Eli Zaretskii wrote: > Isn't that because of the comma? No, it's because of case-fold-search. -- Andreas Schwab, SUSE Labs, schwab@HIDDEN GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."
bug-gnu-emacs@HIDDEN
:bug#77866
; Package emacs
.
Full text available.Received: (at 77866) by debbugs.gnu.org; 17 Apr 2025 13:50:29 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 17 09:50:29 2025 Received: from localhost ([127.0.0.1]:46280 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1u5PdI-0001LQ-Jl for submit <at> debbugs.gnu.org; Thu, 17 Apr 2025 09:50:29 -0400 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:46152) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <rpluim@HIDDEN>) id 1u5PdE-0001Gh-6E for 77866 <at> debbugs.gnu.org; Thu, 17 Apr 2025 09:50:22 -0400 Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-39141ffa9fcso1010170f8f.0 for <77866 <at> debbugs.gnu.org>; Thu, 17 Apr 2025 06:50:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1744897813; x=1745502613; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=XjnyY4GkRfs8OkQ7DCuAWxFDDtF1EVSOnKfjaWegi9g=; b=MCk2C2bxQ6GcrKpECSyFTySqE3HuQFpzmPAPcN+wkZi8hVPT5Gqmr5K6pizkgirO3+ IZGVJJ6iNTnrD2iFod9u97YPACcMLjVVFtDVtNcdBkP2q7MijnDQzQ2mS7J/IbEhjGen efAR+O+/EtPE9PNfCx/2oQKP5ZyhkUS4yDJcvZNswfO9nKyg6CfgpRhDYPaQbcBIONx5 W4UpQcLlhOK9eCHAV7QGecCR3H1Z/0pv3rruSfLNjoBjuYXrZWMvgir81ROTNdYz2R1F 5mxVkRceqhvRZj3/bIutcMrwCQj78XwSuaHBL/9unl+IjJdyy8gYAN/NBufyULU+rmhi Dppw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744897813; x=1745502613; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XjnyY4GkRfs8OkQ7DCuAWxFDDtF1EVSOnKfjaWegi9g=; b=GZnBYbnGRTYO/tBFPRIyTVPCmFQCQy8ccFL4RTeVB4IT3HwSVD/nDUrGBBUmM9eIkO YrCW2ty7qjRmBWEF/M+/ly9YlIhHXcjUh9Mq2oMyL+Mbva7stCH/y6KPipVA4X3rqHSH cZL5YH6B276Ao5SfErK7kUUmZZhZydLCjyecTOgJfcbYtJXQw3923LCY8XNvdbTe7bFF BSfP4ToTTb8RIHhSoMfxhq+PU7vfQO6LRQZPcKwBNsxj1vjo9lS6Dp4XKzwTSVbh0xrp ypL/fQBBm0bHx7MPkUuZh22ctBUlnoG6Wc9A4PojwAn8S549MmiqxovU4eVSE8iYIvY/ V5Pw== X-Gm-Message-State: AOJu0YxRfkwxXUtD3iJJtNU6d45MT+omNBQ/C9qthQhNNESyMfE4JDhz VmRM7EtUGCrYNn9z8ayQZc5jp5+HSddJaaolif5u8JK7rsbkSd/nW3MX2A== X-Gm-Gg: ASbGncsn8jWxqX7adtDiAFuftUUmZoHwudnDzKk7GxHFYFsStDNMVTZLBNOL3g8CL3F an+JEcksn7aUZcESGu1EN/q/rsVPBYdcXAKMCrxnZe53UHgoaqNrM7JT4iBUUV5JkepPRLZofA0 d1inL6g4qo28SFKpVmRFkMtSpaR4uy9+fE+U5lonDytz4PTIqeFuTOb7F6LEdg1tLGSG8rAmZ/c K1mY0mCZAMSk/45phWY5uW5ib9yFm89aRHkPKBL58Ii98Th5n3hnMZiqmfP3zbwjIw05ebz93+D k7SWbwlXPqG4oxtaPBQo8x5+tlnj X-Google-Smtp-Source: AGHT+IGD7gP/0XZfczSeWV3fhU7JVemwFhpo9I84HQVDihODj8HSGj/21YDPwvNfecxn48YK96bD8Q== X-Received: by 2002:a05:6000:18a7:b0:39c:2c38:4599 with SMTP id ffacd0b85a97d-39ee5b9ee51mr5669855f8f.48.1744897812985; Thu, 17 Apr 2025 06:50:12 -0700 (PDT) Received: from rltb ([2a01:e0a:3f3:fb51:e198:763f:81a2:38c9]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4405b50b964sm55349175e9.27.2025.04.17.06.50.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Apr 2025 06:50:12 -0700 (PDT) From: Robert Pluim <rpluim@HIDDEN> To: Al Haji-Ali <abdo.haji.ali@HIDDEN> Subject: Re: bug#77866: 30.0.50; message.el handling of non-ascii names in addresses In-Reply-To: <m0ikn3x81u.fsf@HIDDEN> References: <m0ikn3x81u.fsf@HIDDEN> Date: Thu, 17 Apr 2025 15:50:10 +0200 Message-ID: <875xj2ganh.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 77866 Cc: 77866 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) >>>>> On Thu, 17 Apr 2025 13:54:21 +0100, Al Haji-Ali <abdo.haji.ali@gmail.= com> said: Abdo> This is a bit difficult for me to reproduce as a user in a Abdo> clean instance of Emacs, since I am seeing it in notmuch, Abdo> which uses message.el, and I don't know how to use Abdo> message.el without my setup of notmuch. However, I am sure Abdo> that I've identified the reason for the bug(?) in message.el Abdo> and I hope my description below is sufficient. Abdo> I have an email with a header field like this: Abdo> CC: "Blanco, Ra=C3=BAl" <blanco@HIDDEN> Abdo> with a non-ASCII character in the name. When I call Abdo> `message-send-mail`, on 29.1 I get an error `split-string: Abdo> Wrong type argument: stringp, nil` Abdo> and on 30.0.50, I get the error Abdo> `Email address can't be parsed` Abdo> The reason is that `message-send-mail` calls Abdo> `mail-encode-encoded-word-buffer`, which encodes that part Abdo> of the message as: Abdo> CC: "Blanco, =3D?utf-8?Q?Ra=3DC3=3DBAl=3D22?=3D <blanco@HIDDEN> Abdo> So that the quotation marks are no longer paired, and Abdo> `mail-header-parse-addresses` splits the address into two Abdo> ill-formed ones. Thanks for the test code, it made finding the issue easy. The root cause of this is that `mail-encode-encoded-word-buffer' is using the `mime' method to encode the value, instead of the `address-mime' method. That=CA=BCs because you=CA=BCve written the "Cc" hea= der name as "CC", and the lookup for the method based on the header name is being done case-sensitively. Patch below fixes it for me (it also helps if you put a newline at the end of the string you=CA=BCre testing) diff --git a/lisp/mail/rfc2047.el b/lisp/mail/rfc2047.el index 66760a6595b..db6c0423a54 100644 --- a/lisp/mail/rfc2047.el +++ b/lisp/mail/rfc2047.el @@ -265,7 +265,8 @@ rfc2047-encode-message-header (if (=3D (length charsets) 1) (cons (mm-charset-to-coding-system (car charsets)) mm-coding-system-priorities) - mm-coding-system-priorities))) + mm-coding-system-priorities)) + (case-fold-search t)) (while (setq elem (pop alist)) (when (or (and (stringp (car elem)) (looking-at (car elem))) Robert --=20
bug-gnu-emacs@HIDDEN
:bug#77866
; Package emacs
.
Full text available.Received: (at 77866) by debbugs.gnu.org; 17 Apr 2025 13:19:43 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 17 09:19:43 2025 Received: from localhost ([127.0.0.1]:46222 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1u5P9a-0006Sr-Nl for submit <at> debbugs.gnu.org; Thu, 17 Apr 2025 09:19:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41620) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1u5P9X-0006S8-BS for 77866 <at> debbugs.gnu.org; Thu, 17 Apr 2025 09:19:40 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1u5P9Q-0000mi-0X; Thu, 17 Apr 2025 09:19:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=U1UStGS5ENqkoMl8dC0nmPt86VyK0R7nNabMOwfzvJk=; b=I/6iPrKd1K7Gmph0ILTO 0BKK3qBwfSJhRgTXpSjUD0WWWYGHRSFAhYKzk7tv7Y9wOkt1SVllabAeOp/xEjTEC4wtrCuh7ymkb OQ3iBaycohfE6J6x1enf7fx3j65pAdep57rY1onbxJAKkay78rWMtA3qXdzcK9JqdbXW2n/3I26HU 32B3SJ4IwHk1RnQcXd3mxY63/dn80UbqXDVDXpm/ybv9nUdOj5prXC9RRMD0fF12dbU1sVlZLOcT2 77oY7NVX+MyEaW69wdXmy6Sqqi1dWrncbqgxkEuDE4OwlSZ1XECl6g9EU7raK3M14bZDawbCeROJi i8Kl/B7hXFiDsQ==; Date: Thu, 17 Apr 2025 16:19:21 +0300 Message-Id: <868qnzdixy.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Al Haji-Ali <abdo.haji.ali@HIDDEN> In-Reply-To: <m0ikn3x81u.fsf@HIDDEN> (message from Al Haji-Ali on Thu, 17 Apr 2025 13:54:21 +0100) Subject: Re: bug#77866: 30.0.50; message.el handling of non-ascii names in addresses References: <m0ikn3x81u.fsf@HIDDEN> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 77866 Cc: 77866 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Al Haji-Ali <abdo.haji.ali@HIDDEN> > Date: Thu, 17 Apr 2025 13:54:21 +0100 > > > This is a bit difficult for me to reproduce as a user in a clean instance of Emacs, since I am seeing it in notmuch, which uses message.el, and I don't know how to use message.el without my setup of notmuch. > However, I am sure that I've identified the reason for the bug(?) in message.el and I hope my description below is sufficient. > > I have an email with a header field like this: > CC: "Blanco, Raúl" <blanco@HIDDEN> > > with a non-ASCII character in the name. When I call `message-send-mail`, on 29.1 I get an error > `split-string: Wrong type argument: stringp, nil` > > and on 30.0.50, I get the error > `Email address can't be parsed` > > The reason is that `message-send-mail` calls `mail-encode-encoded-word-buffer`, which encodes that part of the message as: > > CC: "Blanco, =?utf-8?Q?Ra=C3=BAl=22?= <blanco@HIDDEN> > > So that the quotation marks are no longer paired, and `mail-header-parse-addresses` splits the address into two ill-formed ones. Isn't that because of the comma? If you change the address to "Blanco Raúl" <blanco@HIDDEN> does the problem go away?
bug-gnu-emacs@HIDDEN
:bug#77866
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 17 Apr 2025 13:00:37 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 17 09:00:37 2025 Received: from localhost ([127.0.0.1]:46183 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1u5Or6-0004RF-PU for submit <at> debbugs.gnu.org; Thu, 17 Apr 2025 09:00:37 -0400 Received: from lists.gnu.org ([2001:470:142::17]:40830) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <abdo.haji.ali@HIDDEN>) id 1u5Or4-0004HV-Lp for submit <at> debbugs.gnu.org; Thu, 17 Apr 2025 09:00:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <abdo.haji.ali@HIDDEN>) id 1u5Oqc-0007aN-VZ for bug-gnu-emacs@HIDDEN; Thu, 17 Apr 2025 09:00:07 -0400 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <abdo.haji.ali@HIDDEN>) id 1u5Oqa-0005xk-Lc for bug-gnu-emacs@HIDDEN; Thu, 17 Apr 2025 09:00:06 -0400 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-43ce70f9afbso6340765e9.0 for <bug-gnu-emacs@HIDDEN>; Thu, 17 Apr 2025 06:00:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1744894802; x=1745499602; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=xtSHuMolrawd1owKnKzhNwZ6Pf5xrJ21M3cwzkpN0oo=; b=gtemTUP6U1uGuXDbNOfUVk2bJiff8mv+T/ogRf6CHAbLd5Mo2M9pwoE2BrMGPn2GQI NUqtrgRLYJvtKkyr9xfdBJUC/Y1+8Ri0zQjSVatdt1w9jObfGYe/UaaLY78/QiJaTrHZ ryvOwFdygcZzeIWX2W7oUCiCndRuOq/q/CMzYn/b5Dbv8YYHkJVMfTQPpTCilTjxIoiZ 1ymgFcV8T02kuzlJmLTqgbGhR+Xf4NVfv7v1rsg0mDT+JILFSFx7X82NXkaRJagt2Kou jc0wNE6A9RCBbZZUGj6uApQ7ZdP4WOD9es8zDzNZBdcFKm434IVrjJeeqd3gqGhXlAk7 Obfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744894802; x=1745499602; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xtSHuMolrawd1owKnKzhNwZ6Pf5xrJ21M3cwzkpN0oo=; b=etEPHDnx5nZuBnzamke/9RYMegGXethjD4j0sFRCZhzQjAWlxsohXC7rn6MXMeGHsz ilRou7hRB5rldsS+2fhEeif4DS5XkAwoZYY8mBwn5540ad1Iz9fjcGaAAkWmz4L8+tvF 8NKqCy5nhMCr6OH4Gh16wxFhep9t9d+3qgNrzxOfO63jGXjSyu1oF2PccrhJE8DL44c2 359qfaAKLwtC5fBy+byRyOQYSUR3DnfJQwlaubIaV/OElEz7VBrktoekd5prcqYwer39 TLYKv0yCjSOSdhxBgmmOUGXevOdf2C/iDJjCURAUPeYJoOWY9Hb520fEPVGa96KmvKaW lPLg== X-Gm-Message-State: AOJu0YzhU9dA0RGfuYGudEyMOAdmGCs/kJaESSLGw9QHe8ns+F6kc9Lq P+9YRsF/4eHadDQFC53ySkco3XabtQIGvxSpQZUoDE4AWsZIO4i4RWkYXg== X-Gm-Gg: ASbGncuCsd51/niLkaWUXwdbF+jkYKrcQECNxHE5RH8zaKhJ9Q4AQ2vdpkVctELaM3C 9GJFbkQjLyqY3EPbzQxcSjJ1l6NOyY8Gv3I2YmEbANGHhhxlJLEltsQP3oDf22XQiayXw/x97Ta qAFeWV+v16vLnE6Q2p7ApvRIS+gzANvsNtAi9SwvXPC465JcCI3s9kPTXENZvgTOCZCkSYobqN4 nDl10likPj0f12sYKohjE5rfqbaI2kXrqP87LzjZAldShPwdjAdciBai20k7fHBbjdGDDQvFyzI Lzan7CRs5t/qq8dntUuPAVV+c+rZeqcPlysbmvaDj36xDwV+Sg== X-Google-Smtp-Source: AGHT+IHGfRWk7F5MhxJz3fDhWpXfj6B8mp0YkC/99Lk/OXznWMsCJk6Vonm9r6/dXtXBa+DVfYDtIQ== X-Received: by 2002:a05:600c:350e:b0:43d:878c:7c40 with SMTP id 5b1f17b1804b1-4405f2fae8fmr59441975e9.10.1744894801787; Thu, 17 Apr 2025 06:00:01 -0700 (PDT) Received: from localhost ([137.195.27.88]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4405b58cc4csm54356875e9.25.2025.04.17.06.00.00 for <bug-gnu-emacs@HIDDEN> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Apr 2025 06:00:01 -0700 (PDT) From: Al Haji-Ali <abdo.haji.ali@HIDDEN> To: bug-gnu-emacs@HIDDEN Subject: 30.0.50; message.el handling of non-ascii names in addresses Date: Thu, 17 Apr 2025 13:54:21 +0100 Message-ID: <m0ikn3x81u.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=abdo.haji.ali@HIDDEN; helo=mail-wm1-x32f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.0 (/) This is a bit difficult for me to reproduce as a user in a clean instance o= f Emacs, since I am seeing it in notmuch, which uses message.el, and I don'= t know how to use message.el without my setup of notmuch. However, I am sure that I've identified the reason for the bug(?) in messag= e.el and I hope my description below is sufficient. I have an email with a header field like this: CC: "Blanco, Ra=C3=BAl" <blanco@HIDDEN> with a non-ASCII character in the name. When I call `message-send-mail`, on= 29.1 I get an error `split-string: Wrong type argument: stringp, nil` and on 30.0.50, I get the error `Email address can't be parsed` The reason is that `message-send-mail` calls `mail-encode-encoded-word-buff= er`, which encodes that part of the message as: CC: "Blanco, =3D?utf-8?Q?Ra=3DC3=3DBAl=3D22?=3D <blanco@HIDDEN> So that the quotation marks are no longer paired, and `mail-header-parse-ad= dresses` splits the address into two ill-formed ones. The code below extracts the relevant function calls from `message-send-mail= ` for an easy check (even on 'emacs -Q'): ,---- | (require 'message) | (let ((case-fold-search nil)) | (with-temp-buffer | (insert "CC: \"Blanco, Ra=C3=BAl\" <blanco@HIDDEN>") | (mail-encode-encoded-word-buffer) | (cl-loop | for addr in | (mail-header-parse-addresses | (message-fetch-field "CC") | t) | collect (cons addr (textsec-suspicious-p addr 'email-address-header)= )))) `----
Al Haji-Ali <abdo.haji.ali@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#77866
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.