<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Manitou-Mail Blog &#187; User Interface</title>
	<atom:link href="http://www.manitou-mail.org/blog/category/user-interface/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.manitou-mail.org/blog</link>
	<description>on the use and development of the Manitou-Mail program</description>
	<lastBuildDate>Mon, 23 Aug 2010 19:50:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Face header support</title>
		<link>http://www.manitou-mail.org/blog/2009/10/face-header-support/</link>
		<comments>http://www.manitou-mail.org/blog/2009/10/face-header-support/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 01:26:53 +0000</pubDate>
		<dc:creator>daniel</dc:creator>
				<category><![CDATA[New features]]></category>
		<category><![CDATA[Usage]]></category>
		<category><![CDATA[User Interface]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.manitou-mail.org/blog/?p=93</guid>
		<description><![CDATA[<p>While the X-Face header (48&#215;48 BW picture) has been supported for a long time in the Manitou-Mail user interface, the Face header (48&#215;48 color PNG) was not until yesterday.
Now it is, and while testing the code, I&#8217;ve found that it was another case where an SQL query quickly solved a practical selection problem. The Face [...]]]></description>
			<content:encoded><![CDATA[<p>While the <a href="http://en.wikipedia.org/wiki/X-Face">X-Face header</a> (48&#215;48 BW picture) has been supported for a long time in the Manitou-Mail user interface, the <a href="http://quimby.gnus.org/circus/face/">Face header</a> (48&#215;48 color PNG) was not until yesterday.<br />
Now it is, and while testing the code, I&#8217;ve found that it was another case where an SQL query quickly solved a practical selection problem. The Face header is indeed not so widely used, so getting a significant sample of different pictures to show is not obvious. Ideally I wanted to extract from my mail archive a gallery of pictures that would be all different. That is, if someone had posted 1000 messages with the same Face header, I wasn&#8217;t interested in getting all those messages, only one of them, let&#8217;s say the first by it&#8217;s ID, and I wanted the next mail in the list to be with a different, non-empty Face, and so on for every message that I wanted to look at. It turns out, that in SQL, it can be expressed with:</p>
<p><code>SELECT min(mail_id)<br />
 FROM header<br />
WHERE position(E'\nFace: ' in lines)&gt;0<br />
GROUP BY<br />
 split_part(substr(lines, position(E'\nFace: ' in lines)+7, 1300), E'\n', 1)<br />
</code><br />
position(&#8230;) let us know where the Face header field begins, substr(&#8230;) extracts a sufficient length of it, and split_part(&#8230;) cuts exactly the value at the first newline which marks the end of this header&#8217;s value (they&#8217;re unfolded in the header table precisely to be able to perform that kind of extraction).<br />
Finally the GROUP BY ensures that each row in the result represents a distinct value of the Face header.</p>
<p>This query can be directly input into the SQL statement field of the Query Selection dialog, after which all there is to do is wait for the database engine to run it to completion.</p>
<p>On my sample database of about 800,000 messages from various mailing lists, it turned out that the result was a list of 176 messages. Here is a collage of a selection of the pictures (public messages only).<br />
<img src="http://www.manitou-mail.org/blog/wp-content/uploads/2009/10/face-gallery.png" alt="face-gallery" width="426" height="733" class="aligncenter size-full wp-image-94" /><br />
Here is how one particular message looks with its Face header:<br />
<img src="http://www.manitou-mail.org/blog/wp-content/uploads/2009/10/face-sample-msg.png" alt="face-sample-msg" width="479" height="164" class="aligncenter size-full wp-image-101" /><br />
Right now this is just about displaying, sometime in the future I&#8217;ll try to add Face headers to outgoing mail, and also I&#8217;d like to associate pictures to sender addresses so that messages from people who don&#8217;t use a Face header (the majority) still can be shown with a dedicated picture. I feel like even tags or sender domains (which means companies and organizations), could benefit from that kind of visual representation in certain cases.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.manitou-mail.org/blog/2009/10/face-header-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Repackaged windows client available</title>
		<link>http://www.manitou-mail.org/blog/2009/10/repackaged-windows-client-available/</link>
		<comments>http://www.manitou-mail.org/blog/2009/10/repackaged-windows-client-available/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 12:11:18 +0000</pubDate>
		<dc:creator>daniel</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[User Interface]]></category>

		<guid isPermaLink="false">http://www.manitou-mail.org/blog/?p=88</guid>
		<description><![CDATA[<p>Since HTML viewing has been integrated, I&#8217;ve had reports that under Windows, the images in messages weren&#8217;t always displayed, but my attempts at reproducing the problem were unsuccessful.
I&#8217;ve recently understood that it was a packaging issue: on machines that don&#8217;t have Qt installed, image plugins must be distributed with the application (except for PNG that [...]]]></description>
			<content:encoded><![CDATA[<p>Since HTML viewing has been integrated, I&#8217;ve had reports that under Windows, the images in messages weren&#8217;t always displayed, but my attempts at reproducing the problem were unsuccessful.<br />
I&#8217;ve recently understood that it was a packaging issue: on machines that don&#8217;t have Qt installed, image plugins must be distributed with the application (except for PNG that is supported as built-in).</p>
<p>So I&#8217;ve repackaged Manitou-Mail 0.9.12 for Windows with the necessary plugins that get installed into an imageformats directory, and re-uploaded the installer:<br />
<a href="http://www.manitou-mail.org/Manitou-Installer-0_9_12.exe">Manitou-Installer-0_9_12.exe</a></p>
<p>For users who were concerned by this problem, I suggest they reinstall and report if it still doesn&#8217;t work.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.manitou-mail.org/blog/2009/10/repackaged-windows-client-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
