diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-05-10 04:17:12 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-05-10 04:17:12 +0800 |
commit | 3f207278fb889bacbfda7afa3899257d0c29888c (patch) | |
tree | 3488e2e0a54756d0358b8e4877828a5b1422e6e2 /camel | |
parent | d6c788a6b04b945477317837b77de0a107aa1987 (diff) | |
download | gsoc2013-evolution-3f207278fb889bacbfda7afa3899257d0c29888c.tar.gz gsoc2013-evolution-3f207278fb889bacbfda7afa3899257d0c29888c.tar.zst gsoc2013-evolution-3f207278fb889bacbfda7afa3899257d0c29888c.zip |
Wrap the content-id with <>'s.
2001-05-09 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-part.c (camel_mime_part_set_content_id): Wrap the
content-id with <>'s.
svn path=/trunk/; revision=9734
Diffstat (limited to 'camel')
-rw-r--r-- | camel/ChangeLog | 5 | ||||
-rw-r--r-- | camel/camel-mime-part.c | 13 | ||||
-rw-r--r-- | camel/providers/imap/camel-imap-store.c | 2 |
3 files changed, 17 insertions, 3 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index d52e0eafe7..374811a26b 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2001-05-09 Jeffrey Stedfast <fejj@ximian.com> + + * camel-mime-part.c (camel_mime_part_set_content_id): Wrap the + content-id with <>'s. + 2001-05-04 Jeffrey Stedfast <fejj@ximian.com> * providers/smtp/camel-smtp-transport.c (connect_to_server): Add diff --git a/camel/camel-mime-part.c b/camel/camel-mime-part.c index c8720b2fea..e62f7cce27 100644 --- a/camel/camel-mime-part.c +++ b/camel/camel-mime-part.c @@ -371,8 +371,17 @@ camel_mime_part_get_filename (CamelMimePart *mime_part) void camel_mime_part_set_content_id (CamelMimePart *mime_part, const char *contentid) { - camel_medium_set_header (CAMEL_MEDIUM (mime_part), "Content-ID", - contentid); + char *cid, *id; + + if (contentid) + id = g_strstrip (g_strdup (contentid)); + else + id = header_msgid_generate (); + + cid = g_strdup_printf ("<%s>", id); + g_free (id); + camel_medium_set_header (CAMEL_MEDIUM (mime_part), "Content-ID", cid); + g_free (cid); } const gchar * diff --git a/camel/providers/imap/camel-imap-store.c b/camel/providers/imap/camel-imap-store.c index 74f420fe41..98a3421928 100644 --- a/camel/providers/imap/camel-imap-store.c +++ b/camel/providers/imap/camel-imap-store.c @@ -1218,7 +1218,7 @@ get_folder_info_offline (CamelStore *store, const char *top, /* A kludge to avoid having to pass a struct to the callback */ g_ptr_array_add (folders, imap_store); - if (!e_path_find_folders (imap_store->storage_path, get_one_folder_offline, folders)) { + if (FALSE /*!e_path_find_folders (imap_store->storage_path, get_one_folder_offline, folders)*/) { camel_disco_store_check_online (CAMEL_DISCO_STORE (imap_store), ex); fi = NULL; } else { |