aboutsummaryrefslogtreecommitdiffstats
path: root/libemail-engine
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-04-02 10:31:50 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-04-02 11:15:38 +0800
commit299521f02c02278857dfd2561973dc0c94e44b57 (patch)
treee89760fc89b6e185780d242e4817ff4047efd564 /libemail-engine
parentccb3616af1dda65cc09093649d5333b9e3e19e11 (diff)
downloadgsoc2013-evolution-299521f02c02278857dfd2561973dc0c94e44b57.tar
gsoc2013-evolution-299521f02c02278857dfd2561973dc0c94e44b57.tar.gz
gsoc2013-evolution-299521f02c02278857dfd2561973dc0c94e44b57.tar.bz2
gsoc2013-evolution-299521f02c02278857dfd2561973dc0c94e44b57.tar.lz
gsoc2013-evolution-299521f02c02278857dfd2561973dc0c94e44b57.tar.xz
gsoc2013-evolution-299521f02c02278857dfd2561973dc0c94e44b57.tar.zst
gsoc2013-evolution-299521f02c02278857dfd2561973dc0c94e44b57.zip
Whitespace cleanup.
Replace 8-space indentation with tab characters, and various other automated cleanups.
Diffstat (limited to 'libemail-engine')
-rw-r--r--libemail-engine/e-mail-utils.c2
-rw-r--r--libemail-engine/mail-ops.c21
-rw-r--r--libemail-engine/mail-ops.h8
3 files changed, 16 insertions, 15 deletions
diff --git a/libemail-engine/e-mail-utils.c b/libemail-engine/e-mail-utils.c
index af861ca98c..e60e08aa3f 100644
--- a/libemail-engine/e-mail-utils.c
+++ b/libemail-engine/e-mail-utils.c
@@ -1059,7 +1059,7 @@ em_utils_is_local_delivery_mbox_file (CamelURL *url)
{
g_return_val_if_fail (url != NULL, FALSE);
- return g_str_equal (url->protocol, "mbox") &&
+ return g_str_equal (url->protocol, "mbox") &&
(url->path != NULL) &&
g_file_test (url->path, G_FILE_TEST_EXISTS) &&
!g_file_test (url->path, G_FILE_TEST_IS_DIR);
diff --git a/libemail-engine/mail-ops.c b/libemail-engine/mail-ops.c
index 5e26c6c2f5..67b40c372b 100644
--- a/libemail-engine/mail-ops.c
+++ b/libemail-engine/mail-ops.c
@@ -83,7 +83,7 @@ struct _fetch_mail_msg {
MailProviderFetchLockFunc provider_lock;
MailProviderFetchUnlockFunc provider_unlock;
MailProviderFetchInboxFunc provider_fetch_inbox;
-
+
void (*done)(gint still_more, gpointer data);
gpointer data;
};
@@ -291,8 +291,8 @@ fetch_mail_exec (struct _fetch_mail_msg *m,
if (m->fetch_count > 0) {
/* We probably should fetch some old messages first. */
printf("Fetching %d %s messages\n", m->fetch_count, (m->fetch_type == CAMEL_FETCH_NEW_MESSAGES) ? "new" : "old");
- m->still_more = camel_folder_fetch_messages_sync (folder, m->fetch_type,
- m->fetch_count, cancellable, error) ? 1 : 0 ;
+ m->still_more = camel_folder_fetch_messages_sync (folder, m->fetch_type,
+ m->fetch_count, cancellable, error) ? 1 : 0;
}
service = CAMEL_SERVICE (parent_store);
data_dir = camel_service_get_user_data_dir (service);
@@ -323,7 +323,7 @@ fetch_mail_exec (struct _fetch_mail_msg *m,
/* Reverse it so that we fetch the latest as first, while fetching POP */
for (i = 0; i < cache_uids->len; i++)
- uids->pdata[cache_uids->len-i-1] = g_strdup (cache_uids->pdata[i]);
+ uids->pdata[cache_uids->len - i - 1] = g_strdup (cache_uids->pdata[i]);
camel_uid_cache_free_uids (cache_uids);
@@ -417,18 +417,19 @@ static MailMsgInfo fetch_mail_info = {
void
mail_fetch_mail (CamelStore *store,
gint keep,
- CamelFetchType fetch_type,
- gint fetch_count,
+ CamelFetchType fetch_type,
+ gint fetch_count,
const gchar *type,
- MailProviderFetchLockFunc lock_func,
- MailProviderFetchUnlockFunc unlock_func,
- MailProviderFetchInboxFunc fetch_inbox_func,
+ MailProviderFetchLockFunc lock_func,
+ MailProviderFetchUnlockFunc unlock_func,
+ MailProviderFetchInboxFunc fetch_inbox_func,
GCancellable *cancellable,
CamelFilterGetFolderFunc get_folder,
gpointer get_data,
CamelFilterStatusFunc *status,
gpointer status_data,
- void (*done)(int still_more, gpointer data),
+ void (*done)(gint still_more,
+ gpointer data),
gpointer data)
{
struct _fetch_mail_msg *m;
diff --git a/libemail-engine/mail-ops.h b/libemail-engine/mail-ops.h
index e4c2002a0b..d42268d8ad 100644
--- a/libemail-engine/mail-ops.h
+++ b/libemail-engine/mail-ops.h
@@ -71,10 +71,10 @@ void mail_send_queue (EMailSession *session,
void (*done)(gpointer data),
gpointer data);
-typedef void (*MailProviderFetchLockFunc) (const char *source);
-typedef void (*MailProviderFetchUnlockFunc) (const char *source);
+typedef void (*MailProviderFetchLockFunc) (const gchar *source);
+typedef void (*MailProviderFetchUnlockFunc) (const gchar *source);
typedef CamelFolder *
- (*MailProviderFetchInboxFunc) (const char *source,
+ (*MailProviderFetchInboxFunc) (const gchar *source,
GCancellable *cancellable,
GError **error);
@@ -91,7 +91,7 @@ void mail_fetch_mail (CamelStore *store,
gpointer get_data,
CamelFilterStatusFunc *status,
gpointer status_data,
- void (*done)(int still_more, gpointer data),
+ void (*done)(gint still_more, gpointer data),
gpointer data);
void mail_filter_folder (EMailSession *session,