]> Sergey Matveev's repositories - public-inbox.git/commit
v2writable: implement ->replace call
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>
Sun, 9 Jun 2019 02:51:40 +0000 (02:51 +0000)
committerEric Wong <e@80x24.org>
Sun, 9 Jun 2019 04:33:16 +0000 (04:33 +0000)
commit60321ef7c5e8c2abc395bebadadf77d789a06945
tree8847cb8fa5be942619d8ebcaf1956c10a8b298b8
parentcfff674918e8fc3e0763ac4818c07e0ba7fa716e
v2writable: implement ->replace call

Much of the existing purge code is repurposed to a general
"replace" functionality.

->purge is simpler because it can just drop the information.
Unlike ->purge, ->replace needs to edit existing git commits (in
case of From: and Subject: headers) and reindex the modified
message.

We currently disallow editing of References:, In-Reply-To: and
Message-ID headers because it can cause bad side effects with
our threading (and our lack of rethreading support to deal with
excessive matching from incorrect/invalid References).
MANIFEST
lib/PublicInbox/Import.pm
lib/PublicInbox/V2Writable.pm
t/replace.t [new file with mode: 0644]