<div class="markdown">
<p dir="auto">On 27 Jan 2016, at 20:56, Vlad Ghitulescu wrote:</p>

<blockquote>
<blockquote>
<p dir="auto">./defaultmailer -set mailmate</p>
</blockquote>

<p dir="auto">Any idea?</p>
</blockquote>

<p dir="auto">Just try repeating the above:</p>

<pre><code>./defaultmailer -set mailmate
<wait a bit>
./defaultmailer
</code></pre>

<p dir="auto">If it returns to <code>mail</code> then try again repeatedly. When I experimented it usually worked after a few rounds. Probably some kind of race condition.</p>

<p dir="auto">The only other likely fix is to clear Launch Services, but this has side effects (clearing all of your custom file and app bindings).</p>

<pre><code>/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
</code></pre>

<p dir="auto">Alternatively, it might be possible to edit (or delete) this file (and then reboot):</p>

<pre><code>~/Library/Preferences/com.apple.LaunchServices/com.apple.launchservices.secure.plist 
</code></pre>

<p dir="auto">But I haven't really thoroughly tested any of this. Use at your own risk!!</p>

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

</div>