if(addrtocc && !intocc) {
/* Don't send a mail about denial to the list, but silently
* discard and exit */
- if (strncasecmp(listaddress, fromemails.emaillist[0],
- strlen(listaddress)) == 0) {
+ if (strcasecmp(listaddr, fromemails.emaillist[0]) == 0) {
myfree(listaddr);
unlink(donemailname);
myfree(donemailname);
if(subonlypost) {
/* Don't send a mail about denial to the list, but silently
* discard and exit */
- if (strncasecmp(listaddress, fromemails.emaillist[0],
- strlen(listaddress)) == 0) {
+ if (strcasecmp(listaddr, fromemails.emaillist[0]) == 0) {
myfree(listaddr);
unlink(donemailname);
myfree(donemailname);
if (access_rules) {
/* Don't send a mail about denial to the list, but silently
* discard and exit */
- if (strncasecmp(listaddress, fromemails.emaillist[0],
- strlen(listaddress)) == 0) {
+ if (strcasecmp(listaddr, fromemails.emaillist[0]) == 0) {
myfree(listaddr);
unlink(donemailname);
myfree(donemailname);