git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] git-send-email: provide hook to send lines more than 998 symbols

From
TLTeemu Likonen <tlikonen@iki.fi>
Date
Nov 21, 2008, 10:52 UTC
Message-ID
<87wsex4aha.fsf@iki.fi>
In-Reply-To
<5ec8ebd50811210237kd6f9341q23bc69b6ffcc2a87@mail.gmail.com>
Andy Shevchenko (2008-11-21 12:37 +0200) wrote:
Show 8 quoted lines
> On Fri, Nov 21, 2008 at 12:34 PM, Arafangion <thestar@fussycoder.id.au> wrote:
>>> By default git-send-email does not accept patch which is contain
>>> lines longer than 998 symbols. Sometime it's inconvenient, i.e. you
>>> have a long list in one variable in shell script. So, define
>>> environment variable GIT_SEND_EMAIL_LONGLINE to something to avoid
>>> that restriction.
>>
>> As a curiosity, why is such a check even neccessary?
> I'm not an author of that strange check (possible it's somehow related
> to b8ebe08b9a643f432866eb7150c3b20d59b755f2)

The author (so to say) of that strange check is RFC 2822 - Internet Message Format.

    2.1.1. Line Length Limits
        There are two limits that this standard places on the number of
        characters in a line. Each line of characters MUST be no more
        than 998 characters, and SHOULD be no more than 78 characters,
        excluding the CRLF.
        The 998 character limit is due to limitations in many
        implementations which send, receive, or store Internet Message
        Format messages that simply cannot handle more than 998
        characters on a line. [...]
http://www.faqs.org/rfcs/rfc2822.html

Perhaps longer lines will work in many cases but atleast warning should be printed to user, or something.

Previous: Andy ShevchenkoNext: Andy Shevchenko
Message 4 of 12 in “git-send-email: provide hook to send lines more than 998 symbols”
  1. git-send-email: provide hook to send lines more than 998 symbolsAndy Shevchenko, Nov 21, 2008
  2. ArafangionNov 21, 2008
  3. Andy ShevchenkoNov 21, 2008
  4. Teemu LikonenNov 21, 2008
  5. Andy ShevchenkoNov 21, 2008
  6. ArafangionNov 21, 2008
  7. Andreas EricssonNov 21, 2008
  8. Jeff KingNov 21, 2008
  9. Jeff KingNov 21, 2008
  10. Michael J GruberNov 21, 2008
  11. Andy ShevchenkoNov 21, 2008
  12. Jeff KingNov 21, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.