masqmail

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 diff
     1.1 --- a/src/address.c	Mon Apr 25 15:17:30 2011 +0200
     1.2 +++ b/src/address.c	Thu Apr 28 09:55:06 2011 +0200
     1.3 @@ -17,7 +17,6 @@
     1.4  */
     1.5  
     1.6  #include "masqmail.h"
     1.7 -#include <fnmatch.h>
     1.8  
     1.9  address*
    1.10  create_address(gchar * path, gboolean is_rfc821)
    1.11 @@ -186,15 +185,3 @@
    1.12  	}
    1.13  	return buffer;
    1.14  }
    1.15 -
    1.16 -gint
    1.17 -addr_match(address * addr1, address * addr2)
    1.18 -{
    1.19 -	int res;
    1.20 -
    1.21 -	if ((res = fnmatch(addr1->local_part, addr2->local_part, 0)) == 0) {
    1.22 -		if ((res = fnmatch(addr1->domain, addr2->domain, FNM_CASEFOLD)) == 0)
    1.23 -			return 0;
    1.24 -	}
    1.25 -	return res;
    1.26 -}