<div class="markdown">
<p dir="auto">On 23 Feb 2016, at 16:26, Zvi Biener wrote:</p>

<blockquote>
<p dir="auto">Is there a script hook (or something like it) that can be used to alphabetize the recipients of a message, after I enter them?</p>
</blockquote>

<p dir="auto">A bit of OCD? :-)</p>

<p dir="auto">There is no such hook, but it might be a somewhat trivial hidden preference to add to sort them if it's something you would like to do with all outgoing emails?</p>

<p dir="auto">Caveat: The sorting criterion would have to be somewhat “naive” since it is far from trivial to extract first/last name. An alternative would be sorting by email address.</p>

<p dir="auto">...</p>

<p dir="auto">Here you go:</p>

<pre><code>defaults write com.freron.MailMate MmSortRecipientHeaders -bool YES
</code></pre>

<p dir="auto">It's <em>not</em> released yet, but you can enable it to be ready. A recipient header is then sorted whenever you finish editing it (usually by tab'ing out of the text field).</p>

<p dir="auto">-- <br>
Benny</p>

</div>