diff src/address.c @ 317:55b7bde95d37

reworked allowed and denied addrs for routes The following refactorings had been made: - allowed_mail_locals + allowed_return_paths -> allowed_senders - not_allowed_mail_locals + not_allowed_return_paths -> denied_senders - allowed_rcpt_domains -> allowed_recipients - not_allowed_rcpt_domains -> denied_recipients The new options allow more consistent and more flexible matching.
author meillo@marmaro.de
date Thu, 28 Apr 2011 09:55:06 +0200
parents bc9d9cd9ee8e
children 41958685480d
line wrap: on
line diff
--- a/src/address.c	Mon Apr 25 15:17:30 2011 +0200
+++ b/src/address.c	Thu Apr 28 09:55:06 2011 +0200
@@ -17,7 +17,6 @@
 */
 
 #include "masqmail.h"
-#include <fnmatch.h>
 
 address*
 create_address(gchar * path, gboolean is_rfc821)
@@ -186,15 +185,3 @@
 	}
 	return buffer;
 }
-
-gint
-addr_match(address * addr1, address * addr2)
-{
-	int res;
-
-	if ((res = fnmatch(addr1->local_part, addr2->local_part, 0)) == 0) {
-		if ((res = fnmatch(addr1->domain, addr2->domain, FNM_CASEFOLD)) == 0)
-			return 0;
-	}
-	return res;
-}