Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

(traffic saving) minimize requirement to up/download a message body #437

Closed
testbird opened this issue Nov 14, 2018 · 3 comments
Closed
Labels
discussion normally disussions should take place at https://support.delta.chat feature proposal

Comments

@testbird
Copy link
Contributor

testbird commented Nov 14, 2018

As long as the entire text of a short chat message fits into the subject, there is no need to upload the text a second time in the message body, and no need for the receiver to download the entire message body.

To skip downloading the body, "subject only" messeges would need to be marked in a distinguishable way.
Possibly, by ending the subject with a special character and using a subject-only optimized format like
-[] Hi, short text. |, or -[groupname] some text. | for group messages, so that classic MUA users can also see the character and know that there is no text to look for in the body.

(The example used subject formatting ideas from #136 (comment) and #128 (comment))

Not having to download the message body for regular text messages, will allow to only make (delayed) downloads of the message body, if it contains attachments. -> #436

@r10s r10s added feature proposal discussion normally disussions should take place at https://support.delta.chat labels Nov 14, 2018
@r10s
Copy link
Member

r10s commented Nov 14, 2018

how can this work together with encryption?

@testbird testbird changed the title (traffic saving) minimize requirement to download the entire message body (traffic saving) minimize requirement to up/download a message body Nov 14, 2018
@testbird
Copy link
Contributor Author

testbird commented Nov 14, 2018

Hm, right only Autocrypt: is a header. And I guess the encrypted subject feature uses information in the body to let compatible clients override the subject, right?

But traffic could still be reduced a lot for encrypted messages by breaking PGP compatibility?:

Maybe a Sparse Email-chat protocol variant, that is only used among contacts known to use an Email-chat compliant messenger:

  • skipping to re-send the same key to the same known contacts (only re-send after changes or explicit request)
  • moving the encrypted part into a header (subject plus possibly some longer but still rather short remaining text message?)
  • moving all optional and meta-data parts (e.g. new group member keys), if they have to be sent, from the headers (e.g. Autocrypt:) into the body (as attachments that may only need to be downloaded later on wifi, or for sending a reply, if a key is unknown or not working)

@r10s
Copy link
Member

r10s commented Nov 19, 2018

traffic saving is important, in fact, we've saved 33% sending-traffic by bcc-self #370 and the message-id-check in #408 will save another 33% on sending.
also the single-folder-approach saves lots of IMAP commands as copy/move is now longer needed.

of course other approaches are also useful, but they come at much higher costs of maintainability and also compatibility ("moving the encrypted part into a header").

in general, we should start such discussions and feature requests not in the issue tracker but eg. in the forum, therefore, this is closed for now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
discussion normally disussions should take place at https://support.delta.chat feature proposal
Projects
None yet
Development

No branches or pull requests

2 participants