From unknown Wed Jun 25 05:38:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22014: 24.4; RFC 5322 Disallows Multiple 'To' Fields in Mail Headers Resent-From: "Barak A. Pearlmutter" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Nov 2015 22:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 22014 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 22014@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Reply-To: "Barak A. Pearlmutter" Received: via spool by submit@debbugs.gnu.org id=B.144848899314002 (code B ref -1); Wed, 25 Nov 2015 22:04:01 +0000 Received: (at submit) by debbugs.gnu.org; 25 Nov 2015 22:03:13 +0000 Received: from localhost ([127.0.0.1]:53238 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a1i9O-0003d8-LL for submit@debbugs.gnu.org; Wed, 25 Nov 2015 17:03:13 -0500 Received: from eggs.gnu.org ([208.118.235.92]:54662) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a1hHo-0002E2-6Q for submit@debbugs.gnu.org; Wed, 25 Nov 2015 16:07:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a1hHn-0004wW-2h for submit@debbugs.gnu.org; Wed, 25 Nov 2015 16:07:31 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:57378) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1hHm-0004wS-Na for submit@debbugs.gnu.org; Wed, 25 Nov 2015 16:07:30 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36376) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1hHl-0006b3-Ep for bug-gnu-emacs@gnu.org; Wed, 25 Nov 2015 16:07:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a1hHi-0004tq-A9 for bug-gnu-emacs@gnu.org; Wed, 25 Nov 2015 16:07:29 -0500 Received: from mail-wm0-f46.google.com ([74.125.82.46]:36378) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1hHi-0004ta-4x for bug-gnu-emacs@gnu.org; Wed, 25 Nov 2015 16:07:26 -0500 Received: by wmww144 with SMTP id w144so195975399wmw.1 for ; Wed, 25 Nov 2015 13:07:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:subject:reply-to:date:message-id:mime-version:content-type :content-transfer-encoding; bh=SeFSerEG9lAbE7s3DhlJw71mF9spFPG/r6H2gL3xJ+w=; b=JyLTgxE1WeMnEvtmSz81KxlhLiEko0TzRBHlISBKz5GsscWu7eLFOC12Z6LSWxI2zS cMJZ0duA+Dz44V+H8Lo7nKFD/ZWnC4xYxeIhZ4mw0qbd88OuZQYFoZeyYfJn5tIWfexk SN+7pGjnoh3mRhEVIgh8f/mGkW2uAzzhWDlTXHebdG5th1zzPHYaTqvmmIniifcUfsGj IXHnIRBzZMF0XMsJIc/+/D2MsR+U3uTBymEHY/t//cI1jN6539FtHhsxxgGBQdiL6lAn AGpjG4155Os3FHzXUd5mrYxBFEacLMbP3KqxBSIIOAwZ1VoZsk3iMp7CaiRlk1Hz7fuw KxAQ== X-Received: by 10.28.211.12 with SMTP id k12mr7012455wmg.29.1448485645225; Wed, 25 Nov 2015 13:07:25 -0800 (PST) Received: from dellarge.pearlmutter.net.pearlmutter.net ([80.111.122.216]) by smtp.gmail.com with ESMTPSA id d2sm24843035wjy.16.2015.11.25.13.07.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Nov 2015 13:07:23 -0800 (PST) From: "Barak A. Pearlmutter" Date: Wed, 25 Nov 2015 21:07:38 +0000 Message-ID: <878u5lvld1.fsf@dellarge.pearlmutter.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Mailman-Approved-At: Wed, 25 Nov 2015 17:02:53 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -4.0 (----) According to the info page on mail headers, http://www.gnu.org/software/emacs/manual/html_node/emacs/Mail-Headers.html The =E2=80=98To=E2=80=99, =E2=80=98CC=E2=80=99, and =E2=80=98BCC=E2=80=99= fields can appear any number of times ... This is in contravention to RFC 5322, the current standard for mail headers. See the "Max Number" column of the "to" row in the table on page 20 (sec 3.6), https://tools.ietf.org/html/rfc5322 which reads "1", and not just for "to" but also in the "cc" and "bcc" rows. Some smtp servers---the one @pearlmutter.net's mx in particular as it happens---check for this and reject messages with multiple 'To' fields in the header. I personally would urge the authors of such servers to reconsider this decision. On the other hand, it would be nice if Emacs tried to be conformant in this regard, by detecting and consolidating multiple To:, CC:, or BCC: fields. Emacs already scans these while constructing the recipients list, so the extra logic would be minimal. Or just (yes-or-no-p "Multiple To, CC or BCC fields, abort ") to let the user know that something on-standards-conformant is in the air. --Barak. -- Barak A. Pearlmutter Dept Comp Sci, Maynooth University, Co. Kildare, Ireland http://barak.pearlmutter.net From unknown Wed Jun 25 05:38:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22014: 24.4; RFC 5322 Disallows Multiple 'To' Fields in Mail Headers Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Nov 2015 14:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22014 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Barak A. Pearlmutter" Cc: 22014@debbugs.gnu.org Reply-To: rms@gnu.org Received: via spool by 22014-submit@debbugs.gnu.org id=B22014.144854922219435 (code B ref 22014); Thu, 26 Nov 2015 14:48:02 +0000 Received: (at 22014) by debbugs.gnu.org; 26 Nov 2015 14:47:02 +0000 Received: from localhost ([127.0.0.1]:53502 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a1xp7-00053M-67 for submit@debbugs.gnu.org; Thu, 26 Nov 2015 09:47:01 -0500 Received: from eggs.gnu.org ([208.118.235.92]:39987) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a1xp3-00053D-Px for 22014@debbugs.gnu.org; Thu, 26 Nov 2015 09:46:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a1xp2-0001ZN-92 for 22014@debbugs.gnu.org; Thu, 26 Nov 2015 09:46:57 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40134) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1xou-0001XV-Qn; Thu, 26 Nov 2015 09:46:48 -0500 Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1a1xoe-00069k-3C; Thu, 26 Nov 2015 09:46:32 -0500 From: Richard Stallman In-reply-to: <878u5lvld1.fsf@dellarge.pearlmutter.net> (barak@pearlmutter.net) References: <878u5lvld1.fsf@dellarge.pearlmutter.net> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-Id: Date: Thu, 26 Nov 2015 09:46:32 -0500 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.0 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -6.0 (------) [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > The ‘To’, ‘CC’, and ‘BCC’ fields can appear any number of times ... > This is in contravention to RFC 5322, the current standard for mail > headers. What year did they do that? I suspect they changed the spec subsequently to our implementing it. > On the other hand, it would be nice if Emacs > tried to be conformant in this regard, by detecting and consolidating > multiple To:, CC:, or BCC: fields. Emacs must not override the user's decision! The reason to us multiple To or CC headers is to group the names in a meaningful way. Consolidating them automatically would make the header less clear. I wrote this change for sendmail.el, which asks the user what to do. But I have not felt like fighting with git to install it. Would someone else like to install it? Maybe the same code can work for msg mode; I never use that. diff -u /home/rms/emacs-git/build-aug-12/lisp/mail/sendmail.el.\~1\~ /home/rms/emacs-git/build-aug-12/lisp/mail/sendmail.el --- /home/rms/emacs-git/build-aug-12/lisp/mail/sendmail.el.~1~ 2015-08-12 11:15:38.785756144 -0400 +++ /home/rms/emacs-git/build-aug-12/lisp/mail/sendmail.el 2015-08-12 11:24:47.048474821 -0400 @@ -907,6 +907,8 @@ (concat "\\(?:[[:space:];,]\\|\\`\\)" (regexp-opt mail-mailing-lists t) "\\(?:[[:space:];,]\\|\\'\\)")))) + (mail-combine-fields "To") + (mail-combine-fields "CC") ;; If there are mailing lists defined (when ml (save-excursion @@ -1075,6 +1077,71 @@ (goto-char fullname-start)))) (insert ")\n"))))) +(defun mail-combine-fields (field) + "Offer to combine all FIELD fields in buffer into one FIELD field. +If this finds multiple FIELD fields, it asks the user whether +to combine them into one, and does so if the user says y." + (let ((search-pattern (format "^%s[ \t]*:" field)) + first-to-end + query-asked + query-answer + (old-point (point)) + (old-max (point-max))) + (save-excursion + (save-restriction + (goto-char (point-min)) + (narrow-to-region (point-min) (mail-header-end)) + ;; Find the first FIELD field and record where it ends. + (when (re-search-forward search-pattern nil t) + (forward-line 1) + (re-search-forward "^[^ \t]" nil t) + (beginning-of-line) + (setq first-to-end (point-marker)) + (set-marker-insertion-type first-to-end t) + ;; Find each following FIELD field + ;; and combine it with the first FIELD field. + (while (re-search-forward search-pattern nil t) + ;; For the second FIELD field, ask user to + ;; approve combining them. + ;; But if the user refuse to combine them, signal error. + (unless query-asked + (save-restriction + ;; This is just so the screen doesn't change. + (narrow-to-region (point-min) old-max) + (goto-char old-point) + (setq query-asked t) + (if (y-or-n-p (format "Message contains multiple %s fields. Combine? " field)) + (setq query-answer t)))) + (when query-answer + (let ((this-to-start (line-beginning-position)) + this-to-end + this-to) + (forward-line 1) + (re-search-forward "^[^ \t]" nil t) + (beginning-of-line) + (setq this-to-end (point)) + ;; Get the text of this FIELD field. + (setq this-to (buffer-substring this-to-start this-to-end)) + ;; Delete it. + (delete-region this-to-start this-to-end) + (save-excursion + ;; Put a comma after the first FIELD field. + (goto-char first-to-end) + (forward-char -1) + (insert ",") + ;; Copy this one after it. + (goto-char first-to-end) + (save-excursion + (insert this-to)) + ;; Replace the FIELD: with spaces. + (looking-at search-pattern) + ;; Try to preserve alignment of contents of the field + (let ((prefix-length (length (match-string 0)))) + (replace-match " ") + (dotimes (i (1- prefix-length)) + (insert " "))))))) + (set-marker first-to-end nil)))))) + (defun mail-encode-header (beg end) "Encode the mail header between BEG and END according to RFC2047. Return non-nil if and only if some part of the header is encoded." Diff finished. Wed Nov 25 21:50:29 2015 -- Dr Richard Stallman President, Free Software Foundation (gnu.org, fsf.org) Internet Hall-of-Famer (internethalloffame.org) Skype: No way! See stallman.org/skype.html. From unknown Wed Jun 25 05:38:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22014: 24.4; RFC 5322 Disallows Multiple 'To' Fields in Mail Headers Resent-From: "Barak A. Pearlmutter" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Nov 2015 16:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22014 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: rms@gnu.org Cc: 22014@debbugs.gnu.org Received: via spool by 22014-submit@debbugs.gnu.org id=B22014.144855659632007 (code B ref 22014); Thu, 26 Nov 2015 16:50:02 +0000 Received: (at 22014) by debbugs.gnu.org; 26 Nov 2015 16:49:56 +0000 Received: from localhost ([127.0.0.1]:54522 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a1zk3-0008KB-Ob for submit@debbugs.gnu.org; Thu, 26 Nov 2015 11:49:55 -0500 Received: from mail-wm0-f50.google.com ([74.125.82.50]:35839) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a1zk1-0008Jz-8H for 22014@debbugs.gnu.org; Thu, 26 Nov 2015 11:49:53 -0500 Received: by wmuu63 with SMTP id u63so28218207wmu.0 for <22014@debbugs.gnu.org>; Thu, 26 Nov 2015 08:49:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=WSeWqkNYRofong0dUFBlYg7BWevsssq5LGWx/4ZBrBg=; b=feb3UOH4ZCD5gGyvgdz2ubeHk67k38Ayn6pLWZi1spJLUTPjuXhFJvGsCiJh7fLxKP SswPRC9Qta4DfK6VMsqE4tEpLy3lwjs+FaPC4wLG5a6mLKhaid6BNmXTa5DtsJIyynYl +qd3O692GdykxdtDyAgOuK9evmWh5b9YGFFXxPk3B4aK+4ghXg2Uwhs4FQckSFM4itic H0an5rSikHcsH5mCh5p8Q1XOFvbX/5u42UYPe4Iin7TpCMJzDLjjbOM2+KbgfgdOSlLT nyQemWSqHG1qp5Ftr5XgMsh6MVk2MKYXzCEjpbvG6nirVtLsCURRZWC43meadoyqNh4v MSKg== X-Received: by 10.194.240.67 with SMTP id vy3mr50419030wjc.168.1448556592542; Thu, 26 Nov 2015 08:49:52 -0800 (PST) Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com. [74.125.82.45]) by smtp.gmail.com with ESMTPSA id h5sm1188543wjz.21.2015.11.26.08.49.52 for <22014@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Nov 2015 08:49:52 -0800 (PST) Received: by wmww144 with SMTP id w144so28192466wmw.1 for <22014@debbugs.gnu.org>; Thu, 26 Nov 2015 08:49:52 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.28.150.7 with SMTP id y7mr5088859wmd.73.1448556590410; Thu, 26 Nov 2015 08:49:50 -0800 (PST) Received: by 10.194.46.233 with HTTP; Thu, 26 Nov 2015 08:49:50 -0800 (PST) In-Reply-To: References: <878u5lvld1.fsf@dellarge.pearlmutter.net> Date: Thu, 26 Nov 2015 16:49:50 +0000 X-Gmail-Original-Message-ID: Message-ID: From: "Barak A. Pearlmutter" Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -0.7 (/) > I wrote this change for sendmail.el, which asks the user what to do. $ git show 79a169684 Wow, you already committed it, on the master branch ... on 12-Aug-2015. You hack so fast the bits traveled back in time! From unknown Wed Jun 25 05:38:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22014: 24.4; RFC 5322 Disallows Multiple 'To' Fields in Mail Headers Resent-From: "Barak A. Pearlmutter" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Nov 2015 19:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22014 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: rms@gnu.org Cc: 22014@debbugs.gnu.org Received: via spool by 22014-submit@debbugs.gnu.org id=B22014.144856632015230 (code B ref 22014); Thu, 26 Nov 2015 19:32:02 +0000 Received: (at 22014) by debbugs.gnu.org; 26 Nov 2015 19:32:00 +0000 Received: from localhost ([127.0.0.1]:54668 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a22Gu-0003xa-Aa for submit@debbugs.gnu.org; Thu, 26 Nov 2015 14:32:00 -0500 Received: from mail-wm0-f48.google.com ([74.125.82.48]:36231) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a22Gs-0003xQ-Oh for 22014@debbugs.gnu.org; Thu, 26 Nov 2015 14:31:59 -0500 Received: by wmww144 with SMTP id w144so32330414wmw.1 for <22014@debbugs.gnu.org>; Thu, 26 Nov 2015 11:31:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=lKuAD41cZ8htcMVeycqasLJAjf3KgZb35k/5O1ljeEY=; b=COdJzrL6RjQunAd1UuEsHzCEOu2qu9fxDZLWTdiCJ2ARxPP3NMrpBvVryTiXNhMW5q ZkpekK2ij04+ZFgDIj45M2WrSiB+5YraBCF+QOk+TFEJQC4lJFozmZFS7B+TZdkxu9Po dwIzMxHbbombZQyv69eakHqqFZx3hk4EytaUyHzV6o5R1lmRdRtWl6nfEzSViCa5E9Hf 0CkCVqBK/rY8aevRyZ4r0YY+nz3fjSvxej5TZrQOWpNf7BHuAVmhhnQAlReghVCLn218 AydRidAu3Yx6j8THkDIO8AQXCw9ceq4i2y3Z8tL4ZiUid6djRZHUOEOHnzSJ0tjYyoYU f6Xw== X-Received: by 10.28.158.75 with SMTP id h72mr5545946wme.74.1448566318063; Thu, 26 Nov 2015 11:31:58 -0800 (PST) Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com. [74.125.82.41]) by smtp.gmail.com with ESMTPSA id v196sm4093583wmv.10.2015.11.26.11.31.57 for <22014@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Nov 2015 11:31:57 -0800 (PST) Received: by wmvv187 with SMTP id v187so43980972wmv.1 for <22014@debbugs.gnu.org>; Thu, 26 Nov 2015 11:31:57 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.194.90.243 with SMTP id bz19mr47116501wjb.128.1448566317135; Thu, 26 Nov 2015 11:31:57 -0800 (PST) Received: by 10.194.46.233 with HTTP; Thu, 26 Nov 2015 11:31:57 -0800 (PST) In-Reply-To: References: <878u5lvld1.fsf@dellarge.pearlmutter.net> Date: Thu, 26 Nov 2015 19:31:57 +0000 X-Gmail-Original-Message-ID: Message-ID: From: "Barak A. Pearlmutter" Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -0.7 (/) > What year did they do that? I suspect they changed the spec subsequently > to our implementing it. RFC 822 dated Aug 1982 is silent on the issue. It does use grammatical constructs that seem inappropriate if there are multiple instances: > 4.5.1. TO / RESENT-TO > > This field contains the identity of the primary recipients of > the message. The formal grammar given does allow multiple 'To's, but also allows all sorts of crazy things, some of which are disallowed in the text. I think a fair reading is that the authors did not entertain this possibility. RFC 2822 dated April 2001 says maximum of one each of 'To', 'Cc', 'Bcc'. RFC 5322 dated Oct 2008, mentioned above, copies the table of interest from RFC 2822. --Barak. From unknown Wed Jun 25 05:38:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22014: 24.4; RFC 5322 Disallows Multiple 'To' Fields in Mail Headers Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Nov 2017 02:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22014 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Barak A. Pearlmutter" Cc: 22014@debbugs.gnu.org, rms@gnu.org Received: via spool by 22014-submit@debbugs.gnu.org id=B22014.151192126822024 (code B ref 22014); Wed, 29 Nov 2017 02:08:02 +0000 Received: (at 22014) by debbugs.gnu.org; 29 Nov 2017 02:07:48 +0000 Received: from localhost ([127.0.0.1]:35419 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJrmu-0005j5-KO for submit@debbugs.gnu.org; Tue, 28 Nov 2017 21:07:48 -0500 Received: from mail-it0-f44.google.com ([209.85.214.44]:34731) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJrmr-0005ii-KT; Tue, 28 Nov 2017 21:07:46 -0500 Received: by mail-it0-f44.google.com with SMTP id m11so24900831iti.1; Tue, 28 Nov 2017 18:07:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=uRUbwNflBsUSzz3qg5Zf4C/NYgbKtQQwwPNK2HCcLoI=; b=nwHHSuTgPYY4/0Vk6Fh3nk/criwOVdGZRlyyCOZcrB8f/P3DVs6UwLor4gwZcE6kY5 Kzmia8uOIhGwYsF0zNe0vxAu5/BYMsjpiCtk60OMuVKGsZn/QE9dzNDZm7BX57sv1RMi fgshXjPjVTKNrferaNvNvd+fQE7I4XqKzNdVVjeU6Odz31j283OAY90fbuC3yy4JJKee BWnOzuPP9FeCJzM9ocDQ5x3No1YyABegHwDrImbYA8aSG4x6N/5EbWKXTfoX0g+g43M7 XqWWQMupWTBHf3Rb5tWQW2bXnRiYkmHQORFbXZjKcBNZaB/YfimPRu1w4KNkcRlytP11 C6Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=uRUbwNflBsUSzz3qg5Zf4C/NYgbKtQQwwPNK2HCcLoI=; b=A+E6WZ1RiIcAvLCB0//hA63XxzZVEz4RodPqfsIbjt+CpMOiePTFuH4uQ18htOPEHu uXjcXjX9JXyngCigKvvJ9tnVrK6wR1YOhd1iAnj+DuVAaflmwPzwm/SsFkmdYDY47dEo HYymJ2jGZonP/XzwKuJAMG5d2zaLFRg1OaJlNDKfzyALxGLwdjJq706VQ+Hxh9I6IukX p7YPQV7bAPdUXVCnJJfQsLAp5PcbVfrAxoDdsB9cF5LnU/kpiNdUv6+CF4JRrShW44Um fVdbMKjdboGk1IFaWgGcMcIFUfIHxDo5CzG/D5Q2BYXLJGTpMk6QFTZ4epGoGbVec8dP MDqA== X-Gm-Message-State: AJaThX7LD6zp8BHWKivErcEakJl/fgCEKz4ndqqC4ZQBxRmpOgfuhule bT05xWRi3w7MRCm9LTahvdEZTy+7 X-Google-Smtp-Source: AGs4zMb5lnRY8DZ8TjblII5MPUFuUNvLR5uAHXhtrgUkPkvwK3PvUTRvDi3Go+sfn2syyr/YJFFBpA== X-Received: by 10.36.34.12 with SMTP id o12mr5240967ito.115.1511921260054; Tue, 28 Nov 2017 18:07:40 -0800 (PST) Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id g93sm300497ioj.51.2017.11.28.18.07.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Nov 2017 18:07:39 -0800 (PST) From: Noam Postavsky References: <878u5lvld1.fsf@dellarge.pearlmutter.net> Date: Tue, 28 Nov 2017 21:07:38 -0500 In-Reply-To: (Barak A. Pearlmutter's message of "Thu, 26 Nov 2015 16:49:50 +0000") Message-ID: <87vahtltw5.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: -0.0 (/) tags 22014 fixed close 22014 25.1 quit "Barak A. Pearlmutter" writes: >> I wrote this change for sendmail.el, which asks the user what to do. > > $ git show 79a169684 > > Wow, you already committed it, on the master branch ... on 12-Aug-2015. > You hack so fast the bits traveled back in time! Seems this was fixed in 25.1.