diff options
author | Jeffrey Stedfast <fejj@helixcode.com> | 2000-07-01 12:48:28 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2000-07-01 12:48:28 +0800 |
commit | b95075468947bc79594acd973d780819b92e10f1 (patch) | |
tree | 5124c702ab9c941bfef662b497afae060b9a122e /camel | |
parent | f7019627af193bfa63271e6cef3a523ad5da9c5e (diff) | |
download | gsoc2013-evolution-b95075468947bc79594acd973d780819b92e10f1.tar gsoc2013-evolution-b95075468947bc79594acd973d780819b92e10f1.tar.gz gsoc2013-evolution-b95075468947bc79594acd973d780819b92e10f1.tar.bz2 gsoc2013-evolution-b95075468947bc79594acd973d780819b92e10f1.tar.lz gsoc2013-evolution-b95075468947bc79594acd973d780819b92e10f1.tar.xz gsoc2013-evolution-b95075468947bc79594acd973d780819b92e10f1.tar.zst gsoc2013-evolution-b95075468947bc79594acd973d780819b92e10f1.zip |
Renamed _by_uid methods. Since we no longer have get-by-number methods, no
2000-07-01 Jeffrey Stedfast <fejj@helixcode.com>
* camel-folder.c: Renamed _by_uid methods. Since we no longer
have get-by-number methods, no need to have the _by_uid
extensions.
(get_message_by_uid): Renamed to get_message
(delete_message_by_uid): Renamed to delete_message
(summary_get_by_uid): Renamed to get_message_info
* providers/mbox/camel-mbox-folder.c:
* providers/pop3/camel-pop3-folder.c:
* providers/imap/camel-imap-folder.c:
* providers/vee/camel-vee-folder.c: Updated to reflect
camel-folder changes.
svn path=/trunk/; revision=3843
Diffstat (limited to 'camel')
-rw-r--r-- | camel/ChangeLog | 15 | ||||
-rw-r--r-- | camel/camel-folder.c | 58 | ||||
-rw-r--r-- | camel/camel-folder.h | 29 | ||||
-rw-r--r-- | camel/providers/imap/camel-imap-folder.c | 28 | ||||
-rw-r--r-- | camel/providers/mbox/camel-mbox-folder.c | 22 | ||||
-rw-r--r-- | camel/providers/pop3/camel-pop3-folder.c | 49 | ||||
-rw-r--r-- | camel/providers/vee/camel-vee-folder.c | 24 |
7 files changed, 120 insertions, 105 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index 39f469646f..ceb01095f0 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,18 @@ +2000-07-01 Jeffrey Stedfast <fejj@helixcode.com> + + * camel-folder.c: Renamed _by_uid methods. Since we no longer + have get-by-number methods, no need to have the _by_uid + extensions. + (get_message_by_uid): Renamed to get_message + (delete_message_by_uid): Renamed to delete_message + (summary_get_by_uid): Renamed to get_message_info + + * providers/mbox/camel-mbox-folder.c: + * providers/pop3/camel-pop3-folder.c: + * providers/imap/camel-imap-folder.c: + * providers/vee/camel-vee-folder.c: Updated to reflect + camel-folder changes. + 2000-06-30 Jeffrey Stedfast <fejj@helixcode.com> * camel-folder.c (camel_folder_copy_message_to): New function, to diff --git a/camel/camel-folder.c b/camel/camel-folder.c index 877ceae7db..095b0e8f36 100644 --- a/camel/camel-folder.c +++ b/camel/camel-folder.c @@ -109,15 +109,15 @@ static void free_summary (CamelFolder *folder, static const gchar *get_message_uid (CamelFolder *folder, CamelMimeMessage *message, CamelException *ex); -static CamelMimeMessage *get_message_by_uid (CamelFolder *folder, +static CamelMimeMessage *get_message (CamelFolder *folder, const gchar *uid, CamelException *ex); -static void delete_message_by_uid (CamelFolder *folder, +static void delete_message (CamelFolder *folder, const gchar *uid, CamelException *ex); -static const CamelMessageInfo *summary_get_by_uid (CamelFolder *folder, - const char *uid); +static const CamelMessageInfo *get_message_info (CamelFolder *folder, + const char *uid); static GList *search_by_expression (CamelFolder *folder, const char *exp, CamelException *ex); @@ -161,14 +161,14 @@ camel_folder_class_init (CamelFolderClass *camel_folder_class) camel_folder_class->get_message_user_flag = get_message_user_flag; camel_folder_class->set_message_user_flag = set_message_user_flag; camel_folder_class->get_message_uid = get_message_uid; - camel_folder_class->get_message_by_uid = get_message_by_uid; - camel_folder_class->delete_message_by_uid = delete_message_by_uid; + camel_folder_class->get_message = get_message; + camel_folder_class->delete_message = delete_message; camel_folder_class->get_uids = get_uids; camel_folder_class->free_uids = free_uids; camel_folder_class->get_summary = get_summary; camel_folder_class->free_summary = free_summary; camel_folder_class->search_by_expression = search_by_expression; - camel_folder_class->summary_get_by_uid = summary_get_by_uid; + camel_folder_class->get_message_info = get_message_info; camel_folder_class->copy_message_to = copy_message_to; camel_folder_class->move_message_to = move_message_to; @@ -744,27 +744,27 @@ camel_folder_set_message_user_flag (CamelFolder *folder, const char *uid, static const CamelMessageInfo * -summary_get_by_uid (CamelFolder *folder, const char *uid) +get_message_info (CamelFolder *folder, const char *uid) { - g_warning ("CamelFolder::summary_get_by_uid not implemented for `%s'", + g_warning ("CamelFolder::get_message_info not implemented for `%s'", gtk_type_name (GTK_OBJECT_TYPE (folder))); return NULL; } /** - * camel_folder_summary_get_by_uid: + * camel_folder_get_message_info: * @folder: a CamelFolder * @uid: the uid of a message * * Return value: the summary information for the indicated message **/ const CamelMessageInfo * -camel_folder_summary_get_by_uid (CamelFolder *folder, const char *uid) +camel_folder_get_message_info (CamelFolder *folder, const char *uid) { g_return_val_if_fail (CAMEL_IS_FOLDER (folder), NULL); g_return_val_if_fail (uid != NULL, NULL); - return CF_CLASS (folder)->summary_get_by_uid (folder, uid); + return CF_CLASS (folder)->get_message_info (folder, uid); } @@ -814,15 +814,15 @@ camel_folder_get_message_uid (CamelFolder *folder, CamelMimeMessage *message, static CamelMimeMessage * -get_message_by_uid (CamelFolder *folder, const gchar *uid, CamelException *ex) +get_message (CamelFolder *folder, const gchar *uid, CamelException *ex) { - g_warning ("CamelFolder::get_message_by_uid not implemented for `%s'", + g_warning ("CamelFolder::get_message not implemented for `%s'", gtk_type_name (GTK_OBJECT_TYPE (folder))); return NULL; } /** - * camel_folder_get_message_by_uid: + * camel_folder_get_message: * @folder: the folder object * @uid: the UID * @ex: a CamelException @@ -834,25 +834,25 @@ get_message_by_uid (CamelFolder *folder, const gchar *uid, CamelException *ex) * Return value: Message corresponding to the UID **/ CamelMimeMessage * -camel_folder_get_message_by_uid (CamelFolder *folder, const gchar *uid, - CamelException *ex) +camel_folder_get_message (CamelFolder *folder, const gchar *uid, + CamelException *ex) { g_return_val_if_fail (CAMEL_IS_FOLDER (folder), NULL); - return CF_CLASS (folder)->get_message_by_uid (folder, uid, ex); + return CF_CLASS (folder)->get_message (folder, uid, ex); } static void -delete_message_by_uid (CamelFolder *folder, const gchar *uid, - CamelException *ex) +delete_message (CamelFolder *folder, const gchar *uid, + CamelException *ex) { - g_warning ("CamelFolder::delete_message_by_uid not implemented " + g_warning ("CamelFolder::delete_message not implemented " "for `%s'", gtk_type_name (GTK_OBJECT_TYPE (folder))); } /** - * camel_folder_delete_message_by_uid: + * camel_folder_delete_message: * @folder: the folder object * @uid: the UID * @ex: a CamelException @@ -860,12 +860,12 @@ delete_message_by_uid (CamelFolder *folder, const gchar *uid, * Delete a message from a folder given its UID. **/ void -camel_folder_delete_message_by_uid (CamelFolder *folder, const gchar *uid, - CamelException *ex) +camel_folder_delete_message (CamelFolder *folder, const gchar *uid, + CamelException *ex) { g_return_if_fail (CAMEL_IS_FOLDER (folder)); - return CF_CLASS (folder)->delete_message_by_uid (folder, uid, ex); + return CF_CLASS (folder)->delete_message (folder, uid, ex); } @@ -1035,7 +1035,7 @@ copy_message_to (CamelFolder *source, const char *uid, CamelFolder *dest, /* Default implementation. */ - msg = camel_folder_get_message_by_uid (source, uid, ex); + msg = camel_folder_get_message (source, uid, ex); if (!msg) return; camel_folder_append_message (dest, msg, ex); @@ -1079,14 +1079,14 @@ move_message_to (CamelFolder *source, const char *uid, CamelFolder *dest, /* Default implementation. */ - msg = camel_folder_get_message_by_uid (source, uid, ex); + msg = camel_folder_get_message (source, uid, ex); if (!msg) return; camel_folder_append_message (dest, msg, ex); gtk_object_unref (GTK_OBJECT (msg)); if (camel_exception_is_set (ex)) return; - camel_folder_delete_message_by_uid (source, uid, ex); + camel_folder_delete_message (source, uid, ex); } /** @@ -1099,7 +1099,7 @@ move_message_to (CamelFolder *source, const char *uid, CamelFolder *dest, * This moves a message from one folder to another. If the @source and * @dest folders have the same parent_store, this may be more efficient * than a camel_folder_append_message() followed by - * camel_folder_delete_message_by_uid(). + * camel_folder_delete_message(). **/ void camel_folder_move_message_to (CamelFolder *source, const char *uid, diff --git a/camel/camel-folder.h b/camel/camel-folder.h index 7f8520ed63..5ae8be25cc 100644 --- a/camel/camel-folder.h +++ b/camel/camel-folder.h @@ -130,13 +130,13 @@ typedef struct { CamelMimeMessage *message, CamelException *ex); - CamelMimeMessage * (*get_message_by_uid) (CamelFolder *folder, - const gchar *uid, - CamelException *ex); + CamelMimeMessage * (*get_message) (CamelFolder *folder, + const gchar *uid, + CamelException *ex); - void (*delete_message_by_uid) (CamelFolder *folder, - const gchar *uid, - CamelException *ex); + void (*delete_message) (CamelFolder *folder, + const gchar *uid, + CamelException *ex); GPtrArray * (*get_uids) (CamelFolder *folder, CamelException *ex); @@ -159,8 +159,8 @@ typedef struct { const char *expression, CamelException *ex); - const CamelMessageInfo * (*summary_get_by_uid) (CamelFolder *, - const char *uid); + const CamelMessageInfo * (*get_message_info) (CamelFolder *, + const char *uid); void (*copy_message_to) (CamelFolder *source, const char *uid, @@ -265,10 +265,10 @@ void camel_folder_free_subfolder_names (CamelFolder *folder, const gchar * camel_folder_get_message_uid (CamelFolder *folder, CamelMimeMessage *message, CamelException *ex); -CamelMimeMessage * camel_folder_get_message_by_uid (CamelFolder *folder, +CamelMimeMessage * camel_folder_get_message (CamelFolder *folder, const gchar *uid, CamelException *ex); -void camel_folder_delete_message_by_uid (CamelFolder *folder, +void camel_folder_delete_message (CamelFolder *folder, const gchar *uid, CamelException *ex); GPtrArray * camel_folder_get_uids (CamelFolder *folder, @@ -281,8 +281,13 @@ gboolean camel_folder_has_search_capability (CamelFolder *folder); GList * camel_folder_search_by_expression (CamelFolder *folder, const char *expression, CamelException *ex); /* summary info. FIXME: rename this slightly? */ -const CamelMessageInfo *camel_folder_summary_get_by_uid (CamelFolder *summary, - const char *uid); +const CamelMessageInfo *camel_folder_get_message_info (CamelFolder *summary, + const char *uid); + +void camel_folder_copy_message_to (CamelFolder *source, + const char *uid, + CamelFolder *dest, + CamelException *ex); void camel_folder_move_message_to (CamelFolder *source, const char *uid, diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c index 431c705f65..e1eebb0624 100644 --- a/camel/providers/imap/camel-imap-folder.c +++ b/camel/providers/imap/camel-imap-folder.c @@ -71,14 +71,12 @@ static gboolean imap_parse_subfolder_line (gchar *buf, gchar **flags, gchar **se static GPtrArray *imap_get_subfolder_names (CamelFolder *folder, CamelException *ex); static GPtrArray *imap_get_summary (CamelFolder *folder, CamelException *ex); static void imap_free_summary (CamelFolder *folder, GPtrArray *array); -static CamelMimeMessage *imap_get_message_by_uid (CamelFolder *folder, const gchar *uid, - CamelException *ex); +static CamelMimeMessage *imap_get_message (CamelFolder *folder, const gchar *uid, CamelException *ex); +static void imap_delete_message (CamelFolder *folder, const gchar *uid, CamelException *ex); static void imap_expunge (CamelFolder *folder, CamelException *ex); -static void imap_delete_message_by_uid (CamelFolder *folder, const gchar *uid, CamelException *ex); - -static const CamelMessageInfo *imap_summary_get_by_uid (CamelFolder *f, const char *uid); +static const CamelMessageInfo *imap_get_message_info (CamelFolder *folder, const char *uid); static GList *imap_search_by_expression (CamelFolder *folder, const char *expression, CamelException *ex); @@ -113,14 +111,14 @@ camel_imap_folder_class_init (CamelImapFolderClass *camel_imap_folder_class) camel_folder_class->get_subfolder_names = imap_get_subfolder_names; camel_folder_class->get_message_count = imap_get_message_count; - camel_folder_class->get_message_by_uid = imap_get_message_by_uid; + camel_folder_class->get_message = imap_get_message; camel_folder_class->append_message = imap_append_message; - camel_folder_class->delete_message_by_uid = imap_delete_message_by_uid; + camel_folder_class->delete_message = imap_delete_message; camel_folder_class->copy_message_to = imap_copy_message_to; camel_folder_class->move_message_to = imap_move_message_to; camel_folder_class->get_summary = imap_get_summary; - camel_folder_class->summary_get_by_uid = imap_summary_get_by_uid; + camel_folder_class->get_message_info = imap_get_message_info; camel_folder_class->free_summary = imap_free_summary; camel_folder_class->search_by_expression = imap_search_by_expression; @@ -565,7 +563,7 @@ imap_move_message_to (CamelFolder *source, const char *uid, CamelFolder *destina g_free (result); g_free (folder_path); - if (!(info = (CamelMessageInfo *)imap_summary_get_by_uid (source, uid))) { + if (!(info = (CamelMessageInfo *)imap_get_message_info (source, uid))) { CamelService *service = CAMEL_SERVICE (store); camel_exception_setv (ex, CAMEL_EXCEPTION_SERVICE_UNAVAILABLE, @@ -730,11 +728,11 @@ imap_get_subfolder_names (CamelFolder *folder, CamelException *ex) } static void -imap_delete_message_by_uid (CamelFolder *folder, const gchar *uid, CamelException *ex) +imap_delete_message (CamelFolder *folder, const gchar *uid, CamelException *ex) { CamelMessageInfo *info; - if (!(info = (CamelMessageInfo *)imap_summary_get_by_uid (folder, uid))) { + if (!(info = (CamelMessageInfo *)imap_get_message_info (folder, uid))) { CamelService *service = CAMEL_SERVICE (folder->parent_store); camel_exception_setv (ex, CAMEL_EXCEPTION_SERVICE_UNAVAILABLE, @@ -747,7 +745,7 @@ imap_delete_message_by_uid (CamelFolder *folder, const gchar *uid, CamelExceptio } static CamelMimeMessage * -imap_get_message_by_uid (CamelFolder *folder, const gchar *uid, CamelException *ex) +imap_get_message (CamelFolder *folder, const gchar *uid, CamelException *ex) { CamelStream *msgstream; /*CamelStreamFilter *f_stream;*/ @@ -1111,7 +1109,7 @@ imap_free_summary (CamelFolder *folder, GPtrArray *array) /* get a single message info, by uid */ static const CamelMessageInfo * -imap_summary_get_by_uid (CamelFolder *folder, const char *uid) +imap_get_message_info (CamelFolder *folder, const char *uid) { CamelImapFolder *imap_folder = CAMEL_IMAP_FOLDER (folder); CamelMessageInfo *info = NULL; @@ -1248,7 +1246,7 @@ imap_get_message_flags (CamelFolder *folder, const char *uid, CamelException *ex { CamelMessageInfo *info; - if (!(info = (CamelMessageInfo *)imap_summary_get_by_uid (folder, uid))) { + if (!(info = (CamelMessageInfo *)imap_get_message_info (folder, uid))) { CamelService *service = CAMEL_SERVICE (folder->parent_store); camel_exception_setv (ex, CAMEL_EXCEPTION_SERVICE_UNAVAILABLE, @@ -1265,7 +1263,7 @@ imap_set_message_flags (CamelFolder *folder, const char *uid, guint32 flags, gui { CamelMessageInfo *info; - if (!(info = (CamelMessageInfo *)imap_summary_get_by_uid (folder, uid))) { + if (!(info = (CamelMessageInfo *)imap_get_message_info (folder, uid))) { CamelService *service = CAMEL_SERVICE (folder->parent_store); camel_exception_setv (ex, CAMEL_EXCEPTION_SERVICE_UNAVAILABLE, diff --git a/camel/providers/mbox/camel-mbox-folder.c b/camel/providers/mbox/camel-mbox-folder.c index dee06ed39d..09b718a1de 100644 --- a/camel/providers/mbox/camel-mbox-folder.c +++ b/camel/providers/mbox/camel-mbox-folder.c @@ -68,17 +68,13 @@ static GPtrArray *mbox_get_uids (CamelFolder *folder, CamelException *ex); static GPtrArray *mbox_get_subfolder_names (CamelFolder *folder, CamelException *ex); static GPtrArray *mbox_get_summary (CamelFolder *folder, CamelException *ex); static void mbox_free_summary (CamelFolder *folder, GPtrArray *array); -static CamelMimeMessage *mbox_get_message_by_uid (CamelFolder *folder, const gchar *uid, CamelException *ex); +static CamelMimeMessage *mbox_get_message (CamelFolder *folder, const gchar *uid, CamelException *ex); static void mbox_expunge (CamelFolder *folder, CamelException *ex); -#if 0 -static void _copy_message_to (CamelFolder *folder, CamelMimeMessage *message, CamelFolder *dest_folder, CamelException *ex); -static const gchar *_get_message_uid (CamelFolder *folder, CamelMimeMessage *message, CamelException *ex); -#endif -static void mbox_delete_message_by_uid(CamelFolder *folder, const gchar *uid, CamelException *ex); +static void mbox_delete_message (CamelFolder *folder, const gchar *uid, CamelException *ex); -static const CamelMessageInfo *mbox_summary_get_by_uid(CamelFolder *f, const char *uid); +static const CamelMessageInfo *mbox_get_message_info (CamelFolder *folder, const char *uid); static GList *mbox_search_by_expression(CamelFolder *folder, const char *expression, CamelException *ex); @@ -111,12 +107,12 @@ camel_mbox_folder_class_init (CamelMboxFolderClass *camel_mbox_folder_class) camel_folder_class->free_summary = mbox_free_summary; camel_folder_class->expunge = mbox_expunge; - camel_folder_class->get_message_by_uid = mbox_get_message_by_uid; - camel_folder_class->delete_message_by_uid = mbox_delete_message_by_uid; + camel_folder_class->get_message = mbox_get_message; + camel_folder_class->delete_message = mbox_delete_message; camel_folder_class->search_by_expression = mbox_search_by_expression; - camel_folder_class->summary_get_by_uid = mbox_summary_get_by_uid; + camel_folder_class->get_message_info = mbox_get_message_info; camel_folder_class->get_message_flags = mbox_get_message_flags; camel_folder_class->set_message_flags = mbox_set_message_flags; @@ -406,7 +402,7 @@ mbox_get_subfolder_names (CamelFolder *folder, CamelException *ex) } static void -mbox_delete_message_by_uid (CamelFolder *folder, const gchar *uid, CamelException *ex) +mbox_delete_message (CamelFolder *folder, const gchar *uid, CamelException *ex) { CamelMessageInfo *info; CamelMboxFolder *mf = CAMEL_MBOX_FOLDER (folder); @@ -419,7 +415,7 @@ mbox_delete_message_by_uid (CamelFolder *folder, const gchar *uid, CamelExceptio } static CamelMimeMessage * -mbox_get_message_by_uid (CamelFolder *folder, const gchar *uid, CamelException *ex) +mbox_get_message (CamelFolder *folder, const gchar *uid, CamelException *ex) { CamelMboxFolder *mbox_folder = CAMEL_MBOX_FOLDER (folder); CamelStream *message_stream = NULL; @@ -504,7 +500,7 @@ mbox_free_summary (CamelFolder *folder, GPtrArray *array) /* get a single message info, by uid */ static const CamelMessageInfo * -mbox_summary_get_by_uid (CamelFolder *folder, const char *uid) +mbox_get_message_info (CamelFolder *folder, const char *uid) { CamelMboxFolder *mbox_folder = CAMEL_MBOX_FOLDER (folder); diff --git a/camel/providers/pop3/camel-pop3-folder.c b/camel/providers/pop3/camel-pop3-folder.c index aebe62bbde..fbfb8c6129 100644 --- a/camel/providers/pop3/camel-pop3-folder.c +++ b/camel/providers/pop3/camel-pop3-folder.c @@ -36,19 +36,19 @@ #define CF_CLASS(o) (CAMEL_FOLDER_CLASS (GTK_OBJECT (o)->klass)) static CamelFolderClass *parent_class; -static void finalize (GtkObject *object); +static void pop3_finalize (GtkObject *object); static void pop3_sync (CamelFolder *folder, gboolean expunge, CamelException *ex); -static gint get_message_count (CamelFolder *folder, CamelException *ex); -static GPtrArray *get_uids (CamelFolder *folder, CamelException *ex); -static void free_uids (CamelFolder *folder, GPtrArray *uids); -static CamelMimeMessage *get_message_by_uid (CamelFolder *folder, - const char *uid, - CamelException *ex); -static void delete_message_by_uid (CamelFolder *folder, const char *uid, - CamelException *ex); +static gint pop3_get_message_count (CamelFolder *folder, CamelException *ex); +static GPtrArray *pop3_get_uids (CamelFolder *folder, CamelException *ex); +static void pop3_free_uids (CamelFolder *folder, GPtrArray *uids); +static CamelMimeMessage *pop3_get_message (CamelFolder *folder, + const char *uid, + CamelException *ex); +static void pop3_delete_message (CamelFolder *folder, const char *uid, + CamelException *ex); static void @@ -64,14 +64,14 @@ camel_pop3_folder_class_init (CamelPop3FolderClass *camel_pop3_folder_class) /* virtual method overload */ camel_folder_class->sync = pop3_sync; - camel_folder_class->get_message_count = get_message_count; - camel_folder_class->get_uids = get_uids; - camel_folder_class->free_uids = free_uids; + camel_folder_class->get_message_count = pop3_get_message_count; + camel_folder_class->get_uids = pop3_get_uids; + camel_folder_class->free_uids = pop3_free_uids; - camel_folder_class->get_message_by_uid = get_message_by_uid; - camel_folder_class->delete_message_by_uid = delete_message_by_uid; + camel_folder_class->get_message = pop3_get_message; + camel_folder_class->delete_message = pop3_delete_message; - object_class->finalize = finalize; + object_class->finalize = pop3_finalize; } static void @@ -113,7 +113,7 @@ camel_pop3_folder_get_type (void) } void -finalize (GtkObject *object) +pop3_finalize (GtkObject *object) { CamelPop3Folder *pop3_folder = CAMEL_POP3_FOLDER (object); @@ -175,7 +175,7 @@ uid_to_number (CamelFolder *folder, const char *uid, CamelException *ex) CamelPop3Folder *pop3_folder = CAMEL_POP3_FOLDER (folder); int i; - if (!get_uids (folder, ex)) + if (!pop3_get_uids (folder, ex)) return -1; for (i = 0; i < pop3_folder->uids->len; i++) { @@ -188,7 +188,7 @@ uid_to_number (CamelFolder *folder, const char *uid, CamelException *ex) static CamelMimeMessage * -get_message_by_uid (CamelFolder *folder, const char *uid, CamelException *ex) +pop3_get_message (CamelFolder *folder, const char *uid, CamelException *ex) { int status, num; char *result, *body; @@ -235,8 +235,8 @@ get_message_by_uid (CamelFolder *folder, const char *uid, CamelException *ex) } static void -delete_message_by_uid (CamelFolder *folder, const char *uid, - CamelException *ex) +pop3_delete_message (CamelFolder *folder, const char *uid, + CamelException *ex) { int status, num; char *resp; @@ -257,18 +257,18 @@ delete_message_by_uid (CamelFolder *folder, const char *uid, } static gint -get_message_count (CamelFolder *folder, CamelException *ex) +pop3_get_message_count (CamelFolder *folder, CamelException *ex) { CamelPop3Folder *pop3_folder = CAMEL_POP3_FOLDER (folder); - if (!get_uids (folder, ex)) + if (!pop3_get_uids (folder, ex)) return -1; return pop3_folder->uids->len; } static GPtrArray * -get_uids (CamelFolder *folder, CamelException *ex) +pop3_get_uids (CamelFolder *folder, CamelException *ex) { CamelPop3Store *pop3_store = CAMEL_POP3_STORE (folder->parent_store); CamelPop3Folder *pop3_folder = CAMEL_POP3_FOLDER (folder); @@ -329,7 +329,8 @@ get_uids (CamelFolder *folder, CamelException *ex) } static void -free_uids (CamelFolder *folder, GPtrArray *uids) +pop3_free_uids (CamelFolder *folder, GPtrArray *uids) { ; } + diff --git a/camel/providers/vee/camel-vee-folder.c b/camel/providers/vee/camel-vee-folder.c index 9d0d33b475..9df922c832 100644 --- a/camel/providers/vee/camel-vee-folder.c +++ b/camel/providers/vee/camel-vee-folder.c @@ -48,9 +48,9 @@ GPtrArray *vee_get_summary (CamelFolder *folder, CamelException *ex); void vee_free_summary (CamelFolder *folder, GPtrArray *array); static gint vee_get_message_count (CamelFolder *folder, CamelException *ex); -static CamelMimeMessage *vee_get_message_by_uid (CamelFolder *folder, const gchar *uid, CamelException *ex); +static CamelMimeMessage *vee_get_message (CamelFolder *folder, const gchar *uid, CamelException *ex); -static const CamelMessageInfo *vee_summary_get_by_uid(CamelFolder *f, const char *uid); +static const CamelMessageInfo *vee_get_message_info (CamelFolder *folder, const char *uid); static GList *vee_search_by_expression(CamelFolder *folder, const char *expression, CamelException *ex); static guint32 vee_get_message_flags (CamelFolder *folder, const char *uid, CamelException *ex); @@ -111,9 +111,9 @@ camel_vee_folder_class_init (CamelVeeFolderClass *klass) folder_class->get_uids = vee_get_uids; folder_class->get_summary = vee_get_summary; folder_class->free_summary = vee_free_summary; - folder_class->get_message_by_uid = vee_get_message_by_uid; + folder_class->get_message = vee_get_message; - folder_class->summary_get_by_uid = vee_summary_get_by_uid; + folder_class->get_message_info = vee_get_message_info; folder_class->get_message_count = vee_get_message_count; folder_class->search_by_expression = vee_search_by_expression; @@ -193,10 +193,10 @@ message_changed(CamelFolder *f, const char *uid, CamelVeeFolder *mf) char *vuid; printf("VMessage changed: %s\n", uid); - info = camel_folder_summary_get_by_uid(f, uid); + info = camel_folder_get_message_info(f, uid); vuid = g_strdup_printf("%p:%s", f, uid); - vinfo = (CamelMessageInfo *)vee_summary_get_by_uid((CamelFolder *)mf, vuid); + vinfo = (CamelMessageInfo *)vee_get_message_info((CamelFolder *)mf, vuid); if (info && vinfo) { vinfo->flags = info->flags; camel_flag_list_free(&vinfo->user_flags); @@ -291,7 +291,7 @@ get_real_message (CamelFolder *folder, const char *uid, { CamelVeeMessageInfo *mi; - mi = (CamelVeeMessageInfo *)vee_summary_get_by_uid(folder, uid); + mi = (CamelVeeMessageInfo *)vee_get_message_info(folder, uid); if (mi == NULL) { camel_exception_setv(ex, CAMEL_EXCEPTION_FOLDER_INVALID_UID, "No such message %s in %s", uid, @@ -304,7 +304,7 @@ get_real_message (CamelFolder *folder, const char *uid, return TRUE; } -static CamelMimeMessage *vee_get_message_by_uid (CamelFolder *folder, const gchar *uid, CamelException *ex) +static CamelMimeMessage *vee_get_message (CamelFolder *folder, const gchar *uid, CamelException *ex) { const char *real_uid; CamelFolder *real_folder; @@ -312,7 +312,7 @@ static CamelMimeMessage *vee_get_message_by_uid (CamelFolder *folder, const gcha if (!get_real_message (folder, uid, &real_folder, &real_uid, ex)) return NULL; - return camel_folder_get_message_by_uid(real_folder, real_uid, ex); + return camel_folder_get_message (real_folder, real_uid, ex); } GPtrArray *vee_get_summary (CamelFolder *folder, CamelException *ex) @@ -327,7 +327,7 @@ void vee_free_summary (CamelFolder *folder, GPtrArray *array) /* no op */ } -static const CamelMessageInfo *vee_summary_get_by_uid(CamelFolder *f, const char *uid) +static const CamelMessageInfo *vee_get_message_info (CamelFolder *f, const char *uid) { CamelVeeFolder *vf = (CamelVeeFolder *)f; @@ -478,7 +478,7 @@ vee_folder_build(CamelVeeFolder *vf, CamelException *ex) matches = camel_folder_search_by_expression(f, vf->expression, ex); match = matches; while (match) { - info = camel_folder_summary_get_by_uid(f, match->data); + info = camel_folder_get_message_info(f, match->data); if (info) { mi = g_malloc0(sizeof(*mi)); mi->info.subject = g_strdup(info->subject); @@ -553,7 +553,7 @@ vee_folder_build_folder(CamelVeeFolder *vf, CamelFolder *source, CamelException matches = camel_folder_search_by_expression(f, vf->expression, ex); match = matches; while (match) { - info = camel_folder_summary_get_by_uid(f, match->data); + info = camel_folder_get_message_info(f, match->data); if (info) { mi = g_malloc0(sizeof(*mi)); mi->info.subject = g_strdup(info->subject); |