diff --git a/src/com/fsck/k9/helper/HtmlConverter.java b/src/com/fsck/k9/helper/HtmlConverter.java
index 3ca48580d..f1b88b4e3 100644
--- a/src/com/fsck/k9/helper/HtmlConverter.java
+++ b/src/com/fsck/k9/helper/HtmlConverter.java
@@ -397,7 +397,7 @@ public class HtmlConverter {
Matcher m = Regex.WEB_URL_PATTERN.matcher(prepared);
while (m.find()) {
int start = m.start();
- if (start == 0 || (start != 0 && text.charAt(start - 1) != '@')) {
+ if (start == 0 || (start != 0 && prepared.charAt(start - 1) != '@')) {
if (m.group().indexOf(':') > 0) { // With no URI-schema we may get "http:/" links with the second / missing
m.appendReplacement(outputBuffer, "$0");
} else {