comparison src/deliver.c @ 343:9149d893eb52

refactoring: ``insourced'' create_msg_out_list() The function is only four lines and used only once. It's simpler to have the four lines just at the actual place.
author markus schnalke <meillo@marmaro.de>
date Sat, 03 Sep 2011 18:25:02 +0200
parents 412385b57dc4
children 0410c8aabac2
comparison
equal deleted inserted replaced
342:3f1eecd8082d 343:9149d893eb52
727 in another function. 727 in another function.
728 */ 728 */
729 gboolean 729 gboolean
730 deliver_msg_list(GList * msg_list, guint flags) 730 deliver_msg_list(GList * msg_list, guint flags)
731 { 731 {
732 GList *msgout_list = create_msg_out_list(msg_list); 732 GList *msgout_list = NULL;
733 GList *msg_node;
733 GList *local_msgout_list = NULL; 734 GList *local_msgout_list = NULL;
734 GList *localnet_msgout_list = NULL; 735 GList *localnet_msgout_list = NULL;
735 GList *other_msgout_list = NULL; 736 GList *other_msgout_list = NULL;
736 GList *msgout_node; 737 GList *msgout_node;
737 GList *alias_table = NULL; 738 GList *alias_table = NULL;
738 gboolean ok = TRUE; 739 gboolean ok = TRUE;
740
741 /* create msgout_list */
742 foreach(msg_list, msg_node) {
743 message *msg = (message *) msg_node->data;
744 msgout_list = g_list_append(msgout_list, create_msg_out(msg));
745 }
746
739 747
740 if (conf.alias_file) { 748 if (conf.alias_file) {
741 alias_table = table_read(conf.alias_file, ':'); 749 alias_table = table_read(conf.alias_file, ':');
742 } 750 }
743 751