User agent patch
Moritz Mertinkat <[email protected]> Sun, 10 Aug 2008 21:26:21 +0200
| Newsgroups | gmane.comp.gnome.evolution.patches |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. --------------060507050205080203060107 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Hi everybody, I've made a small patch (against SVN trunk rev 35949) to add a meaningful user agent to HTTP requests used for loading remote images from HTML mails. That way it would be possible to get better mail client usage statistics for future Evolution versions. Currently Evolution only sends "User-Agent: CamelHttpStream/1.0" which is the default from the Camel.Stream class. With the patch it is: "User-Agent: CamelHttpStream/1.0 Evolution/xxxx" (where xxxx is the Evolution version). I've kept "CamelHttpStream/1.0" string for backward compatibility. The patch is attached (evolution-useragent.patch). Regards, Moritz Mertinkat --------------060507050205080203060107 Content-Type: text/plain; name="evolution-useragent.patch" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="evolution-useragent.patch" SW5kZXg6IENoYW5nZUxvZw0KPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQ0KLS0tIENoYW5nZUxvZwkocmV2aXNp b24gMzU5NDkpDQorKysgQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpDQpAQCAtMSwzICsxLDkg QEANCisyMDA4LTA4LTEwICBNb3JpdHogTWVydGlua2F0ICA8bW9yaXR6QG1lcnRpbmthdC5u ZXQ+CisKKwkqIGVtLWZvcm1hdC1odG1sLmM6IEFkZGVkIG1lYW5pbmdmdWwgdXNlciBhZ2Vu dCBmb3IgSFRUUCByZXF1ZXN0cworCXVzZWQgdG8gbG9hZCByZW1vdGUgaW1hZ2VzLiBUaGUg b3JpZ2luYWwgcGFydCAoQ2FtZWxIdHRwU3RyZWFtLzEuMCkKKwloYXMgYmVlbiBrZXB0IGZv ciBiYWNrd2FyZCBjb21wYXRpYmlsaXR5LgorCiAyMDA4LTA4LTA3ICBQYXVsIEJvbGxlICA8 cGVib2xsZUB0aXNjYWxpLm5sPgogCiAJKiogRml4IGZvciBidWcgIzU0Njc4OApJbmRleDog ZW0tZm9ybWF0LWh0bWwuYw0KPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQ0KLS0tIGVtLWZvcm1hdC1odG1sLmMJ KHJldmlzaW9uIDM1OTQ5KQ0KKysrIGVtLWZvcm1hdC1odG1sLmMJKHdvcmtpbmcgY29weSkN CkBAIC00OTcsNiArNDk3LDcgQEANCiAJCX0KIAogCQlpbnN0cmVhbSA9IGNhbWVsX2h0dHBf c3RyZWFtX25ldyhDQU1FTF9IVFRQX01FVEhPRF9HRVQsICgoRU1Gb3JtYXQgKilqb2ItPmZv cm1hdCktPnNlc3Npb24sIHVybCk7CisJCWNhbWVsX2h0dHBfc3RyZWFtX3NldF91c2VyX2Fn ZW50KChDYW1lbEh0dHBTdHJlYW0gKilpbnN0cmVhbSwgIkNhbWVsSHR0cFN0cmVhbS8xLjAg RXZvbHV0aW9uLyIgVkVSU0lPTik7CiAJCXByb3h5ID0gZW1fdXRpbHNfZ2V0X3Byb3h5X3Vy aSgpOwogCQljYW1lbF9odHRwX3N0cmVhbV9zZXRfcHJveHkoKENhbWVsSHR0cFN0cmVhbSAq KWluc3RyZWFtLCBwcm94eSk7CiAJCWdfZnJlZShwcm94eSk7Cg== --------------060507050205080203060107 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Evolution-patches mailing list [email protected] http://mail.gnome.org/mailman/listinfo/evolution-patches --------------060507050205080203060107--