evolution-data-server r9902 - branches/gnome-2-24/camel/providers/local
- From: sragavan svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-data-server r9902 - branches/gnome-2-24/camel/providers/local
- Date: Mon, 12 Jan 2009 03:23:06 +0000 (UTC)
Author: sragavan
Date: Mon Jan 12 03:23:06 2009
New Revision: 9902
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=9902&view=rev
Log:
2009-01-12 Srinivasa Ragavan <sragavan novell com>
* camel-mbox-folder.c: (mbox_get_message): Fix for proper flag
syncing. Just send the XEV along with message always.
Modified:
branches/gnome-2-24/camel/providers/local/ChangeLog
branches/gnome-2-24/camel/providers/local/camel-mbox-folder.c
Modified: branches/gnome-2-24/camel/providers/local/camel-mbox-folder.c
==============================================================================
--- branches/gnome-2-24/camel/providers/local/camel-mbox-folder.c (original)
+++ branches/gnome-2-24/camel/providers/local/camel-mbox-folder.c Mon Jan 12 03:23:06 2009
@@ -321,10 +321,13 @@
CamelLocalFolder *lf = (CamelLocalFolder *)folder;
CamelMimeMessage *message = NULL;
CamelMboxMessageInfo *info;
+ CamelMessageInfoBase *mi = (CamelMessageInfoBase *)info;
+ char *xev;
CamelMimeParser *parser = NULL;
int fd, retval;
int retried = FALSE;
off_t frompos;
+ guint32 flags;
d(printf("Getting message %s\n", uid));
@@ -424,6 +427,14 @@
camel_object_trigger_event((CamelObject *)folder, "folder_changed", lf->changes);
camel_folder_change_info_clear(lf->changes);
}
-
+
+ /* Give out messages always with XEV. */
+ flags = mi->flags;
+ mi->flags &= ~(CAMEL_MESSAGE_FOLDER_NOXEV|CAMEL_MESSAGE_FOLDER_FLAGGED);
+ xev = camel_local_summary_encode_x_evolution(folder->summary, mi);
+ camel_medium_set_header((CamelMedium *)message, "X-Evolution", xev);
+ g_free(xev);
+ mi->flags = flags;
+
return message;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]