<div class="markdown">
<p dir="auto">On 14 Dec 2015, at 21:34, John Rakestraw wrote:</p>
<blockquote>
<p dir="auto">I’d like to create a task formatted for emacs org-mode based on an email I receive in MailMate. So, for example, an email from John Smith, received 2015-12-14 with the subject line “here’s one” and the body text “blah, blah, blah” generates something like this, appended to a plain-text file:</p>
<p dir="auto">...<br>
[Extra points if I can select a part of the body text and have only that part go into the body.]</p>
<p dir="auto">Possible?</p>
</blockquote>
<p dir="auto">This requires a so-called bundle which is (unfortunately) still undocumented. There are a lot of <a href="https://github.com/mailmate">examples</a> though. They can be enabled in the Bundles preferences pane of MailMate. Some of the calendar bundles use <code>MM_SELECTED_RANGE</code> which might be useful for the extra points (although I'm not sure this variable always works well in general).</p>
<p dir="auto">You can base your bundle on an existing one. Place it here and MailMate should automatically detect it:</p>
<pre><code>~/Library/Application Support/MailMate/Bundles/
</code></pre>
<p dir="auto">Make sure you replace every use of a UUID in the various files. You can put one on the pasteboard like this (in a Terminal window):</p>
<pre><code>uuidgen | tr -d '\n' | pbcopy
</code></pre>
<p dir="auto">See if you can make it work and then let me know if you have any questions.</p>
<p dir="auto">-- <br>
Benny</p>
</div>