From 0f40c2266831dab0a89da1fad15b8801fa0acf52 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Tue, 1 Sep 2015 16:44:05 +0200 Subject: [PATCH] clarify the no-storage/no-store confusion in XEP-0334 and add a new hint to always store message the message hints XEP confusingly talks about no-storage and no-permanent-storage in one place even though no-store was meant added a new message hint to ask the server to store messages even though they do not contain a body. like encrypted messages --- xep-0334.xml | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/xep-0334.xml b/xep-0334.xml index 8183b751..1f381f0f 100644 --- a/xep-0334.xml +++ b/xep-0334.xml @@ -21,6 +21,15 @@ NOT_YET_ASSIGNED &mwild; + + 0.2 + 2015-09-01 + dg + +

Fixed the wrong use of no-storage instead of no-store

+

Added a message hint <store/>

+
+
0.1 2013-07-11 @@ -45,6 +54,7 @@
  • Whether to store a message (e.g. for archival or as an 'offline message').
  • Whether to copy a message to other resources.
  • +
  • Whether to store a message that would not have been stored under normal conditions
@@ -74,16 +84,19 @@ recipient is offline at the time of sending). Such a message can be marked with the <no-permanent-store/> hint.

+ +

Offline storage and &xep0313; can define their own rules on what messages to store and usually only store messages that contain a body element. However a sender may want to indicate that a message is worth storeing even though it might not match those rules (e.g. an encrypted message that carries the payload outside the body element). Such a message can be marked with a <store/> hint.

+
- -

The <no-permanent-storage/> hint informs entities that they shouldn't store the message in + +

The <no-permanent-store/> hint informs entities that they shouldn't store the message in any permanent or semi-permanent public or private archive (such as described in &xep0136; and &xep0313;) or in logs (such as chatroom logs).

- -

A message containing a <no-storage/> hint should not be stored by a server either permanently (as above) + +

A message containing a <no-store/> hint should not be stored by a server either permanently (as above) or temporarily, e.g. for later delivery to an offline client, or to users not currently present in a chatroom.

@@ -95,6 +108,9 @@ occupants in a &xep0045; room.

+ +

A message containing the <store/> hint that is not of type 'error' SHOULD be stored by the entity.

+

It is important to note that message hints are, as the name implies, just hints. Implementations @@ -122,6 +138,7 @@ +