From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Bremner Newsgroups: gmane.emacs.bugs Subject: bug#21608: 24.5; message-mode sends arbitrarily long headers Date: Fri, 02 Oct 2015 21:41:07 -0300 Message-ID: <87wpv44wd8.fsf@zancas.localnet> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1443832944 29557 80.91.229.3 (3 Oct 2015 00:42:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 Oct 2015 00:42:24 +0000 (UTC) To: 21608@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 03 02:42:12 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZiAtu-0000c5-4z for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Oct 2015 02:42:10 +0200 Original-Received: from localhost ([::1]:36202 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZiAtt-0004uV-Ho for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 Oct 2015 20:42:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50291) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZiAtp-0004tf-LM for bug-gnu-emacs@gnu.org; Fri, 02 Oct 2015 20:42:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZiAtm-00007u-Cb for bug-gnu-emacs@gnu.org; Fri, 02 Oct 2015 20:42:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35388) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZiAtm-00007q-98 for bug-gnu-emacs@gnu.org; Fri, 02 Oct 2015 20:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZiAtm-00082b-51 for bug-gnu-emacs@gnu.org; Fri, 02 Oct 2015 20:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: David Bremner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Oct 2015 00:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21608 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.144383291730895 (code B ref -1); Sat, 03 Oct 2015 00:42:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Oct 2015 00:41:57 +0000 Original-Received: from localhost ([127.0.0.1]:52592 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZiAth-00082F-8A for submit@debbugs.gnu.org; Fri, 02 Oct 2015 20:41:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40242) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZiAte-000826-M9 for submit@debbugs.gnu.org; Fri, 02 Oct 2015 20:41:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZiAtd-00006c-2T for submit@debbugs.gnu.org; Fri, 02 Oct 2015 20:41:54 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:43985) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZiAtc-00006W-Vs for submit@debbugs.gnu.org; Fri, 02 Oct 2015 20:41:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50235) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZiAtb-0004rR-Pm for bug-gnu-emacs@gnu.org; Fri, 02 Oct 2015 20:41:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZiAtY-00005C-GH for bug-gnu-emacs@gnu.org; Fri, 02 Oct 2015 20:41:51 -0400 Original-Received: from gitolite.debian.net ([87.98.215.224]:48294) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZiAtY-0008Vg-AJ for bug-gnu-emacs@gnu.org; Fri, 02 Oct 2015 20:41:48 -0400 Original-Received: from remotemail by gitolite.debian.net with local (Exim 4.80) (envelope-from ) id 1ZiAtC-000494-PT for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2015 00:41:26 +0000 Original-Received: (nullmailer pid 30154 invoked by uid 1000); Sat, 03 Oct 2015 00:41:07 -0000 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:107232 Archived-At: 1) run emacs -Q 2) M-x message-mail 3) insert a long header; "X-Stupid: " followed by the first 900 words in /usr/share/dict/words. 4) C-c C-c 5) select 'transport' Now is the tricky part. You need to observe what actually hits the mail transport. In my case I use a nullmailer transport with the ability to log the complete message. At least for me, the header is unwrapped. This causes messages to rejected by MTAs with strict adherence to RFC5322 section 2.1.1 which states a 998 character absolute limit on line length. One could argue that this is user error/perversity, but it arrises rather easily with References headers, and these are hidden by default, so the user has no real clue there is a problem. In GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.16.6) of 2015-09-19 on trouble, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11702000 System Description: Debian GNU/Linux testing (stretch) Configured using: `configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-z,relro' Important settings: value of $LANG: en_CA.UTF-8 locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Recent messages: Mark set Replaced 896 occurrences scroll-down-command: Beginning of buffer Mark set Sending... Mark set [2 times] Sending via mail... Setting `send-mail-function' temporarily since "emacs -q" would overwrite customizations Sending...done Making completion list... Load-path shadows: None found. Features: (shadow emacsbug mailalias cus-edit cus-start cus-load wid-edit cl-loaddefs cl-lib sendmail mail-extr sort help-mode gnus-util message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mailabbrev mail-utils gmm-utils mailheader time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 125836 18133) (symbols 48 19411 0) (miscs 40 72 200) (strings 32 13690 4848) (string-bytes 1 388741) (vectors 16 10803) (vector-slots 8 398787 10342) (floats 8 77 346) (intervals 56 3885 779) (buffers 960 15) (heap 1024 31763 882))