aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/pop3/camel-pop3-folder.h
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2002-08-06 12:11:33 +0800
committerMichael Zucci <zucchi@src.gnome.org>2002-08-06 12:11:33 +0800
commit8a030c88e21c4f2bbd8ddf8eebbf3e8d2fe1117b (patch)
tree4a7ec9646e0973af98617108566cda37be07a647 /camel/providers/pop3/camel-pop3-folder.h
parent5c45e184a45679817e123abb6efcf937d6f50cdc (diff)
downloadgsoc2013-evolution-8a030c88e21c4f2bbd8ddf8eebbf3e8d2fe1117b.tar
gsoc2013-evolution-8a030c88e21c4f2bbd8ddf8eebbf3e8d2fe1117b.tar.gz
gsoc2013-evolution-8a030c88e21c4f2bbd8ddf8eebbf3e8d2fe1117b.tar.bz2
gsoc2013-evolution-8a030c88e21c4f2bbd8ddf8eebbf3e8d2fe1117b.tar.lz
gsoc2013-evolution-8a030c88e21c4f2bbd8ddf8eebbf3e8d2fe1117b.tar.xz
gsoc2013-evolution-8a030c88e21c4f2bbd8ddf8eebbf3e8d2fe1117b.tar.zst
gsoc2013-evolution-8a030c88e21c4f2bbd8ddf8eebbf3e8d2fe1117b.zip
Add messageinfo to id table, and store array index in messageinfo too.
2002-08-06 Not Zed <NotZed@Ximian.com> * providers/pop3/camel-pop3-folder.c (cmd_list): Add messageinfo to id table, and store array index in messageinfo too. (fi_to_index): Removed, use index member of messageinfo, fixed callers. (cmd_builduid): Parse the headers of the data, and ignore any status or x-status headers. (uid_to_fi): Removed, use the hashtable instead. (id_to_fi): Same. (cmd_uidl): Add messageinfo to uid table. (pop3_refresh_info): Setup hash tables, and fill out uid table for nonuid capable servers. (pop3_finalize): Destroy hash tables. Only free resources if the uids table is not null (if finalised before we ran refresh info). (id_to_fi): Removed. Use id hash table instead, fixed caller. svn path=/trunk/; revision=17706
Diffstat (limited to 'camel/providers/pop3/camel-pop3-folder.h')
-rw-r--r--camel/providers/pop3/camel-pop3-folder.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/camel/providers/pop3/camel-pop3-folder.h b/camel/providers/pop3/camel-pop3-folder.h
index 55eb1d253b..7dab07124c 100644
--- a/camel/providers/pop3/camel-pop3-folder.h
+++ b/camel/providers/pop3/camel-pop3-folder.h
@@ -23,11 +23,9 @@
* USA
*/
-
#ifndef CAMEL_POP3_FOLDER_H
#define CAMEL_POP3_FOLDER_H 1
-
#ifdef __cplusplus
extern "C" {
#pragma }
@@ -44,22 +42,21 @@ typedef struct {
guint32 id;
guint32 size;
guint32 flags;
+ guint32 index; /* index of request */
char *uid;
int err;
struct _CamelPOP3Command *cmd;
struct _CamelStream *stream;
} CamelPOP3FolderInfo;
-
typedef struct {
CamelFolder parent_object;
GPtrArray *uids;
-
+ GHashTable *uids_uid; /* messageinfo by uid */
+ GHashTable *uids_id; /* messageinfo by id */
} CamelPOP3Folder;
-
-
typedef struct {
CamelFolderClass parent_class;
@@ -67,7 +64,6 @@ typedef struct {
} CamelPOP3FolderClass;
-
/* public methods */
CamelFolder *camel_pop3_folder_new (CamelStore *parent, CamelException *ex);