Mercurial > masqmail
comparison src/fail_msg.c @ 15:f671821d8222
code beautifying; 0 -> \0 if appropriate
author | meillo@marmaro.de |
---|---|
date | Thu, 06 Nov 2008 09:18:38 +0100 |
parents | 26e34ae9a3e3 |
children | dcb315792513 |
comparison
equal
deleted
inserted
replaced
14:a8f3424347dc | 15:f671821d8222 |
---|---|
27 { | 27 { |
28 gboolean ok = FALSE; | 28 gboolean ok = FALSE; |
29 address *ret_path = NULL; | 29 address *ret_path = NULL; |
30 | 30 |
31 /* do not bounce bounces, send to postmaster instead */ | 31 /* do not bounce bounces, send to postmaster instead */ |
32 if (msg->return_path->local_part[0] == 0) { | 32 if (msg->return_path->local_part[0] == '\0') { |
33 GList *node; | 33 GList *node; |
34 | 34 |
35 ret_path = create_address_qualified("postmaster", TRUE, conf.host_name); | 35 ret_path = create_address_qualified("postmaster", TRUE, conf.host_name); |
36 foreach(failed_rcpts, node) { | 36 foreach(failed_rcpts, node) { |
37 address *addr = (address *) (node->data); | 37 address *addr = (address *) (node->data); |
77 foreach(msg->hdr_list, node) { | 77 foreach(msg->hdr_list, node) { |
78 header *hdr = (header *) (node->data); | 78 header *hdr = (header *) (node->data); |
79 fputs(hdr->header, out); | 79 fputs(hdr->header, out); |
80 } | 80 } |
81 } else if (strncmp(fmt, "@msg_body", 9) == 0) { | 81 } else if (strncmp(fmt, "@msg_body", 9) == 0) { |
82 /* we may have to read the data at this point | 82 /* we may have to read the data at this point and remember if we did */ |
83 and remember if we did */ | |
84 gboolean flag = (msg->data_list == NULL); | 83 gboolean flag = (msg->data_list == NULL); |
85 if (flag) { | 84 if (flag) { |
86 if (!spool_read_data(msg)) { | 85 if (!spool_read_data(msg)) { |
87 logwrite(LOG_ALERT, "could not open data spool file %s\n", msg->uid); | 86 logwrite(LOG_ALERT, "could not open data spool file %s\n", msg->uid); |
88 } | 87 } |