diff options
author | NotZed <NotZed@HelixCode.com> | 2000-05-02 03:47:12 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2000-05-02 03:47:12 +0800 |
commit | fed684880e2a47aaa0ee109bd8df0db1a5589c79 (patch) | |
tree | 548a551579178c78ea7f57a14e6f0d69ef57c1db /camel/providers/mbox/camel-mbox-summary.h | |
parent | 0b889518d2fdfd0e296179bf581c7fbff4e5210e (diff) | |
download | gsoc2013-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/providers/mbox/camel-mbox-summary.h')
-rw-r--r-- | camel/providers/mbox/camel-mbox-summary.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/camel/providers/mbox/camel-mbox-summary.h b/camel/providers/mbox/camel-mbox-summary.h index 80b59ef54f..fda574c6f8 100644 --- a/camel/providers/mbox/camel-mbox-summary.h +++ b/camel/providers/mbox/camel-mbox-summary.h @@ -63,15 +63,21 @@ void camel_mbox_summary_unref(CamelMboxSummary *); int camel_mbox_summary_load(CamelMboxSummary *); int camel_mbox_summary_save(CamelMboxSummary *); int camel_mbox_summary_check(CamelMboxSummary *); +int camel_mbox_summary_expunge(CamelMboxSummary *); guint32 camel_mbox_summary_next_uid(CamelMboxSummary *); /* set the minimum uid */ guint32 camel_mbox_summary_set_uid(CamelMboxSummary *s, guint32 uid); CamelMboxMessageInfo *camel_mbox_summary_uid(CamelMboxSummary *s, const char *uid); +/* dont use this function yet ... */ +void camel_mbox_summary_remove_uid(CamelMboxSummary *s, const char *uid); CamelMboxMessageInfo *camel_mbox_summary_index(CamelMboxSummary *, int index); int camel_mbox_summary_message_count(CamelMboxSummary *); +/* set flags within a summary item */ +void camel_mbox_summary_set_flags_by_uid(CamelMboxSummary *s, const char *uid, guint32 flags); + /* TODO: should be in a utility library */ int camel_mbox_summary_copy_block(int fromfd, int tofd, off_t readpos, size_t bytes); |