<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Thanks for the reply Philipp. In that case I didn't understand the purpose of the new ways of fetching the archive as proposed by Matthew in <a href="https://github.com/xsf/xeps/pull/922" target="_blank">https://github.com/xsf/xeps/pull/922</a> namly "before-id", "after-id", and "ids". I assumed that they operate not on the archive id provided by MAM but on the origin-id (or other id) provided by the user.</div><div dir="ltr"><br></div><div>If they operate on the archive id provided by MAM, I think we are still missing a simple way for the sender to sync the archive. The user sending the message, doesn't know the archive id of the just sent message unless it tries to read it from MAM. I can imagine a situation where a user sent many messages to someone else, there was no message back from the other user when the sender was online. The next time our sender connects and wants to sync MAM it has to either query it by timestamp or use last known archive id, which is from before the messages were sent.</div><div><br></div><div>In other words, I think it'd be good if the sender could quickly learn what is the archive id for the message it just sent, or has the ability to query the archive based on origin-id.   </div><div dir="ltr"><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><br>Best regards<br>Michal Piotrowski<br></div><div>Software Architect at <a href="https://www.erlang-solutions.com/" rel="noreferrer" style="color:rgb(17,85,204)" target="_blank">https://www.erlang-solutions.com/</a><br>email: <a href="mailto:michal.piotrowski@erlang-solutions.com" style="color:rgb(17,85,204)" target="_blank">michal.piotrowski@erlang-solutions.com</a><br>skype: twitter/github/medium: michalwski</div><div><br></div></div></div></div></div></div></div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 12 May 2020 at 18:05, Philipp Hörist <<a href="mailto:philipp@hoerist.com">philipp@hoerist.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>I think you misunderstand the XEP, MAM does not care about what IDs a user adds, it certainly does not care about origin-id, or the message-id.</div><div><br></div><div>The server itself generates a unique ID when receiving a message and this ID is communicated via the stanza-id element for example in MUC Messages.</div><div><br></div><div>Or if you fetch messages via MAM, in the result element id attribute.<br></div><div><br></div><div>Regards</div><div>Philipp<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Di., 12. Mai 2020 um 17:44 Uhr schrieb Michal Piotrowski <<a href="mailto:michal.piotrowski@erlang-solutions.com" target="_blank">michal.piotrowski@erlang-solutions.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">One more question, probably more general. What would be the most desired server's behaviour when it observes that a user sent a message with a used UID? In my opinion, it be better to reject this new message with an existing UID, if so how to communicate that error back to the sender?<br clear="all"><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><br>Best regards<br>Michal Piotrowski<br></div><div>Software Architect at <a href="https://www.erlang-solutions.com/" rel="noreferrer" style="color:rgb(17,85,204)" target="_blank">https://www.erlang-solutions.com/</a><br>email: <a href="mailto:michal.piotrowski@erlang-solutions.com" style="color:rgb(17,85,204)" target="_blank">michal.piotrowski@erlang-solutions.com</a><br>skype: twitter/github/medium: michalwski</div><div><br></div></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 11 May 2020 at 10:22, Michal Piotrowski <<a href="mailto:michal.piotrowski@erlang-solutions.com" target="_blank">michal.piotrowski@erlang-solutions.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Matthew,<div><br></div><div>Thanks for making the changes. I'm really in favour of them. I see there was no update to the PRs nor here on the mailing list. What needs to happen in order to proceed with these?</div><div><br></div><div>Alos, I have a comment (or rather question) regarding the new way of querying the archive based on message UIDs. I assume that by UID, you mean the origin-id as set by the client sending the message. If so, it didn't find it clearly stated in your proposed changes nor in the current version of MAM XEP. If not origin-id is meant here, I'd like to know what UID means in this context.<br clear="all"><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><br>Best regards<br>Michal Piotrowski<br></div><div>Software Architect at <a href="https://www.erlang-solutions.com/" rel="noreferrer" style="color:rgb(17,85,204)" target="_blank">https://www.erlang-solutions.com/</a><br>email: <a href="mailto:michal.piotrowski@erlang-solutions.com" style="color:rgb(17,85,204)" target="_blank">michal.piotrowski@erlang-solutions.com</a><br>skype: twitter/github/medium: michalwski</div><div><br></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 22 Apr 2020 at 13:17, Florian Schmaus <<a href="mailto:flo@geekplace.eu" target="_blank">flo@geekplace.eu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">On 4/22/20 12:07 PM, Matthew Wild wrote:<br>
> On Tue, 21 Apr 2020 at 15:50, Florian Schmaus <<a href="mailto:flo@geekplace.eu" target="_blank">flo@geekplace.eu</a><br>
> <mailto:<a href="mailto:flo@geekplace.eu" target="_blank">flo@geekplace.eu</a>>> wrote:<br>
>     On 4/21/20 2:32 PM, Dave Cridland wrote:> On Mon, 20 Apr 2020 at 16:20,<br>
>     > You're going to hate me, but one more thing...<br>
>     ><br>
>     > Current MAM says that servers SHOULD include a count. The problem with<br>
>     > this is that it's extremely slow on any system with more than trivial<br>
>     > retention periods, since this tends to degenerate into either a<br>
>     COUNT(*)<br>
>     > SQL query (table-scan-tastic) or a standalone counter (which then<br>
>     drifts<br>
>     > and is a contention point).<br>
>     ><br>
>     > The majority of client libraries appear to ignore the count values<br>
>     > anyway, as far as I can tell, so can we relax this to a MAY? (XEP-0059<br>
>     > is MAY-but-only-if, which is arguably really a SHOULD anyway).<br>
> <br>
>     I think such a relaxation would require a namespace bump.<br>
> <br>
> I'm not convinced. In any case, servers that already comply with the<br>
> SHOULD will probably continue to do so, new servers may be more likely<br>
> not to, but given that clients don't really use the (unreliable) info<br>
> today then I don't think we lose anything in practice.<br>
<br>
I could follow that argumentation in this case. It's probably just me,<br>
but I am very conservative when it comes to relaxations of keywords.<br>
<br>
- Florian<br>
<br>
_______________________________________________<br>
Standards mailing list<br>
Info: <a href="https://mail.jabber.org/mailman/listinfo/standards" rel="noreferrer" target="_blank">https://mail.jabber.org/mailman/listinfo/standards</a><br>
Unsubscribe: <a href="mailto:Standards-unsubscribe@xmpp.org" target="_blank">Standards-unsubscribe@xmpp.org</a><br>
_______________________________________________<br>
</blockquote></div>
</blockquote></div>

