diff options
author | Eric Wong <e@80x24.org> | 2017-06-23 20:23:07 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2017-06-23 22:28:46 +0000 |
commit | 1a8eb0a43c68e64b77fdd3c4ebd977a1ab88e71b (patch) | |
tree | d60151d9613f6603b4cca5f62410eaac2a344dba /lib/PublicInbox/SearchView.pm | |
parent | bde2d8c8de65a4d6b06e8d7365f504f2d8db90a6 (diff) | |
download | public-inbox-1a8eb0a43c68e64b77fdd3c4ebd977a1ab88e71b.tar.gz |
We will also treat all known list addresses as non-obfuscated. By setting publicinbox.noObfuscate in ~/.public-inbox/config, this will allow users to disable address obfuscation on a per-domain or per-address basis.
Diffstat (limited to 'lib/PublicInbox/SearchView.pm')
-rw-r--r-- | lib/PublicInbox/SearchView.pm | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/PublicInbox/SearchView.pm b/lib/PublicInbox/SearchView.pm index 777710e3..a5974034 100644 --- a/lib/PublicInbox/SearchView.pm +++ b/lib/PublicInbox/SearchView.pm @@ -89,7 +89,8 @@ sub mset_summary { my $pfx = ' ' x $pad; my $res = \($ctx->{-html_tip}); my $srch = $ctx->{srch}; - my $obfs = $ctx->{-inbox}->{obfuscate}; + my $ibx = $ctx->{-inbox}; + my $obfs_ibx = $ibx->{obfuscate} ? $ibx : undef; foreach my $m ($mset->items) { my $rank = sprintf("%${pad}d", $m->get_rank + 1); my $pct = $m->get_percent; @@ -103,9 +104,9 @@ sub mset_summary { } my $s = ascii_html($smsg->subject); my $f = ascii_html($smsg->from_name); - if ($obfs) { - obfuscate_addrs($s); - obfuscate_addrs($f); + if ($obfs_ibx) { + obfuscate_addrs($obfs_ibx, $s); + obfuscate_addrs($obfs_ibx, $f); } my $ts = PublicInbox::View::fmt_ts($smsg->ts); my $mid = PublicInbox::Hval->new_msgid($smsg->mid)->{href}; |