From: Pietro Cerutti Date: Fri, 9 Nov 2018 15:55:38 +0000 (+0000) Subject: mutt_str_startswith - rfc3676.c X-Git-Tag: 2019-10-25~532^2~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d68c6a35f46942f40d237104a20b3681bb09f30b;p=neomutt mutt_str_startswith - rfc3676.c --- diff --git a/rfc3676.c b/rfc3676.c index 801b814a1..9fc9fa356 100644 --- a/rfc3676.c +++ b/rfc3676.c @@ -419,7 +419,7 @@ void rfc3676_space_stuff(struct Email *e) while (fgets(buf, sizeof(buf), in)) { - if ((mutt_str_strncmp("From ", buf, 5) == 0) || buf[0] == ' ') + if (buf[0] == ' ' || mutt_str_startswith(buf, "From ", CASE_MATCH)) { fputc(' ', out); lc++;