rohrpost

A commandline mail client to change the world as we see it.
git clone git://r-36.net/rohrpost
Log | Files | Refs | LICENSE

commit 2913f07e1618bde0ada685f3a074bc7d8614a7b0
parent eaf00815b8fa1957f8a89667d33e1e74bfbe083d
Author: Christoph Lohmann <20h@r-36.net>
Date:   Sun, 15 Jul 2012 16:00:11 +0200

Fixing the parsing of empty headers.

Diffstat:
mime.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/mime.c b/mime.c @@ -827,9 +827,10 @@ mime_parsebufintern(mime_t *mime, char *str, int len) tvalue = NULL; sscanf(buf, "%1024m[^: \t\r\v\f]:" "%1024m[^\n]", &key, &value); - tvalue = value + strspn(value, " \t\r\v\f"); - printf("%s = %s\n", key, tvalue); + //printf("%s = %s\n", key, tvalue); if (key != NULL && value != NULL) { + tvalue = value + strspn(value, + " \t\r\v\f"); hdr = llistelem_new(key, tvalue, strlen(tvalue)+1); llist_addelem(mime->hdrs, hdr);