Skip to content

pr-git-2508/HaraldNordgren/imap-send-header-loop-v1

tagged this 24 Nov 22:48
From: Harald Nordgren <haraldnordgren@gmail.com>

The loop that looks for the From, Date and Subject headers of a
message stops at the first empty line, which can end in LF or CRLF.
The check for LF also moves to the next line, and the check for CRLF
depends on that, which is easy to miss.

Check for both kinds of empty line in the same way, before moving to
the next line. The behavior does not change.

Suggested-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Harald Nordgren <haraldnordgren@gmail.com>

Submitted-As: https://lore.kernel.org/git/pull.2508.git.git.1795560535063.gitgitgadget@gmail.com
Assets 2
Loading