display message size

2000-03-21  bertrand  <bertrand@helixcode.com>

	* message-list.c (ml_value_at): display message size

2000-03-21  bertrand  <bertrand@helixcode.com>

	* providers/mbox/camel-mbox-summary.c
	(camel_mbox_summary_append_internal_to_external): copy the size field

	* providers/mbox/camel-mbox-folder.c (_get_message_by_uid): initialize
	message_info to NULL

	* camel-folder-summary.h: added the size field.

	* providers/mbox/camel-mbox-summary.h:
	added the received_date field.

svn path=/trunk/; revision=2133
This commit is contained in:
bertrand
2000-03-21 15:28:36 +00:00
committed by Bertrand Guiheneuf
parent 35e6f51eee
commit d433fb48d2
8 changed files with 31 additions and 6 deletions

View File

@ -1,5 +1,16 @@
2000-03-21 bertrand <bertrand@helixcode.com>
* providers/mbox/camel-mbox-summary.c
(camel_mbox_summary_append_internal_to_external): copy the size field
* providers/mbox/camel-mbox-folder.c (_get_message_by_uid): initialize
message_info to NULL
* camel-folder-summary.h: added the size field.
* providers/mbox/camel-mbox-summary.h:
added the received_date field.
* providers/mbox/camel-mbox-summary.c:
documented all functions.

View File

@ -69,6 +69,7 @@ typedef struct {
gchar *sent_date;
gchar *received_date;
guint32 size;
gchar *uid;
GHashTable *extended_fields;

View File

@ -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;

View File

@ -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);

View File

@ -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 */

View File

@ -1,3 +1,7 @@
2000-03-21 bertrand <bertrand@helixcode.com>
* message-list.c (ml_value_at): display message size
2000-03-20 Christopher James Lahey <clahey@helixcode.com>
* message-list.c: Properly ref & sink the table and header models.

View File

@ -1,4 +1,4 @@
bin_PROGRAMS = evolution-mail test-mail
bin_PROGRAMS = evolution-mail test-mail test-sources
providerdir = $(libdir)/evolution/camel-providers/$(VERSION)
@ -59,6 +59,13 @@ test_mail_SOURCES = \
test_mail_LDADD = \
$(BONOBO_HTML_GNOME_LIBS)
test_sources_SOURCES = \
mail-sources.c
test_sources_LDADD = \
$(BONOBO_HTML_GNOME_LIBS)
gnorbadir = $(sysconfdir)/CORBA/servers
gnorba_DATA = evolution-mail.gnorba

View File

@ -191,7 +191,7 @@ ml_value_at (ETableModel *etm, int col, int row, void *data)
return "dudes@server";
case COL_SIZE:
sprintf (buffer, "%d", 20);
sprintf (buffer, "%d", msg_info.size);
return buffer;
default: