mblaze

Unix utilities to deal with Maildir - my mirror
git clone https://pi.duncano.de/git/mblaze.git
Log | Files | Refs | README | COPYING

commit 4ac581b13113bd7e13b438f52c3f28b18b95bfae
parent 86793fb26296b59b4ba333e587b6a2ebc718e380
Author: Leah Neukirchen <leah@vuxu.org>
Date:   Mon, 12 Jun 2017 16:26:50 +0200

blaze822: blaze822_addr: unquote quoted strings

Diffstat:
blaze822.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/blaze822.c b/blaze822.c @@ -178,8 +178,11 @@ blaze822_addr(char *s, char **dispo, char **addro) *c = 0; } else if (*s == '"') { s++; - while (*s && c < e && *s != '"') + while (*s && c < e && *s != '"') { + if (*s == '\\' && *(s+1)) + s++; *c++ = *s++; + } if (*s == '"') s++; } else if (*s == '(') {