FAQ
Hello, we have noticed, that mailman is breaking long subject values with
newlines. What is the motivation for doing this?

Sample :

Path: groups.polarion.com!not-for-mail
From: "Miroslav Ruza" <miroslav.ruza at polarion.com>
Newsgroups: polarion.it
*Subject: hodne dlouhy text gfgfsdlkgnd slkngdlksngldksg lknlkgs klnlnk iin
l
inlin egfrfe*
Date: Mon, 7 Jul 2008 14:41:48 +0200

.............

Thanks in advance!

David

Search Discussions

  • Mark Sapiro at Jul 7, 2008 at 3:28 pm

    David Hl??ik wrote:
    Hello, we have noticed, that mailman is breaking long subject values with
    newlines. What is the motivation for doing this?

    RFC 2822 section 2.1.1 and 2.2.3

    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.
    [...]

    2.2.3. Long Header Fields

    Each header field is logically a single line of characters comprising
    the field name, the colon, and the field body. For convenience
    however, and to deal with the 998/78 character limitations per line,
    the field body portion of a header field can be split into a multiple
    line representation; this is called "folding". The general rule is

    that wherever this standard allows for folding white space (not
    simply WSP characters), a CRLF may be inserted before any WSP. For
    example, the header field:

    Subject: This is a test

    can be represented as:

    Subject: This
    is a test
    [...]

    --
    Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan
  • Terri Oda at Jul 7, 2008 at 3:40 pm

    On 7-Jul-08, at 8:47 AM, David Hl??ik wrote:
    Hello, we have noticed, that mailman is breaking long subject
    values with
    newlines. What is the motivation for doing this?
    The short answer: it's not Mailman, it's the python email library
    that does it.

    For more discussion, there was just a thread on this topic two weeks
    ago. It starts here:
    http://www.mail-archive.com/mailman-users%40python.org/msg49882.html

    Terri

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupmailman-users @
categoriespython
postedJul 7, '08 at 12:47p
activeJul 7, '08 at 3:40p
posts3
users3
websitelist.org

People

Translate

site design / logo © 2022 Grokbase