* src/compose.c
[claws.git] / src / compose.c
index 25fbf420f6f9799efbda375bb1ccaa58a3b595e5..1fec9337cb683028475bd2d5d091053ed0d0c96c 100644 (file)
@@ -3627,16 +3627,15 @@ static gint compose_queue_sub(Compose *compose, gint *msgnum, FolderItem **item,
                     cur = cur->next)
                        fprintf(fp, ",<%s>", (gchar *)cur->data);
                fprintf(fp, "\n");
-       } else
-       fprintf(fp, "\n");
+       }
        /* write newsgroup list */
-       fprintf(fp, "NG:");
        if (compose->newsgroup_list) {
+               fprintf(fp, "NG:");
                fprintf(fp, "%s", (gchar *)compose->newsgroup_list->data);
                for (cur = compose->newsgroup_list->next; cur != NULL; cur = cur->next)
                        fprintf(fp, ",%s", (gchar *)cur->data);
+               fprintf(fp, "\n");
        }
-       fprintf(fp, "\n");
        /* Sylpheed account IDs */
        if (mailac) {
                fprintf(fp, "MAID:%d\n", mailac->account_id);