imp icon indicating copy to clipboard operation
imp copied to clipboard

IMP: Opening links by simple clicks in emails

Open ralflang opened this issue 6 months ago • 0 comments

I ran into another issue going from imp-7.0.0alpha16 to imp-7.0.0alpha17: links in emails do not open. You MUST do a right-click "open in new window/tab". Is there a new/different security mechanism in place?

If I revert imp to alpha16, then I can click on links in emails. Updating imp to alpha17 breaks that feature. I'm looking at the diffs in alpha17, but not sure where to start to find that.

Thanks again...working better all the ttime!

brent

Follow up

Ok, I found the line in imp release alpha 17 that seems to stop links from opening in a web browser. Changing the following line back in Html.php allows links to open:

Alpha17 line 82: (doesn't work)

$data['data'] = '

' . _("Loading...") . '
<iframe sandbox="allow-same-origin" class="htmlMsgData" id="' . $uid . '" src="javascript:false" frameborder="0" style="display:none;height:auto;">';

Changing this line back to the code in Alpha16 fixes this problem line 82: (works)

$data['data'] = '

' . _('Loading...') . '
<iframe class="htmlMsgData" id="' . $uid . '" src="javascript:false" frameborder="0" style="display:none;height:auto;">';

I've no idea what is the correct change or what is up with the "iframe sandbox" nomenclature.

brent

ralflang avatar Jul 03 '25 06:07 ralflang