aboutsummaryrefslogtreecommitdiff
path: root/src/compose.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-11-25 10:55:15 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-11-25 10:55:15 +0000
commit7a38bb7e688b1b3eb99ae090ede32ddbfba1de6d (patch)
tree1b9cb8cd965a67b05b325f78b621fc988df55818 /src/compose.c
parentd36950b74ceaa841622df1a885f6d5e20395ff8e (diff)
always canonicalize composed message.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@781 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/compose.c')
-rw-r--r--src/compose.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/src/compose.c b/src/compose.c
index 0e35f5ca..1ad4aea4 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -3013,19 +3013,14 @@ static gint compose_write_to_file(Compose *compose, const gchar *file,
return -1;
}
-#if USE_GPGME
- if (!rfc2015_is_available() || is_draft) {
- uncanonicalize_file_replace(file);
- return 0;
+ if (canonicalize_file_replace(file) < 0) {
+ g_unlink(file);
+ return -1;
}
- if ((compose->use_signing && !compose->account->clearsign) ||
- compose->use_encryption) {
- if (canonicalize_file_replace(file) < 0) {
- g_unlink(file);
- return -1;
- }
- }
+#if USE_GPGME
+ if (!rfc2015_is_available() || is_draft)
+ return 0;
if (compose->use_signing && !compose->account->clearsign) {
GSList *key_list;
@@ -3045,8 +3040,6 @@ static gint compose_write_to_file(Compose *compose, const gchar *file,
}
#endif /* USE_GPGME */
- uncanonicalize_file_replace(file);
-
return 0;
}