GNU bug report logs - #21608
24.5; message-mode sends arbitrarily long headers

Previous Next

Packages: emacs, gnus;

Reported by: David Bremner <david <at> tethera.net>

Date: Sat, 3 Oct 2015 00:42:01 UTC

Severity: normal

Tags: fixed

Found in version 24.5

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 21608 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: David Bremner <david <at> tethera.net>
Cc: 21608 <at> debbugs.gnu.org
Subject: Re: bug#21608: 24.5; message-mode sends arbitrarily long headers
Date: Thu, 26 Jan 2017 22:37:23 +0100
David Bremner <david <at> tethera.net> 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




This bug report was last modified 8 years and 172 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.