commit 628e81876948805fab0580f3776e4bce9e2619d5 parent 66b65e18ee0919a32e9dc29b7775a2f3f99b8da7 Author: Jacob R. Edwards <jacob@jacobedwards.org> Date: Sun, 14 May 2023 04:07:08 +0000 Allow 8bit message bodies Diffstat:
M | pop3.c | | | 10 | ++-------- |
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/pop3.c b/pop3.c @@ -1,4 +1,4 @@ -/* $Id: pop3.c,v 1.10 2023/05/14 03:11:34 jacob Exp $ */ +/* $Id: pop3.c,v 1.11 2023/05/14 04:07:08 jacob Exp $ */ /* * Copyright (c) 2022 Jacob R. Edwards @@ -161,13 +161,7 @@ pop_okay(char *buf) char * pop_charcheck(char *buf) { - /* - * The RFC doesn't seem to specify what servers are allowed - * to send. It DOES specify that clients can only send - * "printable ASCII characters". I'll just allow printable - * characters and tab. - */ - while (isprint(*buf) || *buf == '\t') + while (*buf && *buf != '\r' && *buf != '\n') ++buf; return buf; }