Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit ed24f2dc authored by rswindell's avatar rswindell

RFC822 "To" fields can contain multiple names/addresses, so can't use

strrchr() here to find terminating chars (quotes, parens, brackets).
e.g. '"Joe Shmoe" <joe@shmoe.com>, "Fred Smith" <fred@smith.org>'
would be parsed as 'Joe Shmoe" <joe@shmoe.com>, "Fred Smith'.
parent 48ed4d15
......@@ -2539,13 +2539,13 @@ static void parse_mail_address(char* p
/* Get the "name" (if possible) */
if((tp=strchr(p,'"'))!=NULL) { /* name in quotes? */
p=tp+1;
tp=strrchr(p,'"');
tp=strchr(p,'"');
} else if((tp=strchr(p,'('))!=NULL) { /* name in parenthesis? */
p=tp+1;
tp=strrchr(p,')');
tp=strchr(p,')');
} else if(*p=='<') { /* address in brackets? */
p++;
tp=strrchr(p,'>');
tp=strchr(p,'>');
} else /* name, then address in brackets */
tp=strchr(p,'<');
if(tp) *tp=0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment