<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">On 19 Oct 2017, at 17:31, Giovanni Lanzani wrote:</p>
<blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px">
<blockquote style="border-left:2px solid #777; color:#999; margin:0 0 5px; padding-left:5px; border-left-color:#999">
<blockquote style="border-left:2px solid #777; color:#BBB; margin:0 0 5px; padding-left:5px; border-left-color:#BBB">
<ul>
<li>the status</li>
</ul>
</blockquote>
<p dir="auto">What kind of status?</p>
</blockquote>
<p dir="auto">You don't do many meetings, do you? :) It's accepted, rejected, maybe</p>
</blockquote>
<p dir="auto">I should perhaps start arranging meetings with myself in order to better understand the world outside :)</p>
<blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px">
<blockquote style="border-left:2px solid #777; color:#999; margin:0 0 5px; padding-left:5px; border-left-color:#999">
<blockquote style="border-left:2px solid #777; color:#BBB; margin:0 0 5px; padding-left:5px; border-left-color:#BBB">
<ul>
<li>optionally a remark.</li>
</ul>
</blockquote>
<p dir="auto">Remark?</p>
</blockquote>
<p dir="auto">When replying to a meeting you can add a remark such as: "I'll be available only for the first part of the meeting". The remark and the status should come, either as env variables or via stdin, from Mailmate I guess. Is that even possible? Remark is not a priority (I guess).</p>
</blockquote>
<p dir="auto">I guess what I meant to ask was where this information is stored. If it's inside the attachment then this part of the work should be left to the bundle command itself. If it's somehow in the headers of the message then MailMate should provide the values (and can do so using environment variables).</p>
<blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px">
<blockquote style="border-left:2px solid #777; color:#999; margin:0 0 5px; padding-left:5px; border-left-color:#999">
<p dir="auto">Do you think they would be sufficient? Or do you need more detailed control of the construction of the MIME message?</p>
</blockquote>
<p dir="auto">I don't know :)</p>
<p dir="auto">Looking at the raw message of an invite, it looks like this. From Python I could just supply the base64 encoded content. If Mailmate would handle the rest: that'd be swell! :)</p>
</blockquote>
<p dir="auto">When MailMate can be told to attach something then it should just be a <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">text/calendar</code> formatted file. Then that would be encoded as base64 by MailMate.</p>
<blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px">
<pre style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; margin-left:15px; margin-right:15px; max-width:90vw; overflow-x:auto; padding:5px" bgcolor="#F7F7F7"><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0" bgcolor="#F7F7F7">Content-Type: multipart/alternative;
Content-Type: text/plain; charset="utf-8"
Content-Type: text/calendar; charset="utf-8"; method=REPLY
</code></pre>
</blockquote>
<p dir="auto">Ok, what I thought was weird about this is that the above means that MailMate should show the <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">text/calendar</code> part and ignore the <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">text/plain</code> part. The <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">text/calendar</code> part is not really an attachment. But I now realize that this is really how it's supposed to work (based on the <a href="https://tools.ietf.org/html/rfc6047" style="color:#3983C4">RFC</a>). The problem is that MailMate doesn't know how to display <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">text/calendar</code> and therefore needs to both display the <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">text/plain</code> part and make the <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">text/calendar</code> part available to the user. I'll keep this in mind when looking into attachments-handling via bundle commands.</p>
<p dir="auto">-- <br>
Benny</p>
</div>
</div>
</body>
</html>