masqmail-0.2

diff src/spool.c @ 108:46f407c0727a

exchange of the if parts to simplify the condition
author meillo@marmaro.de
date Tue, 29 Jun 2010 11:00:33 +0200
parents 83a182793503
children a80ebfa16cd5
line diff
     1.1 --- a/src/spool.c	Tue Jun 29 10:45:33 2010 +0200
     1.2 +++ b/src/spool.c	Tue Jun 29 11:00:33 2010 +0200
     1.3 @@ -150,10 +150,10 @@
     1.4  		} else if (strncasecmp(buf, "RT:", 3) == 0) {
     1.5  			address *addr;
     1.6  			addr = spool_scan_rcpt(buf);
     1.7 -			if (!addr_is_delivered(addr) && !addr_is_failed(addr)) {
     1.8 +			if (addr_is_delivered(addr) || addr_is_failed(addr)) {
     1.9 +				msg->non_rcpt_list = g_list_append(msg->non_rcpt_list, addr);
    1.10 +			} else {
    1.11  				msg->rcpt_list = g_list_append(msg->rcpt_list, addr);
    1.12 -			} else {
    1.13 -				msg->non_rcpt_list = g_list_append(msg->non_rcpt_list, addr);
    1.14  			}
    1.15  		} else if (strncasecmp(buf, "PR:", 3) == 0) {
    1.16  			prot_id i;