~renerocksai/aercbook

c4769be9c8a43a36c9d3e8c43f9dc3c3ebf4163f — Max Schillinger a month ago e6fc8d1
Fix crash when parsing emails using LF only

E-mail lines should end with CR/LF. But nevertheless, some tools use
only LF line ending when writing e-mails to disk.

This fixes the issue described here:
<https://lists.sr.ht/~renerocksai/aercbook/%3C4348c14e43805fd62eb708968f612e065ad9c553.camel%40microchip.com%3E>
1 files changed, 1 insertions(+), 1 deletions(-)

M src/main.zig
M src/main.zig => src/main.zig +1 -1
@@ 293,7 293,7 @@ fn parseMailFromStdin(alloc: std.mem.Allocator) !ParseMailResult {

    while (it.next()) |line| {
        // end of header section will be a single \r
        if (line.len == 1) {
        if (line.len <= 1) {
            break;
        }