aboutsummaryrefslogtreecommitdiff
path: root/src/compose.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-04-12 05:08:47 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-04-12 05:08:47 +0000
commit92756e16f048184aec6bc0190c4e9b5fa20bed28 (patch)
tree2a5909fdb82c476d7db143f6d9544389b4a76347 /src/compose.c
parent2147115dec26c80c0b941f75dc8139be1c653923 (diff)
don't encode clearsigned text.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@210 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/compose.c')
-rw-r--r--src/compose.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/compose.c b/src/compose.c
index c49cda0b..b685386b 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -2715,7 +2715,7 @@ static gint compose_write_to_file(Compose *compose, const gchar *file,
#if USE_GPGME
/* force encoding to protect trailing spaces */
- if (!is_draft && compose->use_signing) {
+ if (!is_draft && compose->use_signing && !compose->account->clearsign) {
if (encoding == ENC_7BIT)
encoding = ENC_QUOTED_PRINTABLE;
else if (encoding == ENC_8BIT)
@@ -2723,6 +2723,10 @@ static gint compose_write_to_file(Compose *compose, const gchar *file,
}
if (!is_draft && compose->use_signing && compose->account->clearsign) {
+ /* MIME encoding doesn't fit with cleartext signature */
+ if (encoding == ENC_QUOTED_PRINTABLE || encoding == ENC_BASE64)
+ encoding = ENC_8BIT;
+
if (compose_clearsign_text(compose, &buf) < 0) {
g_warning("clearsign failed\n");
fclose(fp);