Mercurial > prosody-hg
annotate doc/stanza_routing.txt @ 12115:94de6b7596cc
mod_tombstones: Remember deleted accounts #1307
Presence subscriptions are normally revoked on account deletion, which
informs the contact. Sometimes this notification gets lost e.g. due to
s2s problems. The accounts JID may also be present e.g. in MUC
affiliations, chat group member lists, pubsub subscriptions or other
systems. These may grant privileges which would fall to someone who
creates the same account again, which this module is meant to prevent.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 23 Dec 2021 14:08:20 +0100 |
| parents | 2856dfc1f5cc |
| children |
| rev | line source |
|---|---|
| 12 | 1 No 'to' attribute: |
| 2 IQ: Pass to appropriate handler | |
| 3 Presence: Broadcast to contacts | |
| 4 - if initial presence, also send out presence probes | |
| 5 - if probe would be to local user, generate presence stanza for them | |
| 6 Message: Route as if it is addressed to the bare JID of the sender | |
| 7 | |
| 8 To a local host: | |
| 9 IQ: Pass to appropriate handler | |
| 10 Presence: - | |
| 11 Message: Deliver to admin? | |
| 12 | |
| 13 To local contact: | |
| 14 Bare JID: | |
| 15 IQ: Pass to appropriate handler | |
| 16 Presence: Broadcast to all resources | |
| 17 Message: Route to 'best' resource | |
| 18 Full JID: | |
| 19 IQ: Send to resource | |
| 20 Presence: Send to resource | |
| 21 Message: Send to resource | |
| 21 | 22 Full JID but resource not connected: |
| 23 IQ: Return service-unavailable | |
| 24 Message: Handle same as if to bare JID | |
| 25 Presence: Drop (unless type=subscribe[ed]) | |
| 12 | 26 |
| 27 To remote contact: | |
| 28 Initiate s2s connection if necessary | |
| 29 Send stanza across | |
|
22
2856dfc1f5cc
Various documentation updates, and added names.txt :)
Matthew Wild <mwild1@gmail.com>
parents:
21
diff
changeset
|
30 |
