Skip to content
Snippets Groups Projects
Commit 1f98f568 authored by deuce's avatar deuce
Browse files

Allow but # and % as the tag separator for email.

Change block filename to 0001.smtpblock
Facebook does not allow a # in email addresses but does allow a %.
parent 0ecc6389
No related branches found
No related tags found
No related merge requests found
......@@ -1843,7 +1843,7 @@ static BOOL checktag(scfg_t *scfg, char *tag, uint usernum)
if(tag==NULL)
return(FALSE);
sprintf(fname,"%suser/%04d.smtptags",scfg->data_dir,usernum);
sprintf(fname,"%suser/%04d.smtpblock",scfg->data_dir,usernum);
return(findstr(tag, fname));
}
......@@ -1854,7 +1854,7 @@ static BOOL smtp_splittag(char *in, char **name, char **tag)
if(in==NULL)
return(FALSE);
*name=strtok_r(in, "#", &last);
*name=strtok_r(in, "#%", &last);
if(*name) {
*tag=strtok_r(NULL, "", &last);
return(TRUE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment