aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
diff options
context:
space:
mode:
Diffstat (limited to 'camel/providers')
-rw-r--r--camel/providers/mbox/camel-mbox-folder.c5
-rw-r--r--camel/providers/mbox/camel-mbox-summary.c1
-rw-r--r--camel/providers/mbox/camel-mbox-summary.h4
3 files changed, 6 insertions, 4 deletions
diff --git a/camel/providers/mbox/camel-mbox-folder.c b/camel/providers/mbox/camel-mbox-folder.c
index 34d3a5783a..fdba8279b3 100644
--- a/camel/providers/mbox/camel-mbox-folder.c
+++ b/camel/providers/mbox/camel-mbox-folder.c
@@ -179,7 +179,6 @@ _init (CamelFolder *folder, CamelStore *parent_store,
CamelFolder *parent_folder, const gchar *name, gchar separator,
CamelException *ex)
{
- CamelMboxFolder *mbox_folder = CAMEL_MBOX_FOLDER (folder);
CAMEL_LOG_FULL_DEBUG ("Entering CamelMboxFolder::init_with_store\n");
@@ -463,7 +462,6 @@ _create (CamelFolder *folder, CamelException *ex)
gint mkdir_error;
gboolean folder_already_exists;
int creat_fd;
- mode_t old_umask;
g_assert(folder != NULL);
@@ -647,7 +645,6 @@ _delete_messages (CamelFolder *folder, CamelException *ex)
const gchar *folder_file_path;
gboolean folder_already_exists;
int creat_fd;
- mode_t old_umask;
g_assert(folder!=NULL);
@@ -1014,7 +1011,7 @@ _get_message_by_uid (CamelFolder *folder, const gchar *uid, CamelException *ex)
CamelMboxFolder *mbox_folder = CAMEL_MBOX_FOLDER(folder);
GArray *message_info_array;
- CamelMboxSummaryInformation *message_info;
+ CamelMboxSummaryInformation *message_info = NULL;
guint32 searched_uid;
int i;
gboolean uid_found;
diff --git a/camel/providers/mbox/camel-mbox-summary.c b/camel/providers/mbox/camel-mbox-summary.c
index 403355859a..9216f89e97 100644
--- a/camel/providers/mbox/camel-mbox-summary.c
+++ b/camel/providers/mbox/camel-mbox-summary.c
@@ -361,6 +361,7 @@ camel_mbox_summary_append_internal_to_external (CamelMboxSummary *internal,
external_entry.uid = g_strdup_printf ("%u", internal_entry->uid);
external_entry.sent_date = internal_entry->date ? strdup (internal_entry->date) : NULL;
external_entry.sender = internal_entry->sender ? strdup (internal_entry->sender) : NULL;
+ external_entry.size = internal_entry->size;
g_array_append_vals (external_array, &external_entry, 1);
diff --git a/camel/providers/mbox/camel-mbox-summary.h b/camel/providers/mbox/camel-mbox-summary.h
index af64ff7cf5..4ee4770a03 100644
--- a/camel/providers/mbox/camel-mbox-summary.h
+++ b/camel/providers/mbox/camel-mbox-summary.h
@@ -29,6 +29,8 @@
+/* This contains information about one message inside
+ * the mbox file. This is used in the intenal summary */
typedef struct {
guint32 position;
@@ -40,10 +42,12 @@ typedef struct {
gchar *sender;
gchar *to;
gchar *date;
+ gchar *received_date;
} CamelMboxSummaryInformation;
+/* this contains informations about the whole mbox file */
typedef struct {
guint nb_message; /* number of messages in the summary */