# HG changeset patch # User meillo@marmaro.de # Date 1277802033 -7200 # Node ID 46f407c0727a8cccac8a87a6b540d7a6d5c27e71 # Parent 9104234a56a5cb7ff58718515e3a1622f06427e9 exchange of the if parts to simplify the condition diff -r 9104234a56a5 -r 46f407c0727a src/spool.c --- 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;