<!--
	Nonfunctional domains:

		- afisha.mail.ru	(timeout)
		- blogs.mail.ru
		- internet.mail.ru	(timeout)
		- limg.imgsmail.ru	(cert: *.mail.ru; 403)
		- r2.mail.ru
		- d4.c8.b0.a2.top.mail.ru
		- (www.)mail.ru


	Problematic domains:

		- top.list.ru *
		- \w\d.\w\d.\w\d.\w\d.top.mail.ru *

	* Mismatched, CN: *.mail.ru


	Fully covered domains:

		- top.list.ru				(→ top-fwz1.mail.ru)
		- \w\d.\w\d.\w\d.\w\d.top.mail.ru	(→ top-fwz1.mail.ru)
		- top-fwz1.mail.ru

-->
<ruleset name="Mail.ru (partial)">

	<target host="*.mail.ru" />
		<!--	afisha & internet time out.	-->
		<exclusion pattern="^http://(afisha|blogs|internet|www)\." />
	<target host="cdn.connect.mail.ru" />
	<target host="avt.foto.mail.ru" />
	<target host="m.news.mail.ru" />
	<target host="*.tv.mail.ru" />
	<target host="*.imgsmail.ru" />


  <!-- Disable securecokie for this?
  https://mail1.eff.org/pipermail/https-everywhere-rules/2012-December/001422.html
  -->
	<!-- <securecookie host="^\.mail\.ru$" name=".*" /> -->
	<!--	Are .tv.mail.ru cookies used on unsecurable pages?	-->


	<!--	Tracking cookies:
					-->
	<securecookie host="^\.mail\.ru$" name="^(?:FT|V)ID$" />


	<!--	cert doesn't match img.tv
		ditto my.tv.  my.tv appears identical to tv	-->
	<rule from="^http://(?:(ad|corp|avt\.foto|r3?|sales|showbiz|status)|(img)(?:\.tv)?|(?:my\.)?(tv))\.mail\.ru/"
		to="https://$1$2$3.mail.ru/" />

	<!--	Cert only matches *.mail.ru	-->
	<rule from="^http://(?:cdn\.)?connect\.mail\.ru/"
		to="https://connect.mail.ru/" />

	<rule from="^http://lady\.mail\.ru/([^/])\.css"
		to="https://lady.mail.ru/$1.css" />

	<rule from="^http://news\.mail\.ru/(_css/|favicon\.ico$|img/|pic/|prev\d{1,6}/)"
		to="https://news.mail.ru/$1" />

	<!--	cert doesn't match m.news	-->
	<rule from="^http://m\.news\.mail\.ru/(_css/|favicon\.ico$|img/)"
		to="https://news.mail.ru/$1" />

	<rule from="^http://r[23s]\.mail\.ru/"
		to="https://rs.mail.ru/" />

	<rule from="^http://(?:top\.list|(?:\w\d\.){4}top\.mail|top-fwz1\.mail)\.ru/"
		to="https://top-fwz1.mail.ru/" />

	<rule from="^http://go\.imgsmail\.ru/"
		to="https://go.imgsmail.ru/" />

	<!--	also on img.mail.ru	-->
	<rule from="^http://l?img\.imgsmail\.ru/"
		to="https://img.imgsmail.ru/" />

</ruleset>
