diff options
author | Jeffrey Stedfast <fejj@src.gnome.org> | 2000-06-14 13:10:53 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2000-06-14 13:10:53 +0800 |
commit | a18691c17e9d49d75775d32a4d25dab9147b2ead (patch) | |
tree | 585cdba8a2b8d9344b01c6c9b4aaded6a6e2e398 /camel/providers/imap/camel-imap-folder.c | |
parent | 73358f50a1915292dea968fcb9101438f38b7243 (diff) | |
download | gsoc2013-evolution-a18691c17e9d49d75775d32a4d25dab9147b2ead.tar.gz gsoc2013-evolution-a18691c17e9d49d75775d32a4d25dab9147b2ead.tar.zst gsoc2013-evolution-a18691c17e9d49d75775d32a4d25dab9147b2ead.zip |
IMAP will now allow you to login, and on some IMAP providers it will actually allow you to get mail - however there are some things that might need to be rewritten in Camel to allow all IMAP providers to work
right now, it wants to open /INBOX which isn't always the same as INBOX
Camel won't seem to allow me to just have it open "INBOX" if I specify '/' as the separator
*sigh*
svn path=/trunk/; revision=3557
Diffstat (limited to 'camel/providers/imap/camel-imap-folder.c')
-rw-r--r-- | camel/providers/imap/camel-imap-folder.c | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c index f09cae6039..2f6af670a2 100644 --- a/camel/providers/imap/camel-imap-folder.c +++ b/camel/providers/imap/camel-imap-folder.c @@ -46,10 +46,13 @@ #include "camel-mime-message.h" #include "camel-stream-filter.h" #include "camel-mime-filter-from.h" +#include "camel-mime-filter-crlf.h" #include "camel-exception.h" #define d(x) +#define CF_CLASS(o) (CAMEL_FOLDER_CLASS (GTK_OBJECT (o)->klass)) + static CamelFolderClass *parent_class = NULL; static void imap_init (CamelFolder *folder, CamelStore *parent_store, @@ -169,10 +172,10 @@ camel_imap_folder_get_type (void) CamelFolder * camel_imap_folder_new (CamelStore *parent, CamelException *ex) { - /* TODO: code this - do we need this? */ CamelFolder *folder = CAMEL_FOLDER (gtk_object_new (camel_imap_folder_get_type (), NULL)); + + CF_CLASS (folder)->init (folder, parent, NULL, "INBOX", '/', ex); - CAMEL_FOLDER_CLASS (folder)->init (folder, parent, NULL, "inbox", '/', ex); return folder; } @@ -605,7 +608,7 @@ message_changed (CamelMimeMessage *m, int type, CamelImapFolder *mf) static CamelMimeMessage * imap_get_message_by_uid (CamelFolder *folder, const gchar *uid, CamelException *ex) { - CamelImapStream *imap_stream; + CamelStream *imap_stream; CamelStream *msgstream; CamelStreamFilter *f_stream; /* will be used later w/ crlf filter */ CamelMimeFilter *filter; /* crlf/dot filter */ @@ -617,7 +620,7 @@ imap_get_message_by_uid (CamelFolder *folder, const gchar *uid, CamelException * /* 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); + imap_stream = camel_imap_stream_new (CAMEL_IMAP_FOLDER (folder), cmdbuf); g_free (cmdbuf); @@ -796,13 +799,3 @@ imap_search_by_expression (CamelFolder *folder, const char *expression, CamelExc - - - - - - - - - - |