Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Also send message body when using XEP-0377: Spam Reporting #1971

Open
mdosch opened this issue May 31, 2024 · 5 comments
Open

Also send message body when using XEP-0377: Spam Reporting #1971

mdosch opened this issue May 31, 2024 · 5 comments

Comments

@mdosch
Copy link
Contributor

mdosch commented May 31, 2024

Profanity does not send the message in XEP-0377 reports but some end points require this (to have proof, to know the exact time when the spam was received and so on), therefor it would be good if profanity would also send the message as seen in example 5.

@jubalh
Copy link
Member

jubalh commented Jun 2, 2024

We have `/blocked report-abuse|report-spam JID MESSAGE". Did you use this?

@mdosch
Copy link
Contributor Author

mdosch commented Jun 2, 2024

Yes, exactly.

@jubalh
Copy link
Member

jubalh commented Jun 2, 2024

Should be ok: https://github.com/profanity-im/profanity/blob/master/src/xmpp/blocking.c#L135
Can you check via xmpconsole what it actually sends?

@mdosch
Copy link
Contributor Author

mdosch commented Jun 22, 2024

Sorry, I had no spam the last weeks, only today I received some again but forgot to report using profanity master. Will try to check next spam wave.

@mdosch
Copy link
Contributor Author

mdosch commented Jun 23, 2024

Got another spam and it looks like the message is not included:

Jun 23 11:03:55 c2s560772963a50 debug   RECV: <iq id='G4mz8JGpBzS7yO87bba9465e6e1632c7efc0e98c81f75a0c04bc693' type='set' xml:lang='en'><block xmlns='urn:xmpp:blocking'><item jid='b*******[email protected]'><report xmlns='urn:xmpp:reporting:1' reason='urn:xmpp:reporting:spam'/></item></block></iq>
 profanity -v
Profanity, version 0.14.0dev.master.996a1fdf
Copyright (C) 2012 - 2019 James Booth <[email protected]>.
Copyright (C) 2019 - 2024 Michael Vetter <[email protected]>.
License GPLv3+: GNU GPL version 3 or later <https://www.gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Build information:
XMPP library: libstrophe
Desktop notification support: Enabled
OTR support: Disabled
PGP support: Enabled (libgpgme 1.18.0)
OMEMO support: Enabled
C plugins: Enabled
Python plugins: Disabled
GTK icons/clipboard: Disabled
GDK Pixbuf: Enabled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants