<div class="markdown">
<p dir="auto">On 31 Jan 2014, at 18:25, Benny Kjær Nielsen wrote:</p>
<blockquote>
<p dir="auto">On 31 Jan 2014, at 19:02, Pedro Lobo wrote:</p>
<blockquote>
<blockquote>
<p dir="auto">An idea:<br>
I don't know, if its possible, but if it can be, it would be awesome.<br>
a) Tag a message @awaiting<br>
b) added to Taskaper<br>
c) if there is a reply to that message, @done tag is added to the task. (applescript running x-minutes/hours in the background)</p>
</blockquote>
<p dir="auto">Benny could weigh in on this, but maybe setup a smart mailbox for the @waiting tag and have a rule run that once that message is replied to, it could run a separate command that would add a @done tag.</p>
<p dir="auto">Benny: Is this possible? Any ideas?</p>
</blockquote>
<p dir="auto">The main problem is locating the task in TaskPaper. It is likely that TaskPaper returns some kind of identifier for this purpose, but this then needs to be stored until it is needed when a reply has been sent. This is hard to do in a way that would synchronize with the IMAP server (it could be an IMAP keyword, but I don't think servers work well with a very large number of keywords). It would probably be better if the task could be located using the Message-ID of the message.</p>
<p dir="auto">So,</p>
<ul>
<li>a smart mailbox with conditions for the keywords @awaiting and <code>\Answered</code></li>
<li>should have a rule with an action launching a script</li>
<li>which given the Message-ID of the message matching the conditions would locate the task and mark it @done.</li>
</ul>
<p dir="auto">The rule should probably also remove <code>@awaiting</code> in order to prevent other installs of MailMate to repeat the action (this cannot be completely avoided since they might do it at the same time).</p>
<p dir="auto">-- <br>
Benny</p>
<hr>
<p dir="auto">mailmate mailing list<br>
<a href="mailto:mailmate@lists.freron.com">mailmate@lists.freron.com</a><br>
<a href="http://lists.freron.com/listinfo/mailmate">http://lists.freron.com/listinfo/mailmate</a></p>
</blockquote>
<p dir="auto"><strong>@Benny:</strong><br>
This shouldn't be too hard. We can just add a tag <strong>@id(<em>message_id</em>)</strong> and then later search for a task with the same message<em>id. Now would this be the message</em>id we see in MailMate message view (Msg ID / UID)?</p>
<p dir="auto"><strong>@Nitin:</strong> <br>
This would also require that these tasks go into a default file and preferably project. Agreed?</p>
<p dir="auto">Cheers,<br>
Pedro Lobo</p>
</div>