From ea8d5fd0113bc419c0abc9da1fffa2a77077d17f Mon Sep 17 00:00:00 2001 From: akwizgran Date: Mon, 13 Apr 2015 10:39:41 +0000 Subject: [PATCH] akwizgran created page: TransportApp --- MessagingApp.markdown | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MessagingApp.markdown b/MessagingApp.markdown index 30b8fd0..ec98721 100644 --- a/MessagingApp.markdown +++ b/MessagingApp.markdown @@ -1,10 +1,10 @@ -MessagingApp is an application that uses [BSP] to synchronise private messages. +MessagingApp is an application that uses [BSP](BSP) to synchronise private messages. ### Message types MessagingApp uses two message types: -**0: PRIVATE_MESSAGE** - The content is a [BDF] list with two elements: message body (string) and attachments (dictionary, may be null). Each attachment's key is its name, and the value is a list with two elements: MIME type (string), and message identifier (raw, exactly HASH_LEN bytes). +**0: PRIVATE_MESSAGE** - The content is a [BDF](BDF) list with two elements: message body (string) and attachments (dictionary, may be null). The key for each attachment is its name, and the value is a list with two elements: MIME type (string), and message identifier (raw, exactly HASH_LEN bytes). **1: ATTACHMENT** - The content is raw data. @@ -17,6 +17,7 @@ MessagingApp uses two message types: * All local messages are stored * All remote messages are stored +* Messages of type ATTACHMENT that are not referenced are garbage-collected ### Sharing policy