<br>
<p dir="ltr" style="line-height:1.656;margin-top:0pt;margin-bottom:0pt"><a href="https://www2.codesync.global/l/23452/2019-11-13/6sypwx" style="text-decoration:none" target="_blank"><span style="font-family:Arial;color:rgb(17,85,204);background-color:rgb(255,255,255);font-weight:700;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap"><font size="3">Code Sync & Erlang Solutions Conferences</font></span></a></p><p dir="ltr" style="line-height:1.656;margin-top:0pt;margin-bottom:0pt"><b style="font-weight:normal"><font size="3"><br></font></b></p><p dir="ltr" style="line-height:1.656;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Helvetica,sans-serif;color:rgb(68,68,68);background-color:transparent;font-weight:400;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><font size="3">Code BEAM Lite ITA - Bologna: Rescheduled</font></span></p><p dir="ltr" style="line-height:1.656;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Helvetica,sans-serif;color:rgb(68,68,68);background-color:transparent;font-weight:400;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><font size="3">Code BEAM STO - Stockholm: Rescheduled</font></span></p><p dir="ltr" style="line-height:1.656;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Helvetica,sans-serif;color:rgb(68,68,68);background-color:transparent;font-weight:400;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><font size="3">ElixirConf EU - Warsaw: 7-8 October 2020</font></span></p><p dir="ltr" style="line-height:1.656;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Helvetica,sans-serif;color:rgb(68,68,68);background-color:transparent;font-weight:400;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><font size="3">Code Mesh - London: 5-6 November 2020</font></span></p><p dir="ltr" style="font-size:1.3em;line-height:1.656;margin-top:0pt;margin-bottom:0pt"><b style="font-weight:normal"><br></b></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><font size="2"><span style="font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">Erlang Solutions cares about your data and privacy; please find all details about the basis for communicating with you and the way we process your data in our </span><a href="https://www.erlang-solutions.com/privacy-policy.html" style="text-decoration:none" target="_blank"><span style="font-family:Arial;color:rgb(17,85,204);background-color:transparent;font-weight:400;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap">Privacy Policy</span></a><span style="font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">. You can update your email preferences or opt-out from receiving Marketing emails </span><a href="https://www2.erlang-solutions.com/email-preference?epc_hash=JtO6C7Q2rJwCdZxBx3Ad8jI2D4TJum7XcUWcgfjZ8YY" style="text-decoration:none" target="_blank"><span style="font-family:Arial;color:rgb(17,85,204);background-color:transparent;font-weight:400;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap">here</span></a><span style="font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">.</span></font></p><p dir="ltr" style="font-size:1.3em;line-height:1.656;margin-top:0pt;margin-bottom:0pt"><br></p>_______________________________________________<br>
Standards mailing list<br>
Info: <a href="https://mail.jabber.org/mailman/listinfo/standards" rel="noreferrer" target="_blank">https://mail.jabber.org/mailman/listinfo/standards</a><br>
Unsubscribe: <a href="mailto:Standards-unsubscribe@xmpp.org" target="_blank">Standards-unsubscribe@xmpp.org</a><br>
_______________________________________________<br>
</blockquote></div>
_______________________________________________<br>
Standards mailing list<br>
Info: <a href="https://mail.jabber.org/mailman/listinfo/standards" rel="noreferrer" target="_blank">https://mail.jabber.org/mailman/listinfo/standards</a><br>
Unsubscribe: <a href="mailto:Standards-unsubscribe@xmpp.org" target="_blank">Standards-unsubscribe@xmpp.org</a><br>
_______________________________________________<br>
</blockquote></div>

