aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap/camel-imap-folder.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-12-17 10:51:00 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-12-17 10:51:00 +0800
commitc2e29d97bf36012f4b2ee4d827994bd0d032560c (patch)
treed034c31ae0309c244b10d3f482cb299bfc59c26b /camel/providers/imap/camel-imap-folder.c
parentc2c7bc59520288e69939727fd768d848328bdcad (diff)
downloadgsoc2013-evolution-c2e29d97bf36012f4b2ee4d827994bd0d032560c.tar
gsoc2013-evolution-c2e29d97bf36012f4b2ee4d827994bd0d032560c.tar.gz
gsoc2013-evolution-c2e29d97bf36012f4b2ee4d827994bd0d032560c.tar.bz2
gsoc2013-evolution-c2e29d97bf36012f4b2ee4d827994bd0d032560c.tar.lz
gsoc2013-evolution-c2e29d97bf36012f4b2ee4d827994bd0d032560c.tar.xz
gsoc2013-evolution-c2e29d97bf36012f4b2ee4d827994bd0d032560c.tar.zst
gsoc2013-evolution-c2e29d97bf36012f4b2ee4d827994bd0d032560c.zip
Reverted my previous changes here since it doesn't actually work afterall.
2001-12-16 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-folder.c (get_content): Reverted my previous changes here since it doesn't actually work afterall. * providers/imap/camel-imap-wrapper.c (imap_wrapper_hydrate): Update to do uudecoding when appropriate. svn path=/trunk/; revision=15098
Diffstat (limited to 'camel/providers/imap/camel-imap-folder.c')
-rw-r--r--camel/providers/imap/camel-imap-folder.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c
index 492026dc07..e9681797ad 100644
--- a/camel/providers/imap/camel-imap-folder.c
+++ b/camel/providers/imap/camel-imap-folder.c
@@ -1407,19 +1407,12 @@ get_content (CamelImapFolder *imap_folder, const char *uid,
if (header_content_type_is (ci->type, "multipart", "*")) {
CamelMultipart *body_mp;
int speclen, num;
- char *type;
body_mp = camel_multipart_new ();
camel_data_wrapper_set_mime_type_field (
CAMEL_DATA_WRAPPER (body_mp), ci->type);
- /* try and set the original boundary rather than generating a new one... */
- camel_multipart_set_boundary (body_mp, header_content_type_param (ci->type, "boundary"));
-
- /* looks kinda nasty but this is how ya gotta do it... */
- type = header_content_type_format (ci->type);
- camel_mime_part_set_content_type (CAMEL_MIME_PART (body_mp), type);
- g_free (type);
+ camel_multipart_set_boundary (body_mp, NULL);
speclen = strlen (part_spec);
child_spec = g_malloc (speclen + 15);
@@ -2002,7 +1995,7 @@ camel_imap_folder_fetch_data (CamelImapFolder *imap_folder, const char *uid,
CAMEL_IMAP_FOLDER_UNLOCK (imap_folder, cache_lock);
CAMEL_IMAP_STORE_UNLOCK (store, command_lock);
return stream;
- }
+ }
if (camel_disco_store_status (CAMEL_DISCO_STORE (store)) == CAMEL_DISCO_STORE_OFFLINE) {
camel_exception_set (ex, CAMEL_EXCEPTION_SERVICE_UNAVAILABLE,