diff options
author | Eric Wong <e@80x24.org> | 2015-09-02 02:37:22 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-09-02 06:50:25 +0000 |
commit | 1151816fc42c7d69c2417d58abb31d214ad06780 (patch) | |
tree | 2333a836a559f4d99424f75f6daf3acd57749ee9 /lib/PublicInbox/Hval.pm | |
parent | 7ce4210ceb2a150e20e48676d8b635f6d2ed471f (diff) | |
download | public-inbox-1151816fc42c7d69c2417d58abb31d214ad06780.tar.gz |
Compressed Message-IDs are irreversible and may not be used at other sites. So avoid compressing Message-IDs we do not know about so users have a chance of finding the message in other archives by doing a Message-ID lookup.
Diffstat (limited to 'lib/PublicInbox/Hval.pm')
-rw-r--r-- | lib/PublicInbox/Hval.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/Hval.pm b/lib/PublicInbox/Hval.pm index 21efe40e..0445e575 100644 --- a/lib/PublicInbox/Hval.pm +++ b/lib/PublicInbox/Hval.pm @@ -25,9 +25,9 @@ sub new { } sub new_msgid { - my ($class, $msgid) = @_; + my ($class, $msgid, $no_compress) = @_; $msgid = mid_clean($msgid); - $class->new($msgid, mid_compress($msgid)); + $class->new($msgid, $no_compress ? $msgid : mid_compress($msgid)); } sub new_oneline { |