Commit cd47c42
Fix incomplete revert of broken IMF quoted string parsing (#28)
Cherry-pick fix from upstream libetpan PR #411.
A previous incomplete revert left broken error handling patterns in
mailimf_quoted_string_parse and mailimf_fws_quoted_string_parse.
The pattern `else if (r == MAILIMF_ERROR_PARSE) break; else { error }`
incorrectly breaks out of the parsing loop on parse errors. The correct
pattern is `else if (r != MAILIMF_ERROR_PARSE) { error }` which only
handles actual errors while allowing MAILIMF_ERROR_PARSE to continue
the loop naturally.
This restores the original working behavior of IMF field parsing.
Upstream: dinhvh/libetpan#411
Related: dinhvh/libetpan#406
Co-authored-by: Claude <noreply@anthropic.com>1 parent 7c9537a commit cd47c42
1 file changed
+4
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1441 | 1441 | | |
1442 | 1442 | | |
1443 | 1443 | | |
1444 | | - | |
1445 | | - | |
1446 | | - | |
| 1444 | + | |
1447 | 1445 | | |
1448 | 1446 | | |
1449 | 1447 | | |
| |||
1538 | 1536 | | |
1539 | 1537 | | |
1540 | 1538 | | |
1541 | | - | |
1542 | | - | |
1543 | | - | |
| 1539 | + | |
1544 | 1540 | | |
1545 | 1541 | | |
1546 | 1542 | | |
1547 | | - | |
| 1543 | + | |
1548 | 1544 | | |
1549 | | - | |
| 1545 | + | |
1550 | 1546 | | |
1551 | 1547 | | |
1552 | 1548 | | |
| |||
0 commit comments