Skip to content
Snippets Groups Projects
Commit 88d34550 authored by rswindell's avatar rswindell
Browse files

usermailaddr() now quotes any username that has '!' in it.

parent 0553415d
No related branches found
No related tags found
No related merge requests found
......@@ -1930,7 +1930,7 @@ char* DLLCALL usermailaddr(scfg_t* cfg, char* addr, char* name)
strcpy(addr,name);
return(addr);
}
if(strchr(name,'.') && strchr(name,' '))
if(strchr(name,'!') || (strchr(name,'.') && strchr(name,' ')))
sprintf(addr,"\"%s\"@",name);
else {
sprintf(addr,"%s@",name);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment