changeset 340:42efdd1ccb12

fixed check (variable name is listaddr, and use strcasecmp())
author mortenp
date Tue, 14 Sep 2004 19:27:29 +1000
parents 6ec796e27f54
children 2a0150a1c9de
files src/mlmmj-process.c
diffstat 1 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/mlmmj-process.c	Tue Sep 14 19:22:41 2004 +1000
+++ b/src/mlmmj-process.c	Tue Sep 14 19:27:29 2004 +1000
@@ -597,8 +597,7 @@
 	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);
@@ -636,8 +635,7 @@
 	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);
@@ -681,8 +679,7 @@
 	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);