Skip to content
  • René Scharfe's avatar
    mailinfo: support format=flowed · 3aa4d81f
    René Scharfe authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    Add best-effort support for patches sent using format=flowed (RFC 3676).
    Remove leading spaces ("unstuff"), remove soft line breaks (indicated
    by space + newline), but leave the signature separator (dash dash space
    newline) alone.
    
    Warn in git am when encountering a format=flowed patch, because any
    trailing spaces would most probably be lost, as the sending MUA is
    encouraged to remove them when preparing the email.
    
    Provide a test patch formatted by Mozilla Thunderbird 60 using its
    default configuration.  It reuses the contents of the file mailinfo.c
    before and after this patch.
    
    Signed-off-by: default avatarRene Scharfe <l.s.r@web.de>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    3aa4d81f