changeset 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 9104234a56a5
children db52c64acaa2
files src/spool.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/spool.c	Tue Jun 29 10:45:33 2010 +0200
+++ b/src/spool.c	Tue Jun 29 11:00:33 2010 +0200
@@ -150,10 +150,10 @@
 		} else if (strncasecmp(buf, "RT:", 3) == 0) {
 			address *addr;
 			addr = spool_scan_rcpt(buf);
-			if (!addr_is_delivered(addr) && !addr_is_failed(addr)) {
+			if (addr_is_delivered(addr) || addr_is_failed(addr)) {
+				msg->non_rcpt_list = g_list_append(msg->non_rcpt_list, addr);
+			} else {
 				msg->rcpt_list = g_list_append(msg->rcpt_list, addr);
-			} else {
-				msg->non_rcpt_list = g_list_append(msg->non_rcpt_list, addr);
 			}
 		} else if (strncasecmp(buf, "PR:", 3) == 0) {
 			prot_id i;