diff --git a/app/src/main/java/eu/faircode/email/HtmlHelper.java b/app/src/main/java/eu/faircode/email/HtmlHelper.java
index 01e6442a53..3d30b47973 100644
--- a/app/src/main/java/eu/faircode/email/HtmlHelper.java
+++ b/app/src/main/java/eu/faircode/email/HtmlHelper.java
@@ -1026,10 +1026,22 @@ public class HtmlHelper {
if (alt.length() > MAX_ALT)
alt = alt.substring(0, MAX_ALT) + "…";
- if (!show_images && !(inline_images && isInline) && !TextUtils.isEmpty(alt))
- if (TextUtils.isEmpty(tracking))
- img.appendText("[" + alt + "]");
- else {
+ if (!show_images && !(inline_images && isInline))
+ if (TextUtils.isEmpty(tracking)) {
+ if (TextUtils.isEmpty(alt)) {
+ boolean linked = false;
+ Element p = img.parent();
+ while (p != null && !linked)
+ if ("a".equals(p.tagName()))
+ linked = true;
+ else
+ p = p.parent();
+ if (linked)
+ alt = context.getString(R.string.title_image_link);
+ }
+ if (!TextUtils.isEmpty(alt))
+ img.appendText("[" + alt + "]");
+ } else if (!TextUtils.isEmpty(alt)) {
Element a = document.createElement("a");
a.attr("href", tracking);
a.text("[" + alt + "]");
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 7457e203ff..86f52bb896 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -1474,6 +1474,7 @@
This is a summary of the content of a raw message file. Save the raw message with the save icon in the action bar to view all content.
Open link
+ Image link
The title and the link address are different
This website might track you
This is a suspicious link