In GnuPG output there is a space after "[GNUPG:]". If the space is
not taken into account, the rest of the parsing fails, e.g., because
the variable "line" starts with " BEGIN_DECRYPTION" instead of the
expected "BEGIN_DECRYPTION".
This commit restores the previous parsing functionality. It appears
that the number of spaces does not differ among GnuPG versions.
However, if we wanted to make the code robust to varying amount of
space following "[GNUPG:]", we could either trim the whitespace from
the beginning or take it into account with mutt_str_lws_len().
This commit fixes a regression introduced at
c2aa0c06.
while ((line = mutt_file_read_line(line, &linelen, fp_in, &lineno, 0)))
{
- size_t plen = mutt_str_startswith(line, "[GNUPG:]", CASE_MATCH);
+ size_t plen = mutt_str_startswith(line, "[GNUPG:] ", CASE_MATCH);
if (plen == 0)
continue;
s = line + plen;