[Commits] [SCM] claws branch, master, updated. 3.16.0-135-g783d163

ticho at claws-mail.org ticho at claws-mail.org
Wed Apr 18 18:20:17 CEST 2018


The branch, master has been updated
       via  783d1636feb68e7d1fb3510bc603b7916d2f9aa0 (commit)
      from  a29676ed69c4ff8566ae4eb8ca7e650e40cda22b (commit)

Summary of changes:
 src/compose.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit 783d1636feb68e7d1fb3510bc603b7916d2f9aa0
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Wed Apr 18 18:19:28 2018 +0200

    Fix two missed return values in compose_write_to_file() from commit e9f610a4f.
    
    Thanks to wwp for finding the issue!

diff --git a/src/compose.c b/src/compose.c
index 97d53bd..8fb4891 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -5845,7 +5845,7 @@ static gint compose_write_to_file(Compose *compose, FILE *fp, gint action, gbool
 		g_node_append(mimemsg->node, mimempart->node);
 
 		if (compose_add_attachments(compose, mimempart) < 0)
-			return -1;
+			return COMPOSE_QUEUE_ERROR_NO_MSG;
 	} else
 		g_node_append(mimemsg->node, mimetext->node);
 
@@ -5872,7 +5872,7 @@ static gint compose_write_to_file(Compose *compose, FILE *fp, gint action, gbool
 			compose->account, from_addr)) {
 			g_free(from_name);
 			g_free(from_addr);
-			return -2;
+			return COMPOSE_QUEUE_ERROR_SIGNING_FAILED;
 	}
 	g_free(from_name);
 	g_free(from_addr);

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list