about summary refs log tree commit diff
path: root/parse.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--parse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse.c b/parse.c
index 5c4eba0..808852a 100644
--- a/parse.c
+++ b/parse.c
@@ -47,6 +47,7 @@ static struct AddressList parseAddressList(struct List list) {
 }
 
 static char *parseID(char *id) {
+	while (isspace(id[0])) id++;
 	size_t len = strlen(id);
 	if (id[0] != '<' || !len || id[len - 1] != '>') {
 		errx(EX_PROTOCOL, "invalid message ID");