diff options
author | Eric Wong <e@80x24.org> | 2017-06-23 02:25:33 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2017-06-23 02:32:35 +0000 |
commit | 666844ae42b5b17fd2e9b7ea6cf04727487b5322 (patch) | |
tree | 887824678cd482404c8f4b789eae1ed29114c1c4 /lib/PublicInbox/View.pm | |
parent | 59b3f7584817735a69b45388fd2d4c40750cf6e4 (diff) | |
download | public-inbox-666844ae42b5b17fd2e9b7ea6cf04727487b5322.tar.gz |
reply: handle address obfuscation :<
We can show users a lightly-obfuscated Bourne shell command for invoking "git send-email" for address obfuscation. However, I'm not sure if the mailto: arg will work effectively since URL encoding is probably too well-known to be effective.
Diffstat (limited to 'lib/PublicInbox/View.pm')
-rw-r--r-- | lib/PublicInbox/View.pm | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 687a0acb..1e2bcd53 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -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 } |