# HG changeset patch # User meillo@marmaro.de # Date 1228472784 -3600 # Node ID 7c1635972aa71de83087ade739c4533590ccff85 # Parent 4f4a57f9e8c1dae79e8dbe169d9d207a12ec2e54 small cleanups diff -r 4f4a57f9e8c1 -r 7c1635972aa7 src/accept.c --- a/src/accept.c Thu Dec 04 09:45:12 2008 +0100 +++ b/src/accept.c Fri Dec 05 11:26:24 2008 +0100 @@ -128,8 +128,7 @@ if (line1[0] == ' ' || line1[0] == '\t') { /* continuation of 'folded' header: */ if (hdr) { - hdr->header = - g_strconcat(hdr->header, line1, NULL); + hdr->header = g_strconcat(hdr->header, line1, NULL); } } else if (line1[0] == '\n') { @@ -196,14 +195,11 @@ } /* set return path if local */ - if (msg->return_path == NULL) { - - if (msg->received_host == NULL) { - gchar *path = g_strdup_printf("<%s@%s>", passwd->pw_name, conf.host_name); - DEBUG(3) debugf("setting return_path for local accept: %s\n", path); - msg->return_path = create_address(path, TRUE); - g_free(path); - } + if (msg->return_path == NULL && msg->received_host == NULL) { + gchar *path = g_strdup_printf("<%s@%s>", passwd->pw_name, conf.host_name); + DEBUG(3) debugf("setting return_path for local accept: %s\n", path); + msg->return_path = create_address(path, TRUE); + g_free(path); } /* -t option */ @@ -262,7 +258,8 @@ case HEAD_ENVELOPE_TO: if (flags & ACC_SAVE_ENVELOPE_TO) { DEBUG(3) debugf("creating 'X-Orig-Envelope-To' header\n"); - msg->hdr_list = g_list_prepend(msg->hdr_list, create_header(HEAD_UNKNOWN, "X-Orig-Envelope-to: %s", hdr->value)); + msg->hdr_list = g_list_prepend(msg->hdr_list, create_header(HEAD_UNKNOWN, + "X-Orig-Envelope-to: %s", hdr->value)); } DEBUG(3) debugf("removing 'Envelope-To' header\n"); msg->hdr_list = g_list_remove_link(msg->hdr_list, hdr_node);