Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix incorrect new lines in headers #13

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

npajkovsky
Copy link

multiline header like Received

Received: Text("from 139-162-244-188.cprapid.com\n\tby 139-162-244-188.cprapid.com with LMTP\n\tid RQb5Ojfdd2O5LikAqCNTnA\n\t(envelope-from [email protected])\n\tfor [email protected]; Fri, 18 Nov 2022 19:29:59 +0000")

was incorrectly rendered

Received: from 139-162-244-188.cprapid.com
by 139-162-244-188.cprapid.com with
LMTP
id RQb5Ojfdd2O5LikAqCNTnA
(envelope-from [email protected])

    for <[email protected]>; Fri, 18 Nov 2022 19:29:59 +0000

but the output

Received: from 139-162-244-188.cprapid.com
by 139-162-244-188.cprapid.com with LMTP
id RQb5Ojfdd2O5LikAqCNTnA
(envelope-from [email protected])
for [email protected]; Fri, 18 Nov 2022 19:29:59 +0000

The patch removes adding line folding for Text. Probably incorrect.

multiline header like Received

Received: Text("from 139-162-244-188.cprapid.com\n\tby 139-162-244-188.cprapid.com with LMTP\n\tid RQb5Ojfdd2O5LikAqCNTnA\n\t(envelope-from <[email protected]>)\n\tfor <[email protected]>; Fri, 18 Nov 2022 19:29:59 +0000")

was incorrectly rendered

   Received: from 139-162-244-188.cprapid.com
        by 139-162-244-188.cprapid.com with
         LMTP
        id RQb5Ojfdd2O5LikAqCNTnA
        (envelope-from <[email protected]>)

        for <[email protected]>; Fri, 18 Nov 2022 19:29:59 +0000

but the output

   Received: from 139-162-244-188.cprapid.com
        by 139-162-244-188.cprapid.com with LMTP
        id RQb5Ojfdd2O5LikAqCNTnA
        (envelope-from <[email protected]>)
        for <[email protected]>; Fri, 18 Nov 2022 19:29:59 +0000

The patch removes adding line folding for Text. Probably incorrect.

Signed-off-by: Nikola Pajkovsky <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant