evolution r35974 - trunk/mail



Author: msuman
Date: Wed Aug 13 04:17:35 2008
New Revision: 35974
URL: http://svn.gnome.org/viewvc/evolution?rev=35974&view=rev

Log:
Patch from Moritz Mertinkat  <moritz mertinkat net> (Added meaningful user agent for HTTP requests used to load remote images).

Modified:
   trunk/mail/ChangeLog
   trunk/mail/em-format-html.c

Modified: trunk/mail/em-format-html.c
==============================================================================
--- trunk/mail/em-format-html.c	(original)
+++ trunk/mail/em-format-html.c	Wed Aug 13 04:17:35 2008
@@ -497,6 +497,7 @@
 		}
 
 		instream = camel_http_stream_new(CAMEL_HTTP_METHOD_GET, ((EMFormat *)job->format)->session, url);
+		camel_http_stream_set_user_agent((CamelHttpStream *)instream, "CamelHttpStream/1.0 Evolution/" VERSION);
 		proxy = em_utils_get_proxy_uri();
 		camel_http_stream_set_proxy((CamelHttpStream *)instream, proxy);
 		g_free(proxy);



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