diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-09-19 07:53:00 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-09-19 07:53:00 +0000 |
commit | 7b5e56388e5628766db68f4b3a1ff6e3bf34dc93 (patch) | |
tree | a55777af459b5d6f7b3a41632c71175b5924ca67 /src/compose.c | |
parent | 487442dbe87c703bfe85a4cda8ec483429cdda06 (diff) |
improved PGP/MIME compatibility.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1169 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/compose.c')
-rw-r--r-- | src/compose.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/compose.c b/src/compose.c index a3ca459e..78cd461d 100644 --- a/src/compose.c +++ b/src/compose.c @@ -2976,13 +2976,19 @@ static gint compose_write_to_file(Compose *compose, const gchar *file, buf = canon_buf; #if USE_GPGME - /* force encoding to protect trailing spaces */ + /* chomp all trailing spaces */ if (rfc2015_is_available() && !is_draft && compose->use_signing && !compose->account->clearsign) { + gchar *tmp; + tmp = strchomp_all(buf); + g_free(buf); + buf = tmp; +#if 0 if (encoding == ENC_7BIT) encoding = ENC_QUOTED_PRINTABLE; else if (encoding == ENC_8BIT) encoding = ENC_BASE64; +#endif } if (rfc2015_is_available() && !is_draft && |