<?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>MailMate</title>
	<atom:link href="http://blog.freron.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.freron.com</link>
	<description>Email for power users</description>
	<lastBuildDate>Wed, 10 Apr 2013 12:58:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Re: The Complexity of a Simple Prefix</title>
		<link>http://blog.freron.com/2013/re-the-complexity-of-a-simple-prefix/</link>
		<comments>http://blog.freron.com/2013/re-the-complexity-of-a-simple-prefix/#comments</comments>
		<pubDate>Wed, 10 Apr 2013 12:58:58 +0000</pubDate>
		<dc:creator>Benny Kjær Nielsen</dc:creator>
				<category><![CDATA[Customization]]></category>
		<category><![CDATA[Implementation]]></category>

		<guid isPermaLink="false">http://blog.freron.com/?p=392</guid>
		<description><![CDATA[The main subject of this blog post is the “Re:” prefix used in the “Subject:” header line of most email replies, but the implicit subject is how MailMate handles the huge gap between theory and practice when dealing with many email headers. The story of the “Re:” prefix is in many ways a typical email [...]]]></description>
			<content:encoded><![CDATA[<p>The main subject of this blog post is the “Re:” prefix used in the “Subject:” header line of most email replies, but the implicit subject is how MailMate handles the huge gap between theory and practice when dealing with many email headers. The story of the “Re:” prefix is in many ways a typical email header story. What may seem like a simple problem quickly becomes very complicated when 40 years of email history has made its mark. <a href="http://en.wikipedia.org/wiki/The_Devil_is_in_the_details">The Devil is in the details.</a></p>

<h3>History</h3>

<p>The first attempt to standardize email headers can be seen in <a href="https://tools.ietf.org/html/rfc561">RFC 561</a>. This is September 1973, the document is 2 pages long, and not surprisingly it does not mention the “Re:” prefix. Note that this does not mean that the “Re:” prefix was not in use at the time. Many RFCs have been written after the fact and simply document what is already the prevailing behavior of implementations. This is emphasized by the first use of “Re:” in an <a href="http://tools.ietf.org/html/rfc724">RFC</a> in 1977 where it is only present as part of an example of an email reply. This example lives on in <a href="http://tools.ietf.org/html/rfc733">RFC 733</a> (1977) and the classic <a href="http://tools.ietf.org/html/rfc822#appendix-A.3.3">RFC 822</a> (1982). It takes almost 20 years before RFC 822 is updated, but for the first time the “Re:” prefix is explicitly described in <a href="http://tools.ietf.org/html/rfc2822#section-3.6.5">RFC 2822</a>:</p>

<blockquote>
  <p>When used in a reply, the field body MAY start with the string &#8220;Re: &#8221; (from the Latin &#8220;res&#8221;, in the matter of) followed by the contents of the &#8220;Subject:&#8221; field body of the original message.</p>
</blockquote>

<p>It even includes an explanation of what “Re:” means although I&#8217;m with <a href="http://english.stackexchange.com/questions/2517/regarding-re-what-is-the-correct-usage-in-an-email-subject-line#answer-2524">this guy</a> on that one, but the Latin interpretation serves a purpose as we&#8217;ll see further below. For the sake of completion, the meaning of “Re:” was changed (corrected?) to be from the Latin “in re” in <a href="http://tools.ietf.org/html/rfc5322#section-3.6.5">RFC 5322</a>.</p>

<p>Ok, that was a nice bit of history and it actually started before I was born which means I don&#8217;t have to feel so old today. A similar history exists for many other of the standard email headers, but in the special case of the “Re:” prefix you might ask: Why standardize it at all? I hope that is going to be evident at the end of this blog post.</p>

<h3>Theory</h3>

<p>Originally, the “Re:” prefix served the simple purpose of making it easy to see when a message was a reply to another message. The use of it might even pre-date the introduction of the “In-Reply-To” header which could be seen as an alternative solution. In retrospect, it should have been standardized with the following rules:</p>

<ul>
<li>Add “Re:” to the subject of replies and replies only.</li>
<li>Do not add another prefix when replying to a reply.</li>
</ul>

<p>As we&#8217;ll see further below then the following clarification would also have been nice: Do <em>not</em> use any localized variants of “Re:”.</p>

<h3>Practice</h3>

<p>It might not have helped if the reply prefix had been standardized, but the lack of standardization certainly did not help. Variations of the prefix were invented and they resulted in various problems. I&#8217;ll describe 3 prefix related problems below.</p>

<p>The first problem is how to handle a reply to a reply. The naive solution is to just add another “Re:” prefix, but this is ugly and it can quickly increase the length of a subject line. A better solution is to only add the prefix if one does not already exist. Some email clients decided to do better than that and they introduced a counter in the prefix:</p>

<pre><code>Re[4]: This correspondence now involves 4 messages.
</code></pre>

<p>That is not a bad idea, but since not all email clients supported it then a reply would often look like this:</p>

<pre><code>Re: Re[4]: This correspondence now involves 4+1 messages.
</code></pre>

<p>The “smart” email client might be able to merge the prefixes when replying and therefore the above could be an acceptable side effect until all email clients supported the counters, but this now seems unlikely to ever happen. It does not help that this has never been standardized.</p>

<p>The second problem is localization. Some email clients (none mentioned none forgotten) insert a localized prefix instead of “Re:”, for example, in Danish this could be “Sv:” as an abbreviation of “Svar” (Reply). The result is predictable:</p>

<pre><code>Re: Sv: Re: Sv: I don't think we are using the same email clients...
</code></pre>

<p>This is probably why it was decided that “Re:” is a Latin abbreviation.</p>

<p>The third problem is mailing list subject prefixes, for example, the MailMate mailing list prefixes subject lines with “[MlMt]” (I&#8217;ll use “blob” to refer to it as done in <a href="http://tools.ietf.org/html/rfc5256">RFC 5256</a>). This can confuse both email clients and mailing list software, in particular, if combined with the other problems described. The result could be a subject line like this:</p>

<pre><code>Re: Sv: Re: [MlMt] Re: This is starting to get silly...
</code></pre>

<p>Things get even more complicated when also considering forwarding related prefixes and other semi-standard conventions. Now, the question is, what can MailMate do about this?</p>

<h3>The heuristic solution</h3>

<p>No perfect solution exists for this problem. The following is an excerpt from <a href="http://tools.ietf.org/html/rfc5256#section-7">RFC 5256</a> where the suggested solution is to simply ignore most of the variations described:</p>

<blockquote>
  <p>Translations of the &#8220;re&#8221; or &#8220;fw&#8221;/&#8221;fwd&#8221; tokens are not specified for removal in the base subject extraction process.  An attempt to add such translated tokens would result in a geometrically complex, and ultimately unimplementable, task.</p>
</blockquote>

<p>I agree with the sentiment of this, but MailMate tries to be a little bit more pragmatic. The heuristic solution in MailMate is simple: A <em>regular expression</em> is used to identify the prefix of a subject line. This regular expression and many others can be found in the <code>specifiers.plist</code> file within the MailMate application bundle. The essence of the regular expression is as follows:</p>

<pre><code>((?:\s*\p{Alpha}{2,3}(?:\[\d+\])?[:：])+)
</code></pre>

<p>This is geek language for a (possibly repeated) sequence of two or three Unicode letters followed by an optional counter and a mandatory colon. The colon can actually be one of two kinds of colon. The usual one and a so-called full-width colon. The latter is used in the Chinese prefix “回信：” and possibly by other languages as well.</p>

<h3>Why MailMate needs to know the prefix</h3>

<p>MailMate is quite liberal with respect to what it identifies as a prefix. It is therefore also important that the prefix is handled with care. As we&#8217;ll see below it is mostly used for improving the display and sorting of subject lines. An exception is the generation of a subject line for a reply for which MailMate tries to never add more than a single “Re:”. This strategy adheres to <a href="http://en.wikipedia.org/wiki/Robustness_Principle">Postel&#8217;s law</a>: “Be liberal in what you accept, and conservative in what you send”.</p>

<p>The identification of the prefix, the blob, and the body of a subject line is used for the following purposes in MailMate:</p>

<ul>
<li>Display all subject lines with the same order of elements and without extraneous whitespace between these elements. The blob and, in particular, the order of the prefix and the blob is not standardized and therefore varies a lot.</li>
<li>Proper sorting of messages by subject.</li>
<li>Only compare the body of a subject when trying to determine whether or not the subject has changed between a message and its reply (MailMate warns about such a change before sending a reply).</li>
<li>Only prefix a subject line with a single “Re:” when generating a reply.</li>
<li>Allow searches for messages with a particular subject blob or subject body.</li>
</ul>

<p>The behavior of MailMate is far from perfect, but the solution to this and similar header parsing problems is very general and flexible. For example, the sorting of the messages outline by subject is handled by defining the following <code>sortKey</code> for the subject column of the messages outline (<code>outlineColumns.plist</code>):</p>

<pre><code>sortKey = "subject.blob,subject.body,subject.prefix";
</code></pre>

<p>And the display of the subject line in the messages outline is handled by the following <a href="http://manual.mailmate-app.com/format_string_syntax">format string</a> (<code>outlineColumns.plist</code>):</p>

<pre><code>formatString = "${subject.prefix:+${subject.prefix} }${subject.blob:+[${subject.blob}] }${subject.body}";
</code></pre>

<p>If you don&#8217;t like that (and you feel adventurous) then you can create your own columns or override the existing ones using <a href="http://manual.mailmate-app.com/customization">low-level customizations</a>.</p>

<p>This post became much longer than I anticipated and it didn&#8217;t even cover all the details. Now, please don&#8217;t get me started on the intricacies of the address related email headers&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.freron.com/2013/re-the-complexity-of-a-simple-prefix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MailMate 1.5.4 Released</title>
		<link>http://blog.freron.com/2013/mailmate-1-5-4-released/</link>
		<comments>http://blog.freron.com/2013/mailmate-1-5-4-released/#comments</comments>
		<pubDate>Tue, 09 Apr 2013 13:47:56 +0000</pubDate>
		<dc:creator>Benny Kjær Nielsen</dc:creator>
				<category><![CDATA[Release Notes]]></category>

		<guid isPermaLink="false">http://blog.freron.com/?p=386</guid>
		<description><![CDATA[A few new features, various behavioral tweaks, and numerous bug fixes. Detailed release notes can be seen here. The highlights are:


Supports inline images in Markdown mode. Markup for referencing an attached image is inserted when adding an image to the textview (dragging or pasting).
Opens links in the composer when hitting the enter key.
Now derives a [...]]]></description>
			<content:encoded><![CDATA[<p>A few new features, various behavioral tweaks, and numerous bug fixes. Detailed release notes can be seen <a href="http://updates.mailmate-app.com/release_notes">here</a>. The highlights are:</p>

<ul>
<li>Supports inline images in Markdown mode. Markup for referencing an attached image is inserted when adding an image to the textview (dragging or pasting).</li>
<li>Opens links in the composer when hitting the enter key.</li>
<li>Now derives a name from other headers if a <code>Reply-To</code> header does not include the name of the recipient.</li>
<li>Added “Reply List” menu item (⌥⌘R).</li>
<li>Added hidden preference (<a href="http://manual.mailmate-app.com/hidden_preferences#navigation"><code>MmMessagesOutlineMoveStrategy</code></a>) to control how the message selection changes when moving messages out of the currently selected mailbox.</li>
<li>Handles (removes) <code>Re:</code>-prefixes in Chinese and other languages when generating the subject line for a reply.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.freron.com/2013/mailmate-1-5-4-released/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>MailMate 1.5.3 Released</title>
		<link>http://blog.freron.com/2013/mailmate-1-5-3-released/</link>
		<comments>http://blog.freron.com/2013/mailmate-1-5-3-released/#comments</comments>
		<pubDate>Sun, 17 Mar 2013 11:16:22 +0000</pubDate>
		<dc:creator>Benny Kjær Nielsen</dc:creator>
				<category><![CDATA[Release Notes]]></category>

		<guid isPermaLink="false">http://blog.freron.com/?p=382</guid>
		<description><![CDATA[This is primarily a bug fix release. The only new feature is a hidden preference to customize the “On &#8230; John Appleseed wrote:” string inserted for replies. Detailed release notes are available here.

Mac OS X Snow Leopard is supported, but you should still expect version 1.6 to require Mac OS X Lion.
]]></description>
			<content:encoded><![CDATA[<p>This is primarily a bug fix release. The only new feature is a hidden preference to customize the “On &#8230; John Appleseed wrote:” string inserted for replies. Detailed release notes are available <a href="http://updates.mailmate-app.com/release_notes">here</a>.</p>

<p>Mac OS X Snow Leopard is supported, but you should still expect version 1.6 to require Mac OS X Lion.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.freron.com/2013/mailmate-1-5-3-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MailMate 1.5.2 Released</title>
		<link>http://blog.freron.com/2013/mailmate-1-5-2-released/</link>
		<comments>http://blog.freron.com/2013/mailmate-1-5-2-released/#comments</comments>
		<pubDate>Tue, 22 Jan 2013 12:36:03 +0000</pubDate>
		<dc:creator>Benny Kjær Nielsen</dc:creator>
				<category><![CDATA[Release Notes]]></category>

		<guid isPermaLink="false">http://blog.freron.com/?p=374</guid>
		<description><![CDATA[The minor bump of the version number hides the fact that a number of small features have been added to MailMate in the passing month (see the list below). This release supports Mac OS X Snow Leopard, but, as previously noted, you should expect version 1.6 to require Mac OS X Lion.

Here are the most [...]]]></description>
			<content:encoded><![CDATA[<p>The minor bump of the version number hides the fact that a number of small features have been added to MailMate in the passing month (see the list below). This release supports Mac OS X Snow Leopard, but, as previously noted, you should expect version 1.6 to require Mac OS X Lion.</p>

<p>Here are the most interesting changes since version 1.5.1:</p>

<ul>
<li>New “Synchronization Schedule” submenu for the Mailbox menu to configure how often individual mailboxes are synchronized.</li>
<li>“Send and Archive”, “Reply All”, and “Flag” are now available as optional toolbar buttons.</li>
<li>Inlined images are now rotated according to EXIF data in images (Mountain Lion only).</li>
<li>Added “Reply to &#8230;” to the context sensitive menu of addresses in the headers view.</li>
<li>Now respects the first/last name ordering of individual contacts in the “Address Book” (“Contacts” on Mountain Lion).</li>
<li>Automatic handling of <code>winmail.dat</code> (TNEF) files. This is an experimental feature for expert users. Feedback is welcome.</li>
<li>Low level feature can be used to add custom email headers to outgoing messages.</li>
<li>Improved handling of OpenPGP and S/MIME. Now MailMate properly handles signed/encryped body parts in <code>multipart/mixed</code> MIME messages.</li>
<li>Various IMAP fixes/workarounds including a number of fixes to handle &#8216;<code>\</code>&#8216; and &#8216;<code>"</code>&#8216; correctly.</li>
<li>SMTP code now correctly handles lines prefixed with one or more dots.</li>
<li>And more&#8230;</li>
</ul>

<p>Detailed release notes can be seen <a href="http://updates.mailmate-app.com/release_notes">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.freron.com/2013/mailmate-1-5-2-released/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>MailMate Reviewed by Macworld</title>
		<link>http://blog.freron.com/2012/mailmate-reviewed-by-macworld/</link>
		<comments>http://blog.freron.com/2012/mailmate-reviewed-by-macworld/#comments</comments>
		<pubDate>Thu, 20 Dec 2012 15:49:32 +0000</pubDate>
		<dc:creator>Benny Kjær Nielsen</dc:creator>
				<category><![CDATA[In the Press]]></category>

		<guid isPermaLink="false">http://blog.freron.com/?p=370</guid>
		<description><![CDATA[The Macworld site has posted a really good review of MailMate by Nathan Alderman awarding it 4 out of 5 mice. I couldn&#8217;t have written it much better myself. For comparison, Thunderbird got 3.5 of 5 mice and Apple Mail got 4.5 of 5 mice, but take into account that the “cons” of MailMate were [...]]]></description>
			<content:encoded><![CDATA[<p>The Macworld site has posted a really <a href="http://www.macworld.com/article/2020211/review-mailmate-1-5-is-no-frills-all-business-when-it-comes-to-email.html">good review of MailMate</a> by Nathan Alderman awarding it 4 out of 5 mice. I couldn&#8217;t have written it much better myself. For comparison, <a href="http://www.macworld.com/article/2012871/review-thunderbird-mail-client-offers-freedom-flexibility-and-drawbacks.html">Thunderbird</a> got 3.5 of 5 mice and <a href="http://www.macworld.com/article/2011636/review-apple-mail-6-features-better-search-vip-email-treatment.html">Apple Mail</a> got 4.5 of 5 mice, but take into account that the “cons” of MailMate were “no POP or Exchange support” and “designed for power users”.</p>

<p>The review on the subject of searching/smart mailboxes:</p>

<blockquote>
  <p>As email search abilities go, this seems less like bringing a gun to a knife fight, and more like thundering into that particular duel at the controls of a helicopter gunship.</p>
</blockquote>

<p>As any software developer I most often receive feedback from users with problems, so this was nice to read:</p>

<blockquote>
  <p>Needless to say, the program never crashed, glitched, or gave me any sort of trouble during my tests. MailMate does not know weakness.</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.freron.com/2012/mailmate-reviewed-by-macworld/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MailMate 1.5.1 Released</title>
		<link>http://blog.freron.com/2012/mailmate-1-5-1-released/</link>
		<comments>http://blog.freron.com/2012/mailmate-1-5-1-released/#comments</comments>
		<pubDate>Thu, 13 Dec 2012 14:14:38 +0000</pubDate>
		<dc:creator>Benny Kjær Nielsen</dc:creator>
				<category><![CDATA[Release Notes]]></category>

		<guid isPermaLink="false">http://blog.freron.com/?p=364</guid>
		<description><![CDATA[It&#8217;s a minor bump of the version number, but the latest release of MailMate includes a major new feature: Tags.

The implementation of tags is based on IMAP keywords which means that they are easily and efficiently synchronized with an IMAP server (some servers may have limited support). The user interface is an unobtrusive token based [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s a minor bump of the version number, but the latest release of MailMate includes a major new feature: Tags.</p>

<p>The implementation of tags is based on <a href="http://tools.ietf.org/html/rfc3501#section-2.3.2">IMAP keywords</a> which means that they are easily and efficiently synchronized with an IMAP server (some servers may have limited support). The user interface is an unobtrusive token based text field shown when hitting a simple shortcut. It is very similar to the recipient address fields of the composer including automatic completion of tag names. It is easy to create new tags and a new preferences pane allows you to review and edit existing tags and their IMAP keyword equivalents. Read more about tags in <a href="http://manual.mailmate-app.com/organize#tags">the manual</a>.</p>

<p>Other changes include:</p>

<ul>
<li>When failing to encrypt (OpenPGP) a message to an untrusted recipient then “Trust Once” is now provided as an option (when trying to send).</li>
<li>Untrusted S/MIME certificates are now editable (via the “Show Details” button), that is, the trust settings can be changed within MailMate.</li>
<li>Holding down ⌥ can be used to expunge (delete) selected messages immediately (instead of moving them to the trash mailbox of the IMAP account). An alert is shown which can optionally be suppressed.</li>
<li>Improved line wrapping of headers of outgoing messages (standards compliant behavior).</li>
<li>Various IMAP related fixes and workarounds.</li>
<li>Fixed problem when using <code>mailto:</code> with attachments (only possible via AppleScript).</li>
</ul>

<p>This release also includes a workaround for a problem under 10.7.5 which would make MailMate and the authorization interface to the system keychain hang when changing the trust settings of a server certificate. The problem is an Apple bug related to code signing.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.freron.com/2012/mailmate-1-5-1-released/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>MailMate 1.5 Released</title>
		<link>http://blog.freron.com/2012/mailmate-1-5-released/</link>
		<comments>http://blog.freron.com/2012/mailmate-1-5-released/#comments</comments>
		<pubDate>Fri, 09 Nov 2012 12:11:06 +0000</pubDate>
		<dc:creator>Benny Kjær Nielsen</dc:creator>
				<category><![CDATA[Release Notes]]></category>

		<guid isPermaLink="false">http://blog.freron.com/?p=355</guid>
		<description><![CDATA[It&#8217;s been a while since the latest public update of MailMate was released, but this does not mean that development has slowed down. The main reason for the unusual amount of time between updates is that MailMate has not yet been sandboxed and this is now a requirement for distributing through the Mac App Store. [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a while since the latest public update of MailMate was released, but this does not mean that development has slowed down. The main reason for the unusual amount of time between updates is that MailMate has not yet been <a href="https://developer.apple.com/devcenter/mac/app-sandbox/">sandboxed</a> and this is now a requirement for distributing through the Mac App Store. MailMate is still not sandboxed and a consequence of this release is that MailMate is no longer for sale in the Mac App Store. Don&#8217;t worry, if you have the App Store version of MailMate then you can send an email using the “Help ▸ Send Feedback&#8230;” menu item in MailMate (the App Store version) and I&#8217;ll make sure you&#8217;ll soon receive a regular license key. It is not yet decided when (if ever) MailMate returns to the Mac App Store.</p>

<p>Version 1.5 is likely to be the last major release with support for Mac OS X Snow Leopard (10.6). Expect version 1.6 to require Mac OS X Lion.</p>

<p>As usual detailed <a href="http://updates.mailmate-app.com/release_notes">release notes</a> are available. Here are some of the highlights:</p>

<ul>
<li>Support for S/MIME and OpenPGP.</li>
<li>Updated to use Growl Framework 2.0 for notifications. This means MailMate now supports Mac OS X Notifications on Mountain Lion with or without Growl installed.</li>
<li>Codesigned with a Developer ID certificate from Apple making MailMate work with Gatekeeper (Mountain Lion security feature).</li>
<li>Support for searching LDAP servers when autocompleting names/addresses in the composer. Currently no GUI for this feature. Read more about it in the manual page about <a href="http://manual.mailmate-app.com/hidden_preferences#ldap">“Hidden Preferences”</a>.</li>
<li>Using AppleScript it is now possible to create (and optionally send) messages with attachments.</li>
<li>Numerous IMAP fixes including several workarounds for buggy IMAP servers.</li>
<li>Workaround for a <a href="http://blog.freron.com/2012/recipe-for-trouble-os-x-10-8-2-mailmate-and-spamsieve/">bug in OS X 10.8.2</a> triggered when using <code>AESendMessage</code> to send AppleScript events. This affected users of SpamSieve. Every message sent to SpamSieve would hang and then time out (after 2 minutes) making MailMate seem extremely slow.</li>
<li>HTML body parts in emails are now properly indexed for searching.</li>
<li>Numerous performance optimizations.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.freron.com/2012/mailmate-1-5-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recipe for Trouble: OS X 10.8.2, MailMate, and SpamSieve</title>
		<link>http://blog.freron.com/2012/recipe-for-trouble-os-x-10-8-2-mailmate-and-spamsieve/</link>
		<comments>http://blog.freron.com/2012/recipe-for-trouble-os-x-10-8-2-mailmate-and-spamsieve/#comments</comments>
		<pubDate>Thu, 04 Oct 2012 11:10:53 +0000</pubDate>
		<dc:creator>Benny Kjær Nielsen</dc:creator>
				<category><![CDATA[Bug]]></category>

		<guid isPermaLink="false">http://blog.freron.com/?p=351</guid>
		<description><![CDATA[The Problem

Since Apple released the 10.8.2 update for Mountain Lion I have received several reports about MailMate being slow and unable to detect spam. The problem turns out to be that the AppleScript communication between MailMate and SpamSieve breaks down. Each request sent by MailMate to SpamSieve hangs for 2 minutes before failing with a [...]]]></description>
			<content:encoded><![CDATA[<h3>The Problem</h3>

<p>Since Apple released the 10.8.2 update for Mountain Lion I have received several reports about MailMate being slow and unable to detect spam. The problem turns out to be that the AppleScript communication between MailMate and SpamSieve breaks down. Each request sent by MailMate to SpamSieve hangs for 2 minutes before failing with a timeout error. This happens for every incoming message. See further below for more technical details and a bit of insight into the detective work some times needed in the software development process.</p>

<h3>The Solution</h3>

<p>If you think you have this problem with MailMate/SpamSieve then you should fetch the current test version of MailMate by holding down ⌥ when clicking “Check Now” in the Software Update preferences pane of MailMate (note that, in general, test versions are not always stable versions of MailMate and they may include incomplete features).</p>

<p>If you have a Mac App Store license then you cannot update to a test version. Instead you should <a href="http://freron.com/contact">contact</a> me directly.</p>

<p>You can also temporarily fix the problem by killing a process named <code>appleeventsd</code>. You can find and kill it in the Activity Monitor or you can paste the following in a Terminal window (requires a password):</p>

<pre><code>sudo killall -KILL appleeventsd
</code></pre>

<h3>The Technical Details</h3>

<p>The time line of an investigation of this problem can be seen in this <a href="http://freron.lighthouseapp.com/projects/58672/tickets/286">ticket</a>. In short, Michael Tsai (SpamSieve developer) joined the discussion and we found a workaround involving a different approach to the AppleScript communication between MailMate and SpamSieve. But a much better understanding of the problem and a better workaround came about when Michael was contacted by Brian Webster. You can read about Brian&#8217;s findings <a href="http://brian-webster.tumblr.com/post/32830692042/a-workaround-for-aesendmessage-hanging-on-os-x-10-8-2">here</a>.</p>

<p>This is what is currently “known” about the problem:</p>

<ul>
<li>The problem is related to the OS X 10.8.2 update.</li>
<li>The problem is related to the use of the <code>AESendMessage/AESend</code> functions used with <code>typeApplicationBundleID</code> or <code>typeApplSignature</code> for the target type.</li>
<li>Using <code>typeKernelProcessID</code> for the target type still works (thanks goes to Brian Webster for this crucial fact). This is what is used for the workaround in MailMate.</li>
<li><a href="https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSAppleScript_Class/Reference/Reference.html"><code>NSAppleScript</code></a> and <a href="http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/osascript.1.html"><code>osascript</code></a> are not affected by the problem.</li>
<li>Killing the <code>appleeventsd</code> daemon fixes the problem temporarily (<a href="https://getsatisfaction.com/binaryage/topics/totalfinder_and_archive_utility_not_playing_nice">Antonin Hildebrand</a> discovered this fact).</li>
</ul>

<p>The above indicates that the problem is likely to be some kind of stale cache used by <code>appleeventsd</code> for mapping bundle ids and 4-letter application signatures to process ids. It also indicates that triggering this problem involves relaunching the target application (in order to give it a new process id). This has been confirmed by a user (<a href="http://freron.lighthouseapp.com/projects/58672-mailmate/tickets/286#ticket-286-49">Torsten Grust</a>) in the context of MailMate/SpamSieve.</p>

<p>Thanks to everyone who helped track down this problem. Note that I am still not able to reproduce the problem myself which means that feedback on the solutions above is still appreciated.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.freron.com/2012/recipe-for-trouble-os-x-10-8-2-mailmate-and-spamsieve/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MailMate Reviewed in French Magazine</title>
		<link>http://blog.freron.com/2012/mailmate-reviewed-in-french-magazine/</link>
		<comments>http://blog.freron.com/2012/mailmate-reviewed-in-french-magazine/#comments</comments>
		<pubDate>Tue, 22 May 2012 10:24:34 +0000</pubDate>
		<dc:creator>Benny Kjær Nielsen</dc:creator>
				<category><![CDATA[In the Press]]></category>

		<guid isPermaLink="false">http://blog.freron.com/?p=336</guid>
		<description><![CDATA[MailMate received a 4 out of 5 star rating in the French magazine VVMac (Vous et Votre Mac). The review is part of a large special feature about emailing on OS X and it is, of course, written in French. It is possible to skim an (unreadable) online version of the magazine here (using Flash), [...]]]></description>
			<content:encoded><![CDATA[<p>MailMate received a 4 out of 5 star rating in the French magazine <a href="http://www.vvmac.com/">VVMac</a> (Vous et Votre Mac). The review is part of a large special feature about emailing on OS X and it is, of course, written in French. It is possible to skim an (unreadable) online version of the magazine <a href="http://www.vvmac.com/pages/details.php?id_mag=88">here</a> (using Flash), but I have also been allowed to provide a <a href="http://blog.freron.com/wp-content/uploads/2012/05/016.pdf">readable PDF of the page</a> with the MailMate review. VVMac is one of two printed French magazines on the subject of OS X. It is distributed in France, Belgium and Switzerland.</p>

<p>Speaking of reviews, MailMate has also received a few user reviews in the <a href="macappstore://itunes.apple.com/app/id465891339?mt=12">Mac App Store</a> (in the American and Australian stores). At the time of writing this, they are all positive 5 star reviews except for a single 1 star review. The exception is a good example of why Apple should provide some way to contact unhappy app store buyers (it could work anonymously). I don&#8217;t mind negative reviews, but in this case, a buyer has an “out-of-the-box” problem and I cannot do anything to help. Others have written <a href="http://manytricks.com/blog/?p=1365">wise words</a> on this subject.</p>

<p>You are <strong>very</strong> welcome to provide a review/rating in the Mac App Store, but if you have some specific problem then please write a feedback email first (use the “Help ▸ Send Feedback” menu item). I may not be able to help you, but feedback is never ignored.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.freron.com/2012/mailmate-reviewed-in-french-magazine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disabling Image Blocking for Trusted Senders</title>
		<link>http://blog.freron.com/2012/disabling-image-blocking-for-trusted-senders/</link>
		<comments>http://blog.freron.com/2012/disabling-image-blocking-for-trusted-senders/#comments</comments>
		<pubDate>Sat, 21 Apr 2012 11:54:00 +0000</pubDate>
		<dc:creator>Benny Kjær Nielsen</dc:creator>
				<category><![CDATA[Customization]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://blog.freron.com/?p=329</guid>
		<description><![CDATA[The following question was asked by dmorel on Twitter:


  @mailmateapp Any chance we can permanently tag an email address as &#8216;not junk&#8217; so as not to be forced to click that button every time?


It is a good question and it deserves more than a 140 character answer.

Image blocking

By default, MailMate does not display external [...]]]></description>
			<content:encoded><![CDATA[<p>The following <a href="https://twitter.com/dmorel/status/193603252846206976">question</a> was asked by <a href="https://twitter.com/#!/dmorel">dmorel</a> on Twitter:</p>

<blockquote>
  <p>@mailmateapp Any chance we can permanently tag an email address as &#8216;not junk&#8217; so as not to be forced to click that button every time?</p>
</blockquote>

<p>It is a good question and it deserves more than a 140 character answer.</p>

<h3>Image blocking</h3>

<p>By default, MailMate does not display external images for any messages arriving in the inbox of any account. This is a security feature which ensures that no one can track if or when you read a given message. When viewing a message it is possible to allow loading external images once or allow it permanently by explicitly marking the message as “Not Junk”.</p>

<p>Image blocking can be configured in the Security preferences pane. Most importantly, it is possible to change the set of messages for which image blocking is enabled. This brings in all the power of smart mailboxes to the configuration of image blocking and we can use this to “implement” an answer to the Twitter question above.</p>

<h3>The Answer</h3>

<p>We need to create two smart mailboxes. The first one simply matches all messages marked as “Not Junk”. Base it on “All Messages” and give it the following condition:</p>

<p><img src="http://blog.freron.com/wp-content/uploads/2012/04/not_junk.png" alt="Not Junk mailbox" class="centerframe" /></p>

<p>The other mailbox is more interesting. We&#8217;ll name it “Image blocking” and we&#8217;ll make the smart mailbox above a child of this mailbox. This is not important, but it emphasizes that the two mailboxes are related.</p>

<p><img src="http://blog.freron.com/wp-content/uploads/2012/04/image_blocking_mailboxes.png" alt="Image blocking mailboxes" class="centerframe" /></p>

<p>The “Image blocking” mailbox can be based on any mailbox (the universal Inbox would be a natural choice) and it only needs a single condition:</p>

<p><img src="http://blog.freron.com/wp-content/uploads/2012/04/image_blocking.png" alt="Image blocking mailbox" class="centerframe" /></p>

<p>In other words, this mailbox matches any message for which the sender&#8217;s address does <em>not</em> match any sender&#8217;s address in the set of messages marked as “Not Junk”.</p>

<p>Finally, we need to change the setting in the Security preferences pane to block images for messages in the smart mailbox named “Image blocking”.</p>

<p>The end result is that whenever a message is marked as “Not Junk” then all other messages from the same sender are treated as if they were marked as “Not Junk” as well.</p>

<p>This may all seem a bit complicated and it certainly could be made easier to enable something like the above, but the beauty is in the flexibility. You can make image blocking behave in almost any way you can imagine.</p>

<p>@dmorel: I hope this answers your question.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.freron.com/2012/disabling-image-blocking-for-trusted-senders/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
