comparison src/spool.c @ 31:0267fe9745d5

we should probably add an always-bcc feature
author meillo@marmaro.de
date Thu, 06 May 2010 13:02:40 +0200
parents f671821d8222
children 90644c204265
comparison
equal deleted inserted replaced
30:983a603c2ff2 31:0267fe9745d5
236 } 236 }
237 foreach(msg->non_rcpt_list, node) { 237 foreach(msg->non_rcpt_list, node) {
238 address *rcpt = (address *) (node->data); 238 address *rcpt = (address *) (node->data);
239 spool_write_rcpt(out, rcpt); 239 spool_write_rcpt(out, rcpt);
240 } 240 }
241 /* TODO: add support for always_bcc, i.e. a way to deliver
242 each outgoing mail to a configurable address. This
243 can be useful for archiving purposes.
244 address* always_bcc = create_address("always_bcc@localhost", TRUE/FALSE);
245 spool_write_rcpt(out, always_bcc);
246 */
241 DEBUG(6) debugf("after RT\n"); 247 DEBUG(6) debugf("after RT\n");
242 fprintf(out, "PR:%s\n", prot_names[msg->received_prot]); 248 fprintf(out, "PR:%s\n", prot_names[msg->received_prot]);
243 if (msg->received_host != NULL) 249 if (msg->received_host != NULL)
244 fprintf(out, "RH:%s\n", msg->received_host); 250 fprintf(out, "RH:%s\n", msg->received_host);
245 251