<div class="markdown">
<p>On 21 Mar 2012, at 6:27, Robert Ricci wrote:</p>
<blockquote>
<blockquote>
<p>I can't figure quite out what triggers it but it does seems to have something to do with whether a message from a mailing list is currently selected in the messages pane.</p>
</blockquote>
<p>This has been the case for me as well. I've noticed that it doesn't do this for <em>all</em> mailing lists, just some of them. The common factor appears to be the presence of a 'List-Post' header in the selected message: if I'm displaying a message that has this header when I compose a new message, the value of that header gets pasted into the To: field.</p>
</blockquote>
<p>That is a precise description of the behavior. It is intended as a feature, but obviously this thread shows that this is not how the majority of users see it (currently I'm the only part of the minority). I'll first explain and then I'll show you how to change the behavior.</p>
<p>I have many email aliases and most of them are not explicitly defined in the <a href="http://manual.mailmate-app.com/account_setup">“Email Address(es)”</a> field of the account settings. This works if MailMate can derive the address from the headers of the replied message. The address is then used as the default for the <code>From</code> header of the new message. For example, I do this with my email address for this list.</p>
<p>Now, the problem is that some times I need to create a new message for the list and since I have not put the address in the account settings then the address is not available in the list of <code>From</code> addresses. Therefore, by default, the <code>From</code> address is derived from the currently selected mailbox/message. This is how it also worked in previous versions of MailMate. The new thing is that the <code>To</code> header is also pre-filled if there is a <code>List-Post</code> header available in the current context.</p>
<p>How to change this behavior: The derivation of a <code>From</code> address can be disabled using a hidden preference. This also has the side-effect of disabling the derivation of the <code>To</code> address. Here is a quote from the Help book:</p>
<hr>
<p>When creating a new message (not a reply) then the default <code>From</code> address is based on the current context (mailbox and currently displayed/selected messages). You can override this behavior using the following hidden preference:</p>
<pre><code>defaults write com.freron.MailMate MmDefaultAccount -string 'imap://username@imap.example.com'
</code></pre>
<p>The default <code>From</code> address is then the first address defined for the account. In any case, as soon as you update the <code>To</code> header then the <code>From</code> address is updated if you have previously sent anything to the same recipient.</p>
<hr>
<p>(An exact string to be used for the above can be seen in the <code>serverURL</code> fields of the <code>Sources.plist</code> file in <code>~/Library/Application Support/MailMate/</code>.)</p>
<p>The above will have to do for now. I expect to release 1.4.1 today, but I'll think about how to improve the default behavior. I'll probably implement the above hidden preference using a popup in the Composer preferences pane and let the first account be the default. And then I need to figure out an alternative approach to handle creation of new messages using address aliases.</p>
<hr>
<p>Benny</p>
</div>