<div class="markdown">
<p dir="auto">On 18 Sep 2014, at 14:42, Jeremy Cowgar wrote:</p>

<blockquote>
<p dir="auto">OK, that got me a step closer, however I'm not exactly sure how to use the ${cc} variable correctly, or maybe it can't be. It is returning to me only the first person on the Cc list, not the entire list. Is there a way to get the Cc list?</p>
</blockquote>

<p dir="auto">No, sorry, not supported yet. At least not for simple format strings. (A more advanced approach is used for, e.g., the configuration of the messages outline.)</p>

<blockquote>
<p dir="auto">My company wants corporate email replied to in Outlook fashion :-(.</p>
</blockquote>

<p dir="auto">That is simply depressing. I cannot imagine the reasoning behind such a strange requirement. I might be alone on this, but when I see this quoting style then “competent professional” are not the first words to cross my mind :-)</p>

<blockquote>
<p dir="auto">I am just playing around with ways to make this work in MailMate. I've managed to do this so far:</p>

<pre><code>"R" = (
    "replyAll:",
    "insertFormatString:",
    "-----Original Message-----\nFrom: ${to.name} [mailto:${to.address}\nTo: ${from.name} [mailto:${from.name}]\nCc: ${cc.name}\nSent: ${date}\nSubject:${subject}\n"
);
</code></pre>

<p dir="auto">This is only one small piece of the puzzle. I have thought about a Bundle to accomplish this task, but it seems to get only the quote, not any other information about the email, thus I can't add the above header.</p>
</blockquote>

<p dir="auto">Yes, this is not so easily accomplished yet. What is really needed is some kind of system for specifying prefaces (wrote-strings) and then let MailMate handle it similarly to signatures. That way you could also easily reply to me without using Outlook reply-style :-)</p>

<p dir="auto">This has been on the todo for a long time. My own motivation is that I want it to be easier to use multiple languages.</p>

<p dir="auto">Hmm, <code>insertFormatString:</code> is not well suited for this since it is based on the reply and not the original string.</p>

<blockquote>
<p dir="auto">Any thoughts would be appreciated, and yes... I don't like the Outlook methodology, but they are really pushing it. I'm willing to go to great lengths to avoid using Outlook for my work email, just for the reply message!</p>
</blockquote>

<p dir="auto">A short term solution would be to support the insertion of the advanced type of format strings. I’ve changed <code>MmReplyWroteString</code> such that if the first character is <code>{</code> then it’s the “advanced” formatting style. This works in the next test version of MailMate (probably tomorrow).</p>

<p dir="auto">Now, I almost hate myself for this, but you would then get something like what you want by pasting this in the Terminal:</p>

<pre><code>defaults write com.freron.MailMate MmReplyWroteString -string "{
    children =
    (
        {
            string = '-----Original Message-----\n';
        },
        {
            formatString = 'From: \${from.name} <\${from.address}>\n';
        },
        {
            sharedPrefix = 'to';
            separatorString = ', ';
            children = (
                {
                    prefixString = 'To: ';
                    formatString = '\${to.name} <\${to.address}>';
                    suffixString = '\n';
                }
            );
        },
        {
            sharedPrefix = 'cc';
            separatorString = ', ';
            children = (
                {
                    prefixString = 'Cc: ';
                    formatString = '\${cc.name} <\${cc.address}>';
                    suffixString = '\n';
                }
            );
        },
        {
            formatString = 'Sent: \${date}\n';
        },
        {
            formatString = 'Subject: \${subject}\n';
        },
    );
}
"
</code></pre>

<p dir="auto">Remember, it won’t work before I’ve uploaded another test release.</p>

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

</div>