8go / 8go/matrix-commander

--listen --tail with a large number only getting a small number of messages

Offen
#199 6 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
754
Forks
69
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I'm using a command like this:

```shell
matrix-commander \
--import-keys ../element-keys.txt "secret password" \
--room '!blahblah:matrix.org' \
--tail 1000000 \
--listen tail \
--listen-self \
--output json > chatlog.json
```

When I do this, I get about 1000 messages reaching back about a month. But I know that the room has far more messages than that. Increasing the value given to `--tail` doesn't change anything?

Am I doing something wrong? Is there some other way to say "get all the messages all the way back to room creation"?

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Look at the code handling the --tail and --listen flags, likely in the main command-line parsing and message fetching logic. Examine how the Matrix API pagination is implemented to understand why only ~1000 messages are retrieved. Check if there's a hard limit or pagination issue. Running the command with debug output or inspecting the network requests could help identify the bottleneck.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python, shell
Bereich
backend-api-design, cli
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
55/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.