You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/mail-mta/netqmail/files/qmail-smtputf8-crlf-fix.patch

13 lines
397 B

https://bugs.gentoo.org/611142
--- a/qmail-remote.c 2019-10-29 22:46:27.076000000 +0100
+++ b/qmail-remote.c 2019-10-29 22:48:18.868000000 +0100
@@ -556,6 +556,7 @@ void checkutf8message()
if (r == 0) break;
if (r == -1) temp_read();
+ if (ch == '\n' && !stralloc_cats(&firstpart,"\r")) temp_nomem();
if (!stralloc_append(&firstpart,&ch)) temp_nomem();
if (ch == '\r')