diff options
author | bertrand <Bertrand.Guiheneuf@aful.org> | 1999-09-08 20:20:30 +0800 |
---|---|---|
committer | Bertrand Guiheneuf <bertrand@src.gnome.org> | 1999-09-08 20:20:30 +0800 |
commit | 4a3be146661da5d5267af57482ba0a22656166f5 (patch) | |
tree | e568418440f75991d60aaab55ec28a5556d19a07 /camel/camel-folder.c | |
parent | 58b233790e34380b6c548ac07f7082ccafaf643f (diff) | |
download | gsoc2013-evolution-4a3be146661da5d5267af57482ba0a22656166f5.tar gsoc2013-evolution-4a3be146661da5d5267af57482ba0a22656166f5.tar.gz gsoc2013-evolution-4a3be146661da5d5267af57482ba0a22656166f5.tar.bz2 gsoc2013-evolution-4a3be146661da5d5267af57482ba0a22656166f5.tar.lz gsoc2013-evolution-4a3be146661da5d5267af57482ba0a22656166f5.tar.xz gsoc2013-evolution-4a3be146661da5d5267af57482ba0a22656166f5.tar.zst gsoc2013-evolution-4a3be146661da5d5267af57482ba0a22656166f5.zip |
impemented.
1999-09-08 bertrand <Bertrand.Guiheneuf@aful.org>
* camel/providers/MH/camel-mh-folder.c
(_get_message_by_uid): impemented.
* camel/camel-folder.c:
(camel_folder_get_message_uid_by_number):
const'ified uid.
(camel_folder_get_message_by_uid): idem
removed stupid camel_folder_get_message_uid_by_number
method.
svn path=/trunk/; revision=1215
Diffstat (limited to 'camel/camel-folder.c')
-rw-r--r-- | camel/camel-folder.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/camel/camel-folder.c b/camel/camel-folder.c index 652306c740..524252da1c 100644 --- a/camel/camel-folder.c +++ b/camel/camel-folder.c @@ -56,9 +56,8 @@ static gint _append_message (CamelFolder *folder, CamelMimeMessage *message); static const GList *_list_permanent_flags (CamelFolder *folder); static void _copy_message_to (CamelFolder *folder, CamelMimeMessage *message, CamelFolder *dest_folder); -static gchar *_get_message_uid (CamelFolder *folder, CamelMimeMessage *message); -static gchar *_get_message_uid_by_number (CamelFolder *folder, gint message_number); -static CamelMimeMessage *_get_message_by_uid (CamelFolder *folder, gchar *uid); +static const gchar *_get_message_uid (CamelFolder *folder, CamelMimeMessage *message); +static CamelMimeMessage *_get_message_by_uid (CamelFolder *folder, const gchar *uid); static GList *_get_uid_list (CamelFolder *folder); @@ -97,7 +96,6 @@ camel_folder_class_init (CamelFolderClass *camel_folder_class) camel_folder_class->list_permanent_flags = _list_permanent_flags; camel_folder_class->copy_message_to; camel_folder_class->get_message_uid = _get_message_uid; - camel_folder_class->get_message_uid_by_number = _get_message_uid_by_number; camel_folder_class->get_message_by_uid = _get_message_by_uid; camel_folder_class->get_uid_list = _get_uid_list; @@ -1026,7 +1024,7 @@ camel_folder_has_uid_capability (CamelFolder *folder) -static gchar * +static const gchar * _get_message_uid (CamelFolder *folder, CamelMimeMessage *message) { return NULL; @@ -1044,7 +1042,7 @@ _get_message_uid (CamelFolder *folder, CamelMimeMessage *message) * * Return value: The UID of the message in the folder **/ -gchar * +const gchar * camel_folder_get_message_uid (CamelFolder *folder, CamelMimeMessage *message) { if (!folder->has_uid_capability) return NULL; @@ -1052,7 +1050,9 @@ camel_folder_get_message_uid (CamelFolder *folder, CamelMimeMessage *message) } -static gchar * + +/* the next two func are left there temporarily */ +static const gchar * _get_message_uid_by_number (CamelFolder *folder, gint message_number) { return NULL; @@ -1070,16 +1070,16 @@ _get_message_uid_by_number (CamelFolder *folder, gint message_number) * * Return value: **/ -gchar * +const gchar * camel_folder_get_message_uid_by_number (CamelFolder *folder, gint message_number) { - if (!folder->has_uid_capability) return NULL; - return CF_CLASS (folder)->get_message_uid_by_number (folder, message_number); + //if (!folder->has_uid_capability) return NULL; + //return CF_CLASS (folder)->get_message_uid_by_number (folder, message_number); } static CamelMimeMessage * -_get_message_by_uid (CamelFolder *folder, gchar *uid) +_get_message_by_uid (CamelFolder *folder, const gchar *uid) { return NULL; } @@ -1097,7 +1097,7 @@ _get_message_by_uid (CamelFolder *folder, gchar *uid) * Return value: Message corresponding to the UID **/ CamelMimeMessage * -camel_folder_get_message_by_uid (CamelFolder *folder, gchar *uid) +camel_folder_get_message_by_uid (CamelFolder *folder, const gchar *uid) { if (!folder->has_uid_capability) return NULL; return CF_CLASS (folder)->get_message_by_uid (folder, uid); |