From unknown Sun Jun 22 00:52:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#53811: 29.0.50; [PATCH] ietf-drums-parse-address and rfc2047-decode-string Resent-From: Bob Rogers Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Feb 2022 02:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53811 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 53811@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16441140426158 (code B ref -1); Sun, 06 Feb 2022 02:21:01 +0000 Received: (at submit) by debbugs.gnu.org; 6 Feb 2022 02:20:42 +0000 Received: from localhost ([127.0.0.1]:36060 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGXAQ-0001bF-4D for submit@debbugs.gnu.org; Sat, 05 Feb 2022 21:20:42 -0500 Received: from lists.gnu.org ([209.51.188.17]:35468) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGXAO-0001b8-Mo for submit@debbugs.gnu.org; Sat, 05 Feb 2022 21:20:41 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58780) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGXAJ-0000x3-P9 for bug-gnu-emacs@gnu.org; Sat, 05 Feb 2022 21:20:38 -0500 Received: from rgrjr.com ([69.164.211.47]:55660) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nGXAF-0008Bk-Nx for bug-gnu-emacs@gnu.org; Sat, 05 Feb 2022 21:20:34 -0500 Received: from rgrjr.com (c-73-16-206-7.hsd1.ma.comcast.net [73.16.206.7]) by rgrjr.com (Postfix on openSUSE) with ESMTP id 665461D6BAE for ; Sun, 6 Feb 2022 02:20:41 +0000 (UTC) Received: from orion.rgrjr.com (orion.rgrjr.com [192.168.0.3]) by scorpio.rgrjr.com (Postfix on openSUSE GNU/Linux) with ESMTP id D90585FEC6; Sat, 5 Feb 2022 21:20:30 -0500 (EST) From: Bob Rogers Date: Sat, 05 Feb 2022 21:20:30 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: none client-ip=69.164.211.47; envelope-from=rogers@rgrjr.com; helo=rgrjr.com 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_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) 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 (---) In GNU Emacs 29.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, c= airo version 1.16.0) of 2022-02-02 built on orion Repository revision: ed13b0d0f427df333f8e1f9a24015c354da4c62f Repository branch: rgr-ietf-drums-date Windowing system distributor 'The X.Org Foundation', version 11.0.12003000 System Description: openSUSE Leap 15.3 While developing tests for ietf-drums.el, I found that if ietf-drums-parse-address is asked to do RFC2047 decoding, it does not by itself load or declare the necessary rfc2047.el code. So evaluating (require 'ietf-drums) (ietf-drums-parse-address "=3D?utf-8?B?0JfQtNGA0LDMgdCy0YHRgtCy0YPQudGC0LUh?=3D " t) gets a "(void-function rfc2047-decode-string)" error. The patch below includes a possible fix plus a new test file (with the code above as a regression test). -- Bob Rogers http://www.rgrjr.com/ >From 82e26ef8edd40815347b2f1b5311ab07046cd6f7 Mon Sep 17 00:00:00 2001 From: Bob Rogers Date: Fri, 4 Feb 2022 22:08:07 -0500 Subject: [PATCH] Add ietf-drums tests, fix parse-address decoding * test/lisp/mail/ietf-drums-tests.el (ietf-drums-tests): Test most of lisp/mail/ietf-drums.el functionality. * lisp/mail/ietf-drums.el: + (ietf-drums-parse-address): Bug fix: Require rfc2047 when needed. --- lisp/mail/ietf-drums.el | 2 + test/lisp/mail/ietf-drums-tests.el | 162 +++++++++++++++++++++++++++++ 2 files changed, 164 insertions(+) create mode 100644 test/lisp/mail/ietf-drums-tests.el diff --git a/lisp/mail/ietf-drums.el b/lisp/mail/ietf-drums.el index fd9cb6abb7..473f95ca50 100644 --- a/lisp/mail/ietf-drums.el +++ b/lisp/mail/ietf-drums.el @@ -191,6 +191,8 @@ ietf-drums-parse-address "Parse STRING and return a MAILBOX / DISPLAY-NAME pair. If DECODE, the DISPLAY-NAME will have RFC2047 decoding performed (that's the \"=3D?utf...q...=3D?\") stuff." + (when decode + (require 'rfc2047)) (with-temp-buffer (let (display-name mailbox c display-string) (ietf-drums-init string) diff --git a/test/lisp/mail/ietf-drums-tests.el b/test/lisp/mail/ietf-drums= -tests.el new file mode 100644 index 0000000000..4cc38b8763 --- /dev/null +++ b/test/lisp/mail/ietf-drums-tests.el @@ -0,0 +1,162 @@ +;;; ietf-drums-tests.el --- Test suite for ietf-drums.el -*- lexical-bind= ing:t -*- + +;; Copyright (C) 2022 Free Software Foundation, Inc. + +;; Author: Bob Rogers + +;; This file is part of GNU Emacs. + +;; GNU Emacs is free software: you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. + +;; GNU Emacs is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with GNU Emacs. If not, see . + +;;; Commentary: + +;;; Code: + +(require 'ert) +(require 'ietf-drums) + +(ert-deftest ietf-drums-tests () + "Test ietf-drums functionality." + + ;; ietf-drums-remove-comments + (should (equal (ietf-drums-remove-comments "random string") "random stri= ng")) + (should (equal (ietf-drums-remove-comments "random \"non comment\" strin= g") + "random \"non comment\" string")) + (should (equal (ietf-drums-remove-comments "random (comment) string") + "random string")) + (should (equal (ietf-drums-remove-comments "random (comment) (string)") + "random ")) + (should (equal (ietf-drums-remove-comments + "random (first) (second (and)) (third) not fourth") + "random not fourth")) + + ;; ietf-drums-remove-whitespace + (should (equal (ietf-drums-remove-whitespace "random string") + "randomstring")) + (should (equal (ietf-drums-remove-whitespace "random (comment) string") + "random(comment)string")) + (should (equal (ietf-drums-remove-whitespace "random \"non comment\" str= ing") + "random\"non comment\"string")) + (should (equal (ietf-drums-remove-whitespace "random (comment)\r\n(strin= g)") + "random(comment)(string)")) + (should (equal (ietf-drums-remove-whitespace + "random (first) (second (and)) (third) not fourth") + "random(first)(second (and))(third)notfourth")) + + ;; ietf-drums-strip + (should (equal (ietf-drums-strip "random string") "randomstring")) + (should (equal (ietf-drums-strip "random \"non comment\" string") + "random\"non comment\"string")) + (should (equal (ietf-drums-strip "random (comment) string") + "randomstring")) + (should (equal (ietf-drums-strip "random (comment) (string)") + "random")) + (should (equal (ietf-drums-strip + "random (first) (second (and)) (third) not fourth") + "randomnotfourth")) + + ;; ietf-drums-strip-cte + (should (equal (ietf-drums-strip-cte "random \"non comment\" string") + ;; [the " " is still in there because it was quoted + ;; through the "strip". -- rgr, 5-Feb-22.] + "randomnon commentstring")) + (should (equal (ietf-drums-strip-cte "ran(d)do[s;t:r],,in=3Dg") + "randomstring")) + + ;; ietf-drums-quote-string + (should (equal (ietf-drums-quote-string "Bob") "Bob")) + (should (equal (ietf-drums-quote-string "Foo Bar") "\"Foo Bar\"")) + + ;; ietf-drums-get-comment + (should (equal (ietf-drums-get-comment "random string") nil)) + (should (equal (ietf-drums-get-comment "random (comment) string") "comme= nt")) + (should (equal (ietf-drums-get-comment "random \"non comment\" string") = nil)) + (should (equal (ietf-drums-get-comment "\"still (non) comment\" string") + nil)) + (should (equal (ietf-drums-get-comment "random (comment)\r\nstring") + "comment")) + (should (equal (ietf-drums-get-comment "random (comment) (string)") "str= ing")) + (should (equal (ietf-drums-get-comment + "random (first) (second (and)) (third) not fourth") + "third")) + + ;; ietf-drums-make-address + (should (equal (ietf-drums-make-address "Bob Rogers" "rogers@rgrjr.com") + "\"Bob Rogers\" ")) + (should (equal (ietf-drums-make-address nil "rogers@rgrjr.com") + "rogers@rgrjr.com")) + + ;; ietf-drums-parse-address + (should (equal (ietf-drums-parse-address "foo@example.com") + '("foo@example.com"))) + (should (equal (ietf-drums-parse-address "") + '("foo@example.com"))) + (should (equal (ietf-drums-parse-address "'foo' ") + '("foo@example.com" . "'foo'"))) + (should (equal (ietf-drums-parse-address "foo ") + '("foo@example.com" . "foo"))) + (should (equal (ietf-drums-parse-address "foo bar") + ;; [contrary to RFC2822, which wants the display-name + ;; before the address. -- rgr, 5-Feb-22.] + '("foo@example.com" . "foo bar"))) + (should (equal (ietf-drums-parse-address " foo ") + ;; [ditto. -- rgr, 5-Feb-22.] + '("foo@example.com" . "foo"))) + (should (equal (ietf-drums-parse-address "foo@example.com (foo)") + '("foo@example.com" . "foo"))) + (should (equal (ietf-drums-parse-address "Bar Baz ") + '("barbaz@example.com" . "Bar Baz"))) + (should (equal (ietf-drums-parse-address "barbaz@example.com (Bar Baz)") + '("barbaz@example.com" . "Bar Baz"))) + (should (equal (ietf-drums-parse-address + "Bar Baz (ignored) ") + '("barbaz@example.com" . "Bar Baz"))) + (should (equal (ietf-drums-parse-address " Bar Baz") + '("barbaz@example.com" . "Bar Baz"))) + (should (equal (ietf-drums-parse-address + "(Bar Baz not ignored) barbaz@example.com") + ;; [not strictly RFC2822, which expects the name + ;; comment after the address. -- rgr, 5-Feb-22.] + '("barbaz@example.com" . "Bar Baz not ignored"))) + (should (equal (ietf-drums-parse-address + "(ignored) (Bar Baz not ignored)") + '("barbaz@example.com" . "Bar Baz not ignored"))) + (should (equal (ietf-drums-parse-address + "(ignored) barbaz@example.com (Bar Baz not ignored)") + '("barbaz@example.com" . "Bar Baz not ignored"))) + ;; Test for RFC2047 token decoding. + (should (equal (ietf-drums-parse-address + "=3D?utf-8?B?0JfQtNGA0LDMgdCy0YHRgtCy0YPQudGC0LUh?=3D " + t) + '("foo@goo.ru" . "=D0=97=D0=B4=D1=80=D0=B0=CC=81=D0=B2=D1= =81=D1=82=D0=B2=D1=83=D0=B9=D1=82=D0=B5!"))) + + ;; ietf-drums-parse-addresses + ;; Note that it's not worth getting too elaborate here, as the heavy + ;; lifting is all done by ietf-drums-parse-address. + (should (equal (ietf-drums-parse-addresses "foo@example.com") + '(("foo@example.com")))) + (should (equal (ietf-drums-parse-addresses + "foo@example.com, bar@example.com") + '(("foo@example.com") ("bar@example.com")))) + (should (equal (ietf-drums-parse-addresses + "foo@example.com, quux, bar@example.com") + '(("foo@example.com") ("bar@example.com")))) + (should (equal (ietf-drums-parse-addresses + "foo@example.com, Quux Dude , bar@example= .com") + '(("foo@example.com") ("quux@noop.org" . "Quux Dude") + ("bar@example.com"))))) + +(provide 'ietf-drums-tests) + +;;; ietf-drums-tests.el ends here --=20 2.34.1 From unknown Sun Jun 22 00:52:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#53811: 29.0.50; [PATCH] ietf-drums-parse-address and rfc2047-decode-string Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Feb 2022 03:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53811 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Bob Rogers Cc: 53811@debbugs.gnu.org Received: via spool by 53811-submit@debbugs.gnu.org id=B53811.164411692319661 (code B ref 53811); Sun, 06 Feb 2022 03:09:01 +0000 Received: (at 53811) by debbugs.gnu.org; 6 Feb 2022 03:08:43 +0000 Received: from localhost ([127.0.0.1]:36089 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGXut-000573-BD for submit@debbugs.gnu.org; Sat, 05 Feb 2022 22:08:43 -0500 Received: from quimby.gnus.org ([95.216.78.240]:52080) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGXur-00056o-4t for 53811@debbugs.gnu.org; Sat, 05 Feb 2022 22:08:42 -0500 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=SjFE35qG+RrwZ32VrO5GCXeKHFcR9gY5A7gxnda3e5E=; b=tIuBPunY4m5PKEyL3iei790mFt 4Se6S2NR56ZLn7iw85PRWk0Z4aRQ1NQsYJq3eb8dXQ/xov9ch2AsoUW2c+oGy6uMUbjRPvoIwYddQ EbkuiHUvU59AYthDuOwv7jDc6aHSp50St/88YeXKEJLlqydb14fZB6V1Yx8/mWg4ls14=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nGXug-0006uJ-KV; Sun, 06 Feb 2022 04:08:34 +0100 From: Lars Ingebrigtsen References: X-Now-Playing: Julie Tippetts's _Sunset Glow_: "Sunset Glow" Date: Sun, 06 Feb 2022 04:08:29 +0100 In-Reply-To: (Bob Rogers's message of "Sat, 05 Feb 2022 21:20:30 -0500") Message-ID: <87bkzk7kuq.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.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: Bob Rogers writes: > gets a "(void-function rfc2047-decode-string)" error. The patch below > includes a possible fix plus a new test file (with the code above as a > regression test). 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-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 (---) Bob Rogers writes: > gets a "(void-function rfc2047-decode-string)" error. The patch below > includes a possible fix plus a new test file (with the code above as a > regression test). Thanks; pushed to Emacs 29. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 05 22:08:54 2022 Received: (at control) by debbugs.gnu.org; 6 Feb 2022 03:08:54 +0000 Received: from localhost ([127.0.0.1]:36092 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGXv4-00057T-Io for submit@debbugs.gnu.org; Sat, 05 Feb 2022 22:08:54 -0500 Received: from quimby.gnus.org ([95.216.78.240]:52094) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGXv3-00057H-IG for control@debbugs.gnu.org; Sat, 05 Feb 2022 22:08:53 -0500 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=PDu/Nzm12ZSfbE34DoJnxbHjX+/VhkWWzaX15ENgvRY=; b=JPN3JVo0hFRs/MS+vdRPoS0x3v rwIoYeZ+U37vylClfoga4CtQZwaVupbl8+jV0Xb+TLhVH33gOjj6Y7flD9uwHknTwxrJInJXYjVFX 6CGUSYRtkC4cKLcdV2gEd9J3BHMJCFYdAHL1ScZ/d/cINdejPGX3L0b5r9ti8bepisNM=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nGXuv-0006uT-II for control@debbugs.gnu.org; Sun, 06 Feb 2022 04:08:47 +0100 Date: Sun, 06 Feb 2022 04:08:41 +0100 Message-Id: <87a6f47kue.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #53811 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 53811 29.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 53811 29.1 quit From unknown Sun Jun 22 00:52:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#53811: 29.0.50; [PATCH] ietf-drums-parse-address and rfc2047-decode-string Resent-From: Bob Rogers Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Feb 2022 04:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53811 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Lars Ingebrigtsen Cc: 53811@debbugs.gnu.org Received: via spool by 53811-submit@debbugs.gnu.org id=B53811.16441232986138 (code B ref 53811); Sun, 06 Feb 2022 04:55:02 +0000 Received: (at 53811) by debbugs.gnu.org; 6 Feb 2022 04:54:58 +0000 Received: from localhost ([127.0.0.1]:36165 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGZZi-0001av-3c for submit@debbugs.gnu.org; Sat, 05 Feb 2022 23:54:58 -0500 Received: from rgrjr.com ([69.164.211.47]:47796) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGZZf-0001am-7m for 53811@debbugs.gnu.org; Sat, 05 Feb 2022 23:54:56 -0500 Received: from rgrjr.com (c-73-16-206-7.hsd1.ma.comcast.net [73.16.206.7]) by rgrjr.com (Postfix on openSUSE) with ESMTP id B6AB31D6BAE; Sun, 6 Feb 2022 04:55:04 +0000 (UTC) Received: from orion.rgrjr.com (orion.rgrjr.com [192.168.0.3]) by scorpio.rgrjr.com (Postfix on openSUSE GNU/Linux) with ESMTP id 1FA155FED5; Sat, 5 Feb 2022 23:54:54 -0500 (EST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-ID: <25087.21658.300002.382482@orion.rgrjr.com> Date: Sat, 5 Feb 2022 23:54:50 -0500 From: Bob Rogers In-Reply-To: <87bkzk7kuq.fsf@gnus.org> References: <87bkzk7kuq.fsf@gnus.org> X-Mailer: VM 7.19 under Emacs 29.0.50 X-Spam-Score: -0.0 (/) 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: -1.0 (-) From: Lars Ingebrigtsen Date: Sun, 06 Feb 2022 04:08:29 +0100 Bob Rogers writes: > gets a "(void-function rfc2047-decode-string)" error. The patch b= elow > includes a possible fix plus a new test file (with the code above = as a > regression test). Thanks; pushed to Emacs 29. Oops; I should also have included an update to ietf-drums.el that removes the comment implying that said "self test suite" is still unwritten. =09=09=09=09=09-- Bob -----------------------------------------------------------------------= - =46rom f38700c63f1e3603b59d2a1cca0f4fd10971d28a Mon Sep 17 00:00:00 2001 From: Bob Rogers Date: Sat, 5 Feb 2022 23:50:46 -0500 Subject: [PATCH] ; * lisp/mail/ietf-drums.el: This code is now tested.= --- lisp/mail/ietf-drums.el | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lisp/mail/ietf-drums.el b/lisp/mail/ietf-drums.el index 473f95ca50..db77aba172 100644 --- a/lisp/mail/ietf-drums.el +++ b/lisp/mail/ietf-drums.el @@ -25,16 +25,6 @@ ;; library is based on draft-ietf-drums-msg-fmt-05.txt, released on ;; 1998-08-05. =20 -;; Pending a real regression self test suite, Simon Josefsson added -;; various self test expressions snipped from bug reports, and their -;; expected value, below. I you believe it could be useful, please -;; add your own test cases, or write a real self test suite, or just -;; remove this. - -;; -;; (ietf-drums-parse-address "'foo' ") -;; =3D> ("foo@example.com" . "'foo'") - ;;; Code: =20 (eval-when-compile (require 'cl-lib)) --=20 2.34.1 From unknown Sun Jun 22 00:52:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#53811: 29.0.50; [PATCH] ietf-drums-parse-address and rfc2047-decode-string Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Feb 2022 23:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53811 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Bob Rogers Cc: 53811@debbugs.gnu.org Received: via spool by 53811-submit@debbugs.gnu.org id=B53811.16441889549639 (code B ref 53811); Sun, 06 Feb 2022 23:10:02 +0000 Received: (at 53811) by debbugs.gnu.org; 6 Feb 2022 23:09:14 +0000 Received: from localhost ([127.0.0.1]:40199 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGqef-0002VP-Oe for submit@debbugs.gnu.org; Sun, 06 Feb 2022 18:09:14 -0500 Received: from quimby.gnus.org ([95.216.78.240]:32922) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGqeT-0002Ub-Oi for 53811@debbugs.gnu.org; Sun, 06 Feb 2022 18:09:12 -0500 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=EbAaxKeWo5BE5N94KfZBWNQHJWUf91iwP8w/V8qGEmc=; b=CpF0QCgJ6iGqcrXwnQ5OngXl4M /5hTDHjP7bEJglbMylTSjAbu2CWy6cMW3Bo9eyMk0mHi7lyy++apkI9TOPhak8RZ7XnfoHVb5ul+j gpmxXeZfnHlZ5mz+3MX+IDp0zBaTUMlEC88k7zQJ7LYR2hpQp4vH7sibd1KujMv0DYw4=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nGqeK-0000mj-4a; Mon, 07 Feb 2022 00:08:55 +0100 From: Lars Ingebrigtsen References: <87bkzk7kuq.fsf@gnus.org> <25087.21658.300002.382482@orion.rgrjr.com> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEUQCgxdMDliTJNL PYLCWjejTiPejHr///+9aF0aAAAAAWJLR0QHFmGI6wAAAAd0SU1FB+YCBhcDLFP+1FYAAAGfSURB VDjLbZJNbsMgEIVxo2Rt2rBvSA4QixO4HVgHCfZNRbj/ETrDf9y8yLHMN+8Ng80YY3wQS5rzTQ46 s4nxSS3XAi5SftHf5YQmMb9/X9k0F0cC8rzwedkpOYCcJBWSs5TXbQ+pPpbdK6AUX5RSrx0IVAK/ Gwtp3jiUEj7p9gQUz6teuw4WTrWukAZOJcE/g5OvwRXAjb19slqtGTvqbEBwuLPacEW3a2Z0jGDf wOGnBrsVX9PUmmOULmQVOG+xJ4f2BXFbgS+gyvIOUB1wSBj3P9Mb1N0QdboR2N8Gh4tkoaNExwhM DLnA/gMpCw95bI7nHgugAXtzzh2CR3UgaHvCJBPq5FN6CZbGJlC7VweO5LRIQI8AZ3UxGAJQwZ6i OLe0SALoZ0VApEW6jKXmc57D8iPF06bArD4dSXJYDzkqAMS7qJPTV4EgRLwMxIfwUIAALMQ1EyEA 7RfyB5cMAePjFnhIQkTSOCs8A/yhhAate3MACgQNgZ7aWaFH47OmAvJ34HJ8hKIS5XMbU9pjRQeO YprBd5BdWOBci3qpPzUxBQ9waXW8AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTAyLTA2VDIzOjAz OjQ0KzAwOjAwwn/57gAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wMi0wNlQyMzowMzo0NCswMDow MLMiQVIAAAAASUVORK5CYII= X-Now-Playing: Alice Coltrane's _Eternity_: "Los Caballos" Date: Mon, 07 Feb 2022 00:08:48 +0100 In-Reply-To: <25087.21658.300002.382482@orion.rgrjr.com> (Bob Rogers's message of "Sat, 5 Feb 2022 23:54:50 -0500") Message-ID: <87y22n4mpr.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.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: Bob Rogers writes: > Oops; I should also have included an update to ietf-drums.el that > removes the comment implying that said "self test suite" is still > unwritten. 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: -0.0 (/) 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 (---) Bob Rogers writes: > Oops; I should also have included an update to ietf-drums.el that > removes the comment implying that said "self test suite" is still > unwritten. Thanks; pushed to Emacs 29. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no