aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-05-10 05:50:55 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-05-10 05:50:55 +0800
commitffea73e2e6c7998eaca9d4a139348d12aae833ce (patch)
tree5199890cbbde3c03688566de6423d8ff86d1e0bc /composer/e-msg-composer.c
parent757cfd07389b2c6bb28de7dfbbc491e96c9ff727 (diff)
downloadgsoc2013-evolution-ffea73e2e6c7998eaca9d4a139348d12aae833ce.tar
gsoc2013-evolution-ffea73e2e6c7998eaca9d4a139348d12aae833ce.tar.gz
gsoc2013-evolution-ffea73e2e6c7998eaca9d4a139348d12aae833ce.tar.bz2
gsoc2013-evolution-ffea73e2e6c7998eaca9d4a139348d12aae833ce.tar.lz
gsoc2013-evolution-ffea73e2e6c7998eaca9d4a139348d12aae833ce.tar.xz
gsoc2013-evolution-ffea73e2e6c7998eaca9d4a139348d12aae833ce.tar.zst
gsoc2013-evolution-ffea73e2e6c7998eaca9d4a139348d12aae833ce.zip
Don't wrap content-id with brackets here as it is now done internally in
2001-05-09 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (add_inlined_image): Don't wrap content-id with brackets here as it is now done internally in camel. svn path=/trunk/; revision=9736
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r--composer/e-msg-composer.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index dfd63ebf39..01c28dabb0 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -165,7 +165,7 @@ best_encoding (const guchar *text)
total = (int) (ch - text);
- if ((float) count <= total * 0.17)
+ if (count * 1.0 <= total * 0.17)
return CAMEL_MIME_PART_ENCODING_QUOTEDPRINTABLE;
else
return CAMEL_MIME_PART_ENCODING_BASE64;
@@ -206,7 +206,7 @@ add_inlined_image (gpointer key, gpointer value, gpointer data)
{
gchar *file_name = (gchar *) key;
gchar *cid = (gchar *) value;
- gchar *id, *mime_type;
+ gchar *mime_type;
CamelMultipart *multipart = (CamelMultipart *) data;
CamelStream *stream;
CamelDataWrapper *wrapper;
@@ -232,9 +232,7 @@ add_inlined_image (gpointer key, gpointer value, gpointer data)
camel_medium_set_content_object (CAMEL_MEDIUM (part), wrapper);
camel_object_unref (CAMEL_OBJECT (wrapper));
- id = g_strconcat ("<", cid, ">", NULL);
- camel_mime_part_set_content_id (part, id);
- g_free (id);
+ camel_mime_part_set_content_id (part, cid);
/* FIXME: should this use g_basename (file_name)? */
camel_mime_part_set_filename (part, strchr (file_name, '/') ? strrchr (file_name, '/') + 1 : file_name);
camel_mime_part_set_encoding (part, CAMEL_MIME_PART_ENCODING_BASE64);