From unknown Sat Sep 20 15:43:25 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#50049 <50049@debbugs.gnu.org> To: bug#50049 <50049@debbugs.gnu.org> Subject: Status: 28.0.50; lm-crack-address produces wrong-type-argument when facing invalid author format Reply-To: bug#50049 <50049@debbugs.gnu.org> Date: Sat, 20 Sep 2025 22:43:25 +0000 retitle 50049 28.0.50; lm-crack-address produces wrong-type-argument when f= acing invalid author format reassign 50049 emacs submitter 50049 Benjamin Orthen severity 50049 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 13 12:30:55 2021 Received: (at submit) by debbugs.gnu.org; 13 Aug 2021 16:30:55 +0000 Received: from localhost ([127.0.0.1]:42998 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mEa57-0007G0-TB for submit@debbugs.gnu.org; Fri, 13 Aug 2021 12:30:55 -0400 Received: from lists.gnu.org ([209.51.188.17]:35682) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mEZzr-00075w-4u for submit@debbugs.gnu.org; Fri, 13 Aug 2021 12:25:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54202) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mEZzq-0005jB-RP for bug-gnu-emacs@gnu.org; Fri, 13 Aug 2021 12:25:26 -0400 Received: from mailproxy09.manitu.net ([217.11.48.32]:39572) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mEZzn-0007qp-08 for bug-gnu-emacs@gnu.org; Fri, 13 Aug 2021 12:25:26 -0400 Received: from [IPv6:2a02:810d:4140:3dfc:d2b7:f8eb:62ab:9778] (unknown [IPv6:2a02:810d:4140:3dfc:d2b7:f8eb:62ab:9778]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: u33816@orthen.net) by mailproxy09.manitu.net (Postfix) with ESMTPSA id 823DA12000C3 for ; Fri, 13 Aug 2021 18:25:18 +0200 (CEST) To: bug-gnu-emacs@gnu.org Subject: 28.0.50; lm-crack-address produces wrong-type-argument when facing invalid author format From: Benjamin Orthen Message-ID: <7ee8253e-6f32-c1bf-a4c1-f3c54a63679f@orthen.net> Date: Fri, 13 Aug 2021 18:25:18 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=217.11.48.32; envelope-from=benjamin@orthen.net; helo=mailproxy09.manitu.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 13 Aug 2021 12:30:52 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) With recent changes (commit 5809728bc502d58f4fe96e98b472c569da3d8879), lm-crack-address produces an error when facing an invalid author format, which leads to package-build--package to fail unfortunately. (lm-crack-address "Adam Porter " at the end, leads to: Debugger entered--Lisp error: (wrong-type-argument stringp nil) string-trim-right(nil) (cons (string-trim-right (match-string 1 x)) (match-string 2 x)) (cons (cons (string-trim-right (match-string 1 x)) (match-string 2 x)) (lm-crack-address (substring x (match-end 0)))) (cond ((string-match (concat "[, \11]*\\(?:" "\\(.+?\\) +[(<]\\(\\S-+@\\S-+\\)[>)]" "\\|" "\\(?2:\\S-+@\\S-+\\) +[(<]\\(?1:[^,]*\\)[>)]" "\\|" "\\(?2:\\S-+@\\S-+\\)" "\\)") x) (cons (cons (string-trim-right (match-string 1 x)) (match-string 2 x)) (lm-crack-address (substring x (match-end 0))))) ((string-match "\\`[, \11]*\\'" x) nil) (t (list (list x)))) lm-crack-address("Adam Porter ) id 1mEtfe-0007DG-1K for submit@debbugs.gnu.org; Sat, 14 Aug 2021 09:25:58 -0400 Received: from quimby.gnus.org ([95.216.78.240]:33146) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mEtfY-0007Cv-GJ for 50049@debbugs.gnu.org; Sat, 14 Aug 2021 09:25:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Gg5RRyvoT6d3h9huqTSM9xcKRQlMNVxDsXgZ8NIpIDM=; b=j6nCXlOGwmMMhw5y4RlNQJBOXd UQ4nxRJIWWTMWm4KSSSk9ujSGVbHp91m/NJfD/Csz6IPPADJyBB+19fUXm6SWaEw4tMcqbUtGvvOm dgwwRLRE9NpUZUjYt6f8pBZ0ZdvvOoAuJYRhMKrVyROSlUkgGYLxlf27cRheQyPndXF8=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mEtfN-0001L8-Hc; Sat, 14 Aug 2021 15:25:41 +0200 From: Lars Ingebrigtsen To: Benjamin Orthen Subject: Re: bug#50049: 28.0.50; lm-crack-address produces wrong-type-argument when facing invalid author format References: <7ee8253e-6f32-c1bf-a4c1-f3c54a63679f@orthen.net> Date: Sat, 14 Aug 2021 15:25:35 +0200 In-Reply-To: <7ee8253e-6f32-c1bf-a4c1-f3c54a63679f@orthen.net> (Benjamin Orthen's message of "Fri, 13 Aug 2021 18:25:18 +0200") Message-ID: <87fsvctay8.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Benjamin Orthen writes: > With recent changes (commit 5809728bc502d58f4fe96e98b472c569da3d8879), > lm-crack-address produces an error when facing an invalid author > format, which leads to package-build--package to fail unfo [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 50049 Cc: 50049@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Benjamin Orthen writes: > With recent changes (commit 5809728bc502d58f4fe96e98b472c569da3d8879), > lm-crack-address produces an error when facing an invalid author > format, which leads to package-build--package to fail unfortunately. > > (lm-crack-address "Adam Porter ">" at the end, leads to: Yeah, we need an address splitting thing that's less strict than `mail-header-parse-address' (which is used for protocol-specific stuff) and less weird than `mail-extract-address-components' all over Emacs. So I've now added this to Emacs 28 make lm-crack-address use that instead, which fixes this problem. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 14 09:26:05 2021 Received: (at control) by debbugs.gnu.org; 14 Aug 2021 13:26:05 +0000 Received: from localhost ([127.0.0.1]:43832 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mEtfl-0007Dd-KU for submit@debbugs.gnu.org; Sat, 14 Aug 2021 09:26:05 -0400 Received: from quimby.gnus.org ([95.216.78.240]:33162) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mEtfg-0007D7-RJ for control@debbugs.gnu.org; Sat, 14 Aug 2021 09:26:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=QOzPltWzip15hjU2w1vtsRZXrHOUbyIfo+ZflPC1DEY=; b=u1/LW1YmKfcf3xmt4x84iFbQsG NzWYWqek5vWLNuOQwg5hSGqKBCt+snACpPj/8yDdU2Aoer96IqcBsNNv/5aLTKYaEIt8hRf4DId32 G/bADl/waCv4H2bKR2T7Xr7FqnvrlJL0ViN1CJjbkvAz3v76RUsfTtHnjewIhrWHL/ec=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mEtfY-0001LK-Th for control@debbugs.gnu.org; Sat, 14 Aug 2021 15:25:51 +0200 Date: Sat, 14 Aug 2021 15:25:46 +0200 Message-Id: <87eeawtaxx.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #50049 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 50049 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 50049 28.1 quit From unknown Sat Sep 20 15:43:25 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 12 Sep 2021 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator