From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 01 22:40:26 2022 Received: (at submit) by debbugs.gnu.org; 2 Feb 2022 03:40:26 +0000 Received: from localhost ([127.0.0.1]:51087 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nF6VN-00007e-JM for submit@debbugs.gnu.org; Tue, 01 Feb 2022 22:40:26 -0500 Received: from lists.gnu.org ([209.51.188.17]:54274) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nF6VL-00007U-IB for submit@debbugs.gnu.org; Tue, 01 Feb 2022 22:40:24 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45958) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nF6VF-0007L1-Qt for bug-gnu-emacs@gnu.org; Tue, 01 Feb 2022 22:40:20 -0500 Received: from md5i.com ([75.151.244.229]:55430) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nF6VD-0003i9-Df for bug-gnu-emacs@gnu.org; Tue, 01 Feb 2022 22:40:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=md5i.com; s=dkim; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From:Sender: Reply-To:Cc: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=MuMyxz7X1+B/1S4IYSBqiUvyroKb82PuRtAIgLiA/Ak=; b=NnjfqNFlqjRtFcy75anHJ6xhMl 3WLjGLlqB7Cq5pCXigATDsoJbKfrcu+JMnnwIN/zsiVpL7vyrMiO3boSvu4t+JrTjP8acsInkur8F CnN7jjgBhEvuT/5kQcQ4dCF0v; Received: from abode ([192.168.177.1] helo=miko) by md5i.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1nF6VB-005rjT-2w for bug-gnu-emacs@gnu.org; Tue, 01 Feb 2022 22:40:13 -0500 From: Michael Welsh Duggan To: bug-gnu-emacs@gnu.org Subject: 29.0.50; Failure to parse addresses with angle-brackets without display names Date: Tue, 01 Feb 2022 22:40:12 -0500 Message-ID: <87wnie542r.fsf@md5i.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=75.151.244.229; envelope-from=mwd@md5i.com; helo=md5i.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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit 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 (--) Attempting to send an email to an address like without an attached display name causes the address to be flagged as suspicious. Recipe from emacs -Q: C-x m C-n Test C-c C-c This results in Emacs notifying me that there is a suspicious address. According to RFC 5322, an address can be a mailbox, which can be a name-addr, which is an optional display-name followed by an angle-addr. So an address like without an attached display name should be parsed as a valid address. The problem appears to be caused by a bug in `ietf-drums-parse-address'. Near the end of the function it calls `rfc2047-decode-string' on the current `display-string', which is, at this point, `nil'. In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0) of 2022-01-31 built on miko Repository revision: cce477cad7ffffbfc1a21e9dd711b32f8e2b3ea3 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12013000 System Description: Debian GNU/Linux bookworm/sid Configured using: 'configure --without-toolkit-scroll-bars --with-x-toolkit=lucid --with-native-compilation --with-xinput2' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF X11 XAW3D XDBE XIM XINPUT2 XPM LUCID ZLIB Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Message Features: (goto-addr bug-reference magit-extras pcase edebug gnus-fun shr-color color grep gud pcmpl-unix shadow emacsbug cus-start cl-print debug backtrace apropos shortdoc help-fns radix-tree mailalias smtpmail sendmail vc-git vc-dispatcher dabbrev org-element avl-tree generator ol-eww eww xdg url-queue thingatpt mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect gnus-search eieio-opt speedbar ezimage dframe ol-docview doc-view jka-compr image-mode exif ol-bibtex ol-bbdb ol-w3m ol-doi org-link-doi org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob-core ob-eval org-table oc-basic bibtex ol org-keys oc org-compat advice org-macs org-loaddefs find-func cal-menu calendar cal-loaddefs flow-fill mule-util sort gnus-cite mm-archive mail-extr textsec uni-scripts idna-mapping ucs-normalize uni-confusable textsec-check gnus-async gnus-bcklg qp gnus-ml disp-table misearch multi-isearch gnus-topic cursor-sensor nndraft nnmh nnfolder utf-7 epa-file network-stream gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-cache gnus-sum shr pixel-fill kinsoku svg gnus-demon nntp gnus-group gnus-undo gnutls gnus-start gnus-dbus gnus-cloud gnus-spec gnus-win face-remap dired-aux flyspell ispell view pacproxy descr-text cus-edit pp cus-load time sieve-manage sasl sasl-anonymous sasl-login sasl-plain rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util sgml-mode facemenu dom python tramp-sh tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat parse-time iso8601 ls-lisp ps-print ps-print-loaddefs ps-def lpr picture nm dbus xml magit-submodule magit-obsolete magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode diff diff-mode easy-mmode git-commit log-edit pcvs-util add-log magit-core magit-autorevert autorevert filenotify magit-margin magit-transient magit-process with-editor shell pcomplete server magit-mode transient comp comp-cstr warnings rx cl-extra edmacro kmacro help-mode format-spec magit-git magit-section magit-utils crm dash nnimap nnmail gnus-int mail-source gnus-range message yank-media rfc822 mml mml-sec epa mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader utf7 netrc nnoo gnus wid-edit nnheader gnus-util time-date mail-utils range gnus-o365-oauth2 oauth2 url-http url-auth mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm rmc puny plstore generated generic-x epg rfc6068 epg-config ediff ediff-merg ediff-mult ediff-wind ediff-diff ediff-help ediff-init ediff-util dired-x dired dired-loaddefs compile text-property-search comint ring ansi-color cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs derived debian-el info package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map url-vars seq gv subr-x byte-opt bytecomp byte-compile cconv cl-loaddefs cl-lib iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo x-toolkit xinput2 x multi-tty make-network-process native-compile emacs) -- Michael Welsh Duggan (md5i@md5i.com) From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 02 13:07:36 2022 Received: (at 53716) by debbugs.gnu.org; 2 Feb 2022 18:07:36 +0000 Received: from localhost ([127.0.0.1]:53438 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFK2a-0000HA-8w for submit@debbugs.gnu.org; Wed, 02 Feb 2022 13:07:36 -0500 Received: from quimby.gnus.org ([95.216.78.240]:42280) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFK2Y-0000Gv-Nz for 53716@debbugs.gnu.org; Wed, 02 Feb 2022 13:07:35 -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=DOcX4eadtB+0kxLtqW9FRdjDyZvbnoOA+ffQSlqPNN4=; b=pNxgu8zOQswQd32q3EsHPni/Wd bPjX7jTJMv6TTDQ9iI+Iaw1AioV7szD4geVi4aL9/T0jXkQZd7N5AExZYEw3fgmSVwtFBh6BQWrSV Io9vhIOLSXbl4/uZAAAWbsZJUHW8ri4T3lKReMLh/mMRZWvJquql7jlhoPssx5bvU8zo=; 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 1nFK2O-0006Xl-C2; Wed, 02 Feb 2022 19:07:27 +0100 From: Lars Ingebrigtsen To: Michael Welsh Duggan Subject: Re: bug#53716: 29.0.50; Failure to parse addresses with angle-brackets without display names References: <87wnie542r.fsf@md5i.com> X-Now-Playing: The Residents's _Intruders_: "The Scarecrow" Date: Wed, 02 Feb 2022 19:07:23 +0100 In-Reply-To: <87wnie542r.fsf@md5i.com> (Michael Welsh Duggan's message of "Tue, 01 Feb 2022 22:40:12 -0500") Message-ID: <877dadrvl0.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: Michael Welsh Duggan writes: > The problem appears to be caused by a bug in `ietf-drums-parse-address'. > Near the end of the function it calls `rfc2047-decode-string' on the > current `display-string', which is, at this point, ` [...] 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: 53716 Cc: 53716@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 (---) Michael Welsh Duggan writes: > The problem appears to be caused by a bug in `ietf-drums-parse-address'. > Near the end of the function it calls `rfc2047-decode-string' on the > current `display-string', which is, at this point, `nil'. I've now fixed this in Emacs 29. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 02 13:07:47 2022 Received: (at control) by debbugs.gnu.org; 2 Feb 2022 18:07:47 +0000 Received: from localhost ([127.0.0.1]:53441 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFK2l-0000HY-Fr for submit@debbugs.gnu.org; Wed, 02 Feb 2022 13:07:47 -0500 Received: from quimby.gnus.org ([95.216.78.240]:42296) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFK2k-0000HL-I6 for control@debbugs.gnu.org; Wed, 02 Feb 2022 13:07:46 -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=ikKG3FsqN6xvKjqR76r/8c5ckwjVoC1JBFqCpQ6GKVY=; b=grrzX8CN9VfbSm9kPfxAKxS9Fz fEG+Ggq6QAForl0kpJgOMxvIltBSRcQKd8j1Hg3gmOBg83Ayp7JMYYK58B/pZQOZs3YeH2CGT1uNi pAFg7Epmj1ozuh9RqmVzULnW0XsG85MqymfpgJSAQfB1MlegCcmVeCtt+8jSQ9t4pra4=; 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 1nFK2c-0006Xw-Lp for control@debbugs.gnu.org; Wed, 02 Feb 2022 19:07:40 +0100 Date: Wed, 02 Feb 2022 19:07:36 +0100 Message-Id: <875ypxrvkn.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #53716 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 53716 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 53716 29.1 quit From unknown Fri Jun 20 07:19:37 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 03 Mar 2022 12: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