masqmail

changeset 277:5f559921391a

minor refactorings and cleanups
author markus schnalke <meillo@marmaro.de>
date Mon, 06 Dec 2010 17:34:15 -0300
parents 1abc1faeb45d
children c35c59a36a2a
files src/queue.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line diff
     1.1 --- a/src/queue.c	Fri Dec 03 21:05:34 2010 -0300
     1.2 +++ b/src/queue.c	Mon Dec 06 17:34:15 2010 -0300
     1.3 @@ -92,13 +92,11 @@
     1.4  	gboolean ok = TRUE;
     1.5  
     1.6  	logwrite(LOG_NOTICE, "Starting queue run.\n");
     1.7 -
     1.8  	msg_list = read_queue(FALSE);
     1.9 -
    1.10 -	if (msg_list != NULL) {
    1.11 +	if (msg_list) {
    1.12  		ok = deliver_msg_list(msg_list, DLVR_ALL);
    1.13 +		DEBUG(5) debugf("  deliver_msg_list() returned: %d\n", ok);
    1.14  		destroy_msg_list(msg_list);
    1.15 -		DEBUG(5) debugf("  deliver_msg_list() returned: %d\n", ok);
    1.16  	}
    1.17  	logwrite(LOG_NOTICE, "Finished queue run.\n");
    1.18  
    1.19 @@ -108,12 +106,14 @@
    1.20  gboolean
    1.21  queue_run_online()
    1.22  {
    1.23 -	GList *msg_list = read_queue(FALSE);
    1.24 +	GList *msg_list;
    1.25  	gboolean ok = TRUE;
    1.26  
    1.27  	logwrite(LOG_NOTICE, "Starting online queue run.\n");
    1.28 -	if (msg_list != NULL) {
    1.29 +	msg_list = read_queue(FALSE);
    1.30 +	if (msg_list) {
    1.31  		ok = deliver_msg_list(msg_list, DLVR_ONLINE);
    1.32 +		DEBUG(5) debugf("  deliver_msg_list() returned: %d\n", ok);
    1.33  		destroy_msg_list(msg_list);
    1.34  	}
    1.35  	logwrite(LOG_NOTICE, "Finished online queue run.\n");