From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#21608: 24.5; message-mode sends arbitrarily long headers Date: Thu, 26 Jan 2017 22:37:23 +0100 Message-ID: <87efzpfqp8.fsf@gnus.org> References: <87wpv44wd8.fsf@zancas.localnet> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1485467677 8937 195.159.176.226 (26 Jan 2017 21:54:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 26 Jan 2017 21:54:37 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 21608@debbugs.gnu.org To: David Bremner Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 26 22:54:32 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWrzd-0000BY-I0 for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Jan 2017 22:54:09 +0100 Original-Received: from localhost ([::1]:41267 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWrzi-00012v-RS for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Jan 2017 16:54:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49644) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWrzb-00012j-4F for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2017 16:54:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cWrzW-0007ST-AQ for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2017 16:54:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48066) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cWrzW-0007SM-6p for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2017 16:54:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cWrzV-0002ao-Qq; Thu, 26 Jan 2017 16:54:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Thu, 26 Jan 2017 21:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21608 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: Original-Received: via spool by 21608-submit@debbugs.gnu.org id=B21608.14854676329938 (code B ref 21608); Thu, 26 Jan 2017 21:54:01 +0000 Original-Received: (at 21608) by debbugs.gnu.org; 26 Jan 2017 21:53:52 +0000 Original-Received: from localhost ([127.0.0.1]:46261 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWrzM-0002aE-3h for submit@debbugs.gnu.org; Thu, 26 Jan 2017 16:53:52 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:59159) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWrzJ-0002a5-P1 for 21608@debbugs.gnu.org; Thu, 26 Jan 2017 16:53:51 -0500 Original-Received: from 2.150.50.220.tmi.telenormobil.no ([2.150.50.220] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cWrzG-0000sP-Ai; Thu, 26 Jan 2017 22:53:48 +0100 In-Reply-To: <87wpv44wd8.fsf@zancas.localnet> (David Bremner's message of "Fri, 02 Oct 2015 21:41:07 -0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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" Xref: news.gmane.org gmane.emacs.bugs:128611 Archived-At: David Bremner writes: > 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. How odd. I can't find any code that either checks or folds too-long headers when sending mail. (There's some when sending news.) Odd that nobody has complained about this before... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no