I got the following mail from Scott:

>>>"
I have always found this to be an annoyance as well, that the ASSP 
resend links do not work in Thunderbird.

I took the time to do some testing today, and found the problem: The 
culprit is the target="_blank" which is part of the mailto link:

<a 
href="
mailto:RSBM_spamx12345.eml@assp.local?&subject=request%20ASSP%20to%20resend%20blocked%20mail%20from%20ASSP-host%20mail.server.com
" 
class="reqlink" target="_blank" title="request ASSP on mail.server.com 
to resend this blocked email"><img src=cid:1000 alt="request ASSP on 
mail.server.com to resend this blocked email" /> Resend </a>

This causes Thunderbird to open a new tab, which it then expects to load 
a WEB page into, and it does not interpret the mailto properly, ending 
up in a blank page.

When I did a test and removed the target="_blank" from the link, 
Thunderbird acted on the link properly.

I can't actually think of a good reason for a mailto: link to have a 
target="_blank" directive in it - the mailto: link will be intercepted 
by the OS's default mail application, not the web browser (or mail 
client web rendering engine) which is displaying the message, so having 
it direct it to open the link in a new window is irrelevent.

It used to be best practice to include the target="_blank" on mailto 
links for web-based email clients, but I don't believe that is the case 
anymore. I tested it on GMail, and it works correctly (intercepting the 
link and creating an email) with and without the target=_blank directive.

Adding rel="noopener" to the link still opens a blank page within 
Thunderbird, but it DOES create the email correctly.

However, I suspect the correct solution would be to remove the 
target="_blank" from the mailto links entirely.

"<<<
Thank you, Scott.

-------------------------

So, what you can do to get the resend links working in thunderbird is to 
remove the 'target=_blank' from the html part using 
lib/BlockReport/modify.pm.

add the following line to the %toReplace hash in sub modify

&makeRe('target=3D"_blank"') =>  '',

Notice: this may prevent other mail clients from opening the 'new mail 
window' correctly!

Thomas







Von:    "Thomas Eckardt" <thomas.ecka...@thockar.com>
An:     "For Users of ASSP" <assp-user@lists.sourceforge.net>
Datum:  02.05.2021 11:04
Betreff:        Re: [Assp-user] Block report resend in Thunderbird



the links you tried in the blockreport are 'mailto:...' html links 
configure thunderbird as standard mail application in your OS 

depending on the used OS and thunderbird version additional settings may 
be required to get this working - ask support.mozilla.org 

Thomas





Von:        "Ing. Lukáš Pečínka" <lukas.peci...@osu.cz> 
An:        assp-user@lists.sourceforge.net 
Datum:        30.04.2021 14:58 
Betreff:        [Assp-user] Block report resend in Thunderbird 



Hi,

I found some "bug" in ASSP block report. When I click on resend link in 
report via mail GUI or via outlook, everything is good, but problem is 
with Thunderbird. If I click on resend or whitelist addres in report, 
Thunderbird open blank screen with loading and do nothing. Is problem in 
ASSP or Thunderbird? Do you have same problem or it is only on my side? 
My colleague try it too but with same result.

I tried it under Linux and W10.

Thank you for reply.

-- 
Best regards

Lukas



_______________________________________________
Assp-user mailing list
Assp-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-user






DISCLAIMER:
*******************************************************
This email and any files transmitted with it may be confidential, legally 
privileged and protected in law and are intended solely for the use of the 

individual to whom it is addressed.
This email was multiple times scanned for viruses. There should be no 
known virus in this email!
*******************************************************
_______________________________________________
Assp-user mailing list
Assp-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-user




DISCLAIMER:
*******************************************************
This email and any files transmitted with it may be confidential, legally 
privileged and protected in law and are intended solely for the use of the 

individual to whom it is addressed.
This email was multiple times scanned for viruses. There should be no 
known virus in this email!
*******************************************************


_______________________________________________
Assp-user mailing list
Assp-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-user

Reply via email to