]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/View.pm
reply: handle address obfuscation :<
[public-inbox.git] / lib / PublicInbox / View.pm
index 687a0acb9367737410d5ff4aae641513fd49b629..1e2bcd53ddc350a786a908d662a3236b6891476f 100644 (file)
@@ -61,6 +61,15 @@ sub msg_reply {
        }
 
        my ($arg, $link) = PublicInbox::Reply::mailto_arg_link($ibx, $hdr);
+
+       # mailto: link only works if address obfuscation is disabled
+       if ($link) {
+               $link = <<EOF;
+* If your mail client supports setting the <b>In-Reply-To</b> header
+  via mailto: links, try the <a
+href="$link">mailto: link</a></pre>
+EOF
+       }
        push @$arg, '/path/to/YOUR_REPLY';
        $arg = ascii_html(join(" \\\n    ", '', @$arg));
        <<EOF
@@ -86,10 +95,7 @@ $info
 
   <a
 href="$se_url">$se_url</a>
-
-* If your mail client supports setting the <b>In-Reply-To</b> header
-  via mailto: links, try the <a
-href="$link">mailto: link</a></pre>
+$link
 EOF
 }