commit | 6472a18fafdf240e925f243e2f661536f521b62a | [log] [tgz] |
---|---|---|
author | Maxim Dounin <mdounin@mdounin.ru> | Wed May 19 03:13:17 2021 +0300 |
committer | Maxim Dounin <mdounin@mdounin.ru> | Wed May 19 03:13:17 2021 +0300 |
tree | eb5a1441ea1322737ff762d81b9193b13e242ea9 | |
parent | 67ebe63e08b18f2a58f111559a5a5cdb90061c7b [diff] |
Mail: optimized discarding invalid SMTP commands. There is no need to scan buffer from s->buffer->pos, as we already scanned the buffer till "p" and wasn't able to find an LF. There is no real need for this change in SMTP, since it is at most a microoptimization of a non-common code path. Similar code in IMAP, however, will have to start scanning from "p" to be correct, since there can be newlines in IMAP literals.