<br>
<p dir="ltr" style="line-height:1.656;margin-top:0pt;margin-bottom:0pt"><a href="https://www2.codesync.global/l/23452/2019-11-13/6sypwx" style="text-decoration:none" target="_blank"><span style="font-family:Arial;color:rgb(17,85,204);background-color:rgb(255,255,255);font-weight:700;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap"><font size="3">Code Sync & Erlang Solutions Conferences</font></span></a></p><p dir="ltr" style="line-height:1.656;margin-top:0pt;margin-bottom:0pt"><b style="font-weight:normal"><font size="3"><br></font></b></p><p dir="ltr" style="line-height:1.656;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Helvetica,sans-serif;color:rgb(68,68,68);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><font size="3">Code BEAM Lite ITA - Bologna: Rescheduled</font></span></p><p dir="ltr" style="line-height:1.656;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Helvetica,sans-serif;color:rgb(68,68,68);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><font size="3">Code BEAM STO - Stockholm: Rescheduled</font></span></p><p dir="ltr" style="line-height:1.656;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Helvetica,sans-serif;color:rgb(68,68,68);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><font size="3">ElixirConf EU - Warsaw: 7-8 October 2020</font></span></p><p dir="ltr" style="line-height:1.656;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Helvetica,sans-serif;color:rgb(68,68,68);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><font size="3">Code Mesh - London: 5-6 November 2020</font></span></p><p dir="ltr" style="font-size:1.3em;line-height:1.656;margin-top:0pt;margin-bottom:0pt"><b style="font-weight:normal"><br></b></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><font size="2"><span style="font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">Erlang Solutions cares about your data and privacy; please find all details about the basis for communicating with you and the way we process your data in our </span><a href="https://www.erlang-solutions.com/privacy-policy.html" style="text-decoration:none" target="_blank"><span style="font-family:Arial;color:rgb(17,85,204);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap">Privacy Policy</span></a><span style="font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">. You can update your email preferences or opt-out from receiving Marketing emails </span><a href="https://www2.erlang-solutions.com/email-preference?epc_hash=JtO6C7Q2rJwCdZxBx3Ad8jI2D4TJum7XcUWcgfjZ8YY" style="text-decoration:none" target="_blank"><span style="font-family:Arial;color:rgb(17,85,204);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap">here</span></a><span style="font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">.</span></font></p><p dir="ltr" style="font-size:1.3em;line-height:1.656;margin-top:0pt;margin-bottom:0pt"><br></p>