[evolution-patches] [IMAP][Mailer] Headers Fetching



Hi,

As per a discussion with Fejj, I came to know that Evo will work faster
for IMAP accounts if we get only a minimalistic subset of HEADER fields
instead of getting full HEADERS. The attached patch does that.  Things
seem to be working faster because of this. This could be further
improved if we find out someway of restricting the mailing-list headers
too.

Sankar


Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/camel/providers/imap/ChangeLog,v
retrieving revision 1.49
diff -u -p -r1.49 ChangeLog
--- ChangeLog	16 Jan 2006 20:55:26 -0000	1.49
+++ ChangeLog	19 Apr 2006 06:54:10 -0000
@@ -1,3 +1,10 @@
+2006-04-19  Sankar P  <psankar novell com>
+
+	* camel-imap-folder.c : (imap_update_summary):
+	Instead of downloading HEADERS try to download 
+	the specific HEADER FIELDS so that the initial
+	loading time is considerably reduced.
+		
 2006-01-17  Parthasarathi Susarla <sparthasarathi novell com>
 	
 	** See Bug #323106, #326385
Index: camel-imap-folder.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/camel/providers/imap/camel-imap-folder.c,v
retrieving revision 1.358
diff -u -p -r1.358 camel-imap-folder.c
--- camel-imap-folder.c	10 Jan 2006 07:56:47 -0000	1.358
+++ camel-imap-folder.c	19 Apr 2006 06:54:13 -0000
@@ -2348,10 +2348,10 @@ imap_update_summary (CamelFolder *folder
 	
 	CAMEL_SERVICE_ASSERT_LOCKED (store, connect_lock);
 	if (store->server_level >= IMAP_LEVEL_IMAP4REV1)
-		header_spec = "HEADER";
+		header_spec = "HEADER.FIELDS [DATE FROM TO CC SUBJECT REFERENCES IN-REPLY-TO MESSAGE-ID MIME-VERSION CONTENT-TYPE X-MAILING-LIST X-LOOP LIST-ID LIST-POST MAILING-LIST ORIGINATOR X-LIST SENDER RETURN-PATH X-BEENTHERE ]";
 	else
 		header_spec = "0";
-	
+
 	/* Figure out if any of the new messages are already cached (which
 	 * may be the case if we're re-syncing after disconnected operation).
 	 * If so, get their UIDs, FLAGS, and SIZEs. If not, get all that


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]