profanity icon indicating copy to clipboard operation
profanity copied to clipboard

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

Open mdosch opened this issue 1 year ago • 5 comments

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.

mdosch avatar May 31 '24 10:05 mdosch

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

jubalh avatar Jun 02 '24 16:06 jubalh

Yes, exactly.

mdosch avatar Jun 02 '24 17:06 mdosch

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?

jubalh avatar Jun 02 '24 17:06 jubalh

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 avatar Jun 22 '24 16:06 mdosch

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

mdosch avatar Jun 23 '24 09:06 mdosch