diff options
author | Jeffrey Stedfast <fejj@helixcode.com> | 2000-06-13 06:32:54 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2000-06-13 06:32:54 +0800 |
commit | d6291ddc1fcf2537953b54c674f96ce651a16cd3 (patch) | |
tree | 1df8dff1c715655384ae88e5b6a589ff5d5e3df3 /camel/providers/imap | |
parent | 94eda6b11d51fefeff3761a34ac9e1cdd19371ab (diff) | |
download | gsoc2013-evolution-d6291ddc1fcf2537953b54c674f96ce651a16cd3.tar gsoc2013-evolution-d6291ddc1fcf2537953b54c674f96ce651a16cd3.tar.gz gsoc2013-evolution-d6291ddc1fcf2537953b54c674f96ce651a16cd3.tar.bz2 gsoc2013-evolution-d6291ddc1fcf2537953b54c674f96ce651a16cd3.tar.lz gsoc2013-evolution-d6291ddc1fcf2537953b54c674f96ce651a16cd3.tar.xz gsoc2013-evolution-d6291ddc1fcf2537953b54c674f96ce651a16cd3.tar.zst gsoc2013-evolution-d6291ddc1fcf2537953b54c674f96ce651a16cd3.zip |
Deprecated.
2000-06-12 Jeffrey Stedfast <fejj@helixcode.com>
* camel-mime-filter-smtp.c: Deprecated.
* providers/smtp/camel-smtp-transport.c (smtp_data): Updated to use
camel-mime-filter-crlf with my 'dot' extension in place of
camel-mime-filter-smtp
* camel-mime-part.c (write_to_stream): Updated to reflect changes
made to camel-mime-filter-crlf.c
* camel-mime-filter-crlf.c (filter): Modified to be able to
encode/decode dots ("\n.\n"<->"\n..\n"). Also fixed the decoder
so that it should no longer get caught in an infinite loop.
svn path=/trunk/; revision=3536
Diffstat (limited to 'camel/providers/imap')
-rw-r--r-- | camel/providers/imap/camel-imap-folder.c | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c index 722b6bbd9e..4e6e184c48 100644 --- a/camel/providers/imap/camel-imap-folder.c +++ b/camel/providers/imap/camel-imap-folder.c @@ -436,7 +436,7 @@ imap_append_message (CamelFolder *folder, CamelMimeMessage *message, CamelExcept return; } - mem->buffer = g_byte_array_append(mem->buffer, g_strdup("\n"), 2); + mem->buffer = g_byte_array_append(mem->buffer, g_strdup("\r\n"), 3); status = camel_imap_command(CAMEL_IMAP_STORE (folder->parent_store), folder, &result, "APPEND %s (\\Seen) {%d}\r\n%s", @@ -605,13 +605,29 @@ message_changed (CamelMimeMessage *m, int type, CamelImapFolder *mf) static CamelMimeMessage * imap_get_message_by_uid (CamelFolder *folder, const gchar *uid, CamelException *ex) { - CamelImapFolder *imap_folder = CAMEL_IMAP_FOLDER (folder); - CamelImapStore *store = CAMEL_IMAP_STORE (folder->parent_store); CamelImapStream *imap_stream; CamelMimeMessage *message; - gchar *cmdid, *cmdbuf; + CamelMimePart *part; + CamelDataWrapper *cdw; + gchar *cmdbuf; + + /* TODO: fetch the correct part, get rid of the hard-coded stuff */ + cmdbuf = g_strdup_printf("UID FETCH %s BODY[TEXT]", uid); + imap_stream = camel_imap_stream_new(folder, cmdbuf); + g_free(cmdbuf); + message = camel_mime_message_new(); + + cdw = camel_data_wrapper_new(); + camel_data_wrapper_construct_from_stream(cdw, imap_stream); + gtk_object_unref(GTK_OBJECT (imap_stream)); + camel_data_wrapper_set_mime_type (cdw, "text/plain"); + + camel_medium_set_content_object (CAMEL_MEDIUM (message), CAMEL_DATA_WRAPPER (cdw)); + gtk_object_unref (GTK_OBJECT (cdw)); + + return message; } #if 0 |