What is all this communication to a quiet broadcast channel?

I was having a look to my small broadcast channel (4 subscribers), poking a stick at various parts just to see how it works. I was that kid who took stuff apart with a screwdriver for fun fyi. :slight_smile:

So over here on the relay (I was curious if the subscriber list was stored on the servers) in the IMAP data, I see this mailing list getting a ton of chatter all the time… but nothing is using it per se, as the list gets one message a month (maybe). Yet on Nov 1 (yesterday) it stored 73 new email objects (gzipped pgp mime emails)

./cur# ls -latr | grep "Nov  1" | wc -l
73

They’re recorded in the cur/ tree (not new/) and have a general size of about 2k, appearing to be the same thing with just different metadata sizes etc. However, not always the case as we see some large payloads

./cur# ls -latr | grep "Nov  1" | sort -n | tail -10 | awk '{print $5 " " $8}'
2403 14:57
44882 12:49
44903 13:14
44922 15:09
44938 02:10
53834 01:42
302391 15:03
304944 15:02
324866 04:14
352612 15:03

Most of the 73 objects have the general size (~2k) of the first item, but then we have 9 fat objects that make me go “why are you here? what’s in you? why are you so big?” The second column are the timestamps on the files, no obvious pattern like they all happened at once or something.

So, what’s going on with broadcast channels? Why do I see 73 message objects for 1 day in a list that hasn’t seen traffic since 2 weeks before that? That only has 4 subscribers? What’s all this chatmail metadata bouncing around causing 73 messages a day when no messages are being sent?

first, note, that Delta Chat does use the relay more as a stream, no data are persisted and by default, everything is encrypted. the stream us used to relay messages - but also for many other purposes.

i do not fully get, what the view refers to, and with the given information, it seems hard to tell. so, a general, not exhaustive list of things that generate data:

  • sending a message, obviously
  • read receipt
  • reactions
  • if you change your relays
  • sync message between your devices
  • if a subscriber is added to a channel, most recent messages are resent
  • scanning a qr code and adding someone may result in several data
  • edit requests
  • delete requests
  • mini app updates
  • probably more

most of the messages are “small”.

while images, videos, apps obviously are “large”, also apparently “small” messages can be larger, as keys are gossiped in the encrypted part, and also avatars and bio are sent.

In 2.64.0 there was a bug fixed that resulted in resending reaction summaries forever if channel owner has multiple devices.

I’m not sure that’s the case here (I mean yes I’m sure I was affected by this, but not this time I think) - my Android devices are on 2.64.0 (fdroid) and laptop on 2.65.0 (arch). Rerunning the same queries against Nove 2 (yesterday again, one day forward)

 ls -latr | grep "Nov  2" | wc -l
71

Interestingly, timestampe-wise I see a flurry around the same general hours

 ls -latr | grep "Nov  2" | sort -n | tail -10 | awk '{print $5 " " $8}'
2280 16:13
2280 16:15
2280 20:58
2283 16:53
2317 16:33
2354 15:36
2393 16:16
2446 16:28
2475 16:39
528595 16:53

What’s interesting is the large files from the previous capture (350k gzipped) are gone, but all over the datastore are 100k to 500k payloads with older dates.

OK thanks I think I got it - that was a definite clue, and what it turned out to be was a test profile (from someone else), connected over another relay, re-sending messages. (well it looked like that reading the headers and the massive “reply-to” train in them) I was able grab a payload or two, decrypt(1) and then follow the headers to “aha!”. So it’s I guess related to that bug? Maybe?

In any case, mystery solved and I learned some new stuff. :slight_smile: Never a bad thing, learning new stuff. The bloated and differing sizes appear to be a ton of circular metadata, which lands directly in the bug that was fixed. As far as I could determine, it was sending different reply loops in different chains, like each thread was 7 long somehow). Some of the tested payloads looked like thing inside a thing inside a thing (matryoshka dolls).

(1) just learned GnuPGP is yet again switching formats and it’s a disaster on arch trying to use the DC key (post quantum v6) with what they currently have available (v5 format). I had instant success instead using sequoia-sq and decrypting it with a quick command: sq --home /tmp/path decrypt --output data.txt --recipient-file priv.gpg data where priv.gpg is the extracted key(2) and data is the payload. So much nicer than gnupg madness which I try and ignore and hope it works

(2) learned about the sqlite builtin “writefile” select writefile('priv.gpg', private_key) from keypairs; (add a where clause if you have more than one keypair in there, I do not)

very cool you were looking at the internals, this time the bug was already fixed but it would have been caught by you otherwise! so thanks a lot! I also noticed something was not right because I have a channel and my account seemed too busy at times when it shouldn’t, but couldn’t confirm what was going on since I am too lazy to setup something in Thunderbird