about summary refs log tree commit homepage
path: root/lib/PublicInbox/LEI.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-10-02 11:18:33 +0000
committerEric Wong <e@80x24.org>2021-10-02 20:09:31 +0000
commit64f6a4c97b05a709de60aea9c3a5f51d7a37f226 (patch)
treeb0be5f5383b06540f2f48a98db9c8ab4931423c3 /lib/PublicInbox/LEI.pm
parent3e096b699243ea7bd9d12fec8f3048104e462802 (diff)
downloadpublic-inbox-64f6a4c97b05a709de60aea9c3a5f51d7a37f226.tar.gz
This is useful in finding the cause of deduplication bugs,
and possibly the cause of missing threads reported by
Konstantin in <20211001130527.z7eivotlgqbgetzz@meerkat.local>

usage:

  u=https://yhbt.net/lore/all/87czop5j33.fsf@tynnyri.adurom.net/raw
  lei mail-diff $u
Diffstat (limited to 'lib/PublicInbox/LEI.pm')
-rw-r--r--lib/PublicInbox/LEI.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm
index fd592358..51b0e95e 100644
--- a/lib/PublicInbox/LEI.pm
+++ b/lib/PublicInbox/LEI.pm
@@ -203,6 +203,11 @@ our %CMD = ( # sorted in order of importance/use:
         qw(git-dir=s@ cwd! verbose|v+ color:s no-color drq:1 dequote-only:1),
         @diff_opt, @lxs_opt, @net_opt, @c_opt ],
 
+'mail-diff' => [ '--stdin|LOCATION...', 'diff the contents of emails',
+        'stdin|', # /|\z/ must be first for lone dash
+        qw(verbose|v+ color:s no-color raw-header),
+        @diff_opt, @net_opt, @c_opt ],
+
 'add-external' => [ 'LOCATION',
         'add/set priority of a publicinbox|extindex for extra matches',
         qw(boost=i mirror=s inbox-version=i epoch=s verbose|v+),