aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-folder.h
diff options
context:
space:
mode:
authorNotZed <NotZed@HelixCode.com>2000-05-02 03:47:12 +0800
committerMichael Zucci <zucchi@src.gnome.org>2000-05-02 03:47:12 +0800
commitfed684880e2a47aaa0ee109bd8df0db1a5589c79 (patch)
tree548a551579178c78ea7f57a14e6f0d69ef57c1db /camel/camel-folder.h
parent0b889518d2fdfd0e296179bf581c7fbff4e5210e (diff)
downloadgsoc2013-evolution-fed684880e2a47aaa0ee109bd8df0db1a5589c79.tar
gsoc2013-evolution-fed684880e2a47aaa0ee109bd8df0db1a5589c79.tar.gz
gsoc2013-evolution-fed684880e2a47aaa0ee109bd8df0db1a5589c79.tar.bz2
gsoc2013-evolution-fed684880e2a47aaa0ee109bd8df0db1a5589c79.tar.lz
gsoc2013-evolution-fed684880e2a47aaa0ee109bd8df0db1a5589c79.tar.xz
gsoc2013-evolution-fed684880e2a47aaa0ee109bd8df0db1a5589c79.tar.zst
gsoc2013-evolution-fed684880e2a47aaa0ee109bd8df0db1a5589c79.zip
More message cleanup. Flags now work, are saved, and the delete
flag causes an expunge to expunge the deleted messages. 2000-05-01 NotZed <NotZed@HelixCode.com> * providers/mbox/camel-mbox-summary.c (camel_mbox_summary_set_flags_by_uid): New function to update the flags in the summary. (camel_mbox_summary_expunge): Expunge messages from a folder. (offset_content): Re-align offsets of summary when messages added/removed to an existing summary. (camel_mbox_summary_remove_uid): Remove a message summary entry by uid. (index_folder): Restore flags from X-Evolution header, if they are set. * providers/mbox/camel-mbox-folder.c (_get_message_by_uid): Connect to the message_changed signal. (_init): Set permanent flags to something reasonable. No user flags yet ... (message_changed): If the flags of the message change, update the flags in the summary. (mbox_expunge): Implement the expunge. (camel_mbox_folder_class_init): Renamed all leading _'s to mbox_'s * camel-folder.c (_finalize): Uh, dont free permanent_flags anymore (this wouldn't failed anyway, it was a GList !!!) * camel-folder.h (struct _CamelFolder): Change permanent_flags to a bitfield. (list_permanent_flags): Renamed to get_permanent_flags, and returns a bitfield. (camel_folder_expunge): Changed expunge to a void type. The messages would no longer be useful after they have been removed ... * camel-mime-message.c (set_flag): Removed. (camel_mime_message_set_flag): Removed. (get_flag): Removed. (camel_mime_message_get_flag): Removed. (add_flag_to_list): Removed. (get_flag_list): Removed. (camel_mime_message_get_flag_list): Removed. (camel_mime_message_get_flags): New interface to get system flags. (camel_mime_message_set_flags): " to set ". (camel_mime_message_get_user_flag): To get a user flag. (camel_mime_message_set_user_flag): To set a user flag. (finalize): Hmm, the old one free'd the key and data, not good when the data is a boolean ... svn path=/trunk/; revision=2716
Diffstat (limited to 'camel/camel-folder.h')
-rw-r--r--camel/camel-folder.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/camel/camel-folder.h b/camel/camel-folder.h
index b8b2db0da5..15d8194d2e 100644
--- a/camel/camel-folder.h
+++ b/camel/camel-folder.h
@@ -96,7 +96,6 @@ typedef struct {
gchar *uid;
guint32 flags;
-
time_t date_sent;
time_t date_received;
@@ -116,7 +115,7 @@ struct _CamelFolder
gchar separator;
CamelStore *parent_store;
CamelFolder *parent_folder;
- GList *permanent_flags;
+ guint32 permanent_flags;
gboolean can_hold_folders:1;
gboolean can_hold_messages:1;
@@ -194,8 +193,8 @@ typedef struct {
GList * (*list_subfolders) (CamelFolder *folder,
CamelException *ex);
- GList * (*expunge) (CamelFolder *folder,
- CamelException *ex);
+ void (*expunge) (CamelFolder *folder,
+ CamelException *ex);
gboolean (*has_message_number_capability) (CamelFolder *folder);
@@ -214,8 +213,8 @@ typedef struct {
CamelMimeMessage *message,
CamelException *ex);
- const GList * (*list_permanent_flags) (CamelFolder *folder,
- CamelException *ex);
+ guint32 (*get_permanent_flags) (CamelFolder *folder,
+ CamelException *ex);
void (*copy_message_to) (CamelFolder *folder,
CamelMimeMessage *message,
@@ -291,7 +290,7 @@ gboolean camel_folder_delete (CamelFolder *folder,
CamelException *ex);
gboolean camel_folder_delete_messages (CamelFolder *folder,
CamelException *ex);
-GList * camel_folder_expunge (CamelFolder *folder,
+void camel_folder_expunge (CamelFolder *folder,
CamelException *ex);
@@ -303,8 +302,9 @@ const gchar * camel_folder_get_full_name (CamelFolder *folder);
/* various properties accessors */
gboolean camel_folder_exists (CamelFolder *folder,
CamelException *ex);
-const GList * camel_folder_list_permanent_flags (CamelFolder *folder,
+guint32 camel_folder_get_permanent_flags (CamelFolder *folder,
CamelException *ex);
+
CamelFolderOpenMode camel_folder_get_mode (CamelFolder *folder,
CamelException *ex);
gboolean camel_folder_is_open (CamelFolder *folder);