Page 1 of 1

footer link on ham goes to release instead of learn as spam

Posted: 31 Jan 2024 17:04
by tjfayaz
Hi has anyone else got this issue on v4 whereby the /etc/MailScanner/reports/en/inline.sig.html link is actually a link to release rather than to mark as spam? Since this gets added to ham only, why would you want to release something which you already have and is already released?

So on the bottom of ham does anyone know the correct URL format to be able to single click and learn as spam (without login)?
If this message is spam, you can report in the next 3 days
by clicking https://$hostname/mailscanner/eFa-learn.php?mid=$id&r=$token

Re: footer link on ham goes to release instead of learn as spam

Posted: 03 Feb 2024 14:58
by tjfayaz
ok I can confirm this URL does work and submits to learn as spam. What was misleading was the "Spam Release" header it gives so I've adjusted learn03 in the language file to say "Learn". I've also made /var/www/html/mailscanner/languages/en.php submit the form without asking you and simply confirm it's been learned. Working well :)

https://$hostname/mailscanner/eFa-learn.php?mid=$id&r=$token