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

bpo-44637: Fix DBQuote mail header refold #29881

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on Dec 1, 2021

  1. bpo-44637: Fix DBQuote mail header refold

    When a header content is too long, the RFC demands to fold it over
    multiple lines. Each line starting with a space to denote folded-lines
    from regular ones.
    
    Folding a line requires splitint it, there are only a few sweet spots
    where it is possible to do so (e.g. between two words). Words are pretty
    deep in the parse-tree thus multiple parts must be unwrap to reveal
    them. One of those parts can be a quoted-string, printing a
    quoted-string as a whole correctly wraps its content with double-quotes
    but printing every child never quotes them.
    
    When a quoted-string must be unwrap to find a sweet-splot to split the
    line, we now inject double-quotes literals before and after its
    children.
    Julien00859 committed Dec 1, 2021
    Configuration menu
    Copy the full SHA
    622b932 View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2022

  1. Configuration menu
    Copy the full SHA
    38ca1c2 View commit details
    Browse the repository at this point in the history