From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 036D91F461; Thu, 27 Jun 2019 18:52:37 +0000 (UTC) Date: Thu, 27 Jun 2019 18:52:36 +0000 From: Eric Wong To: Konstantin Ryabitsev Cc: meta@public-inbox.org Subject: Re: RFC: marking spam via refs/notes/spam to hide it Message-ID: <20190627185236.2mwuoygclytf5m7x@whir> References: <20190627184251.GC14570@chatter.i7.local> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190627184251.GC14570@chatter.i7.local> List-Id: Konstantin Ryabitsev wrote: > Greetings: > > I'm reluctant to delete spam because it rebases the repository -- for large > ones this can cause excessive downloads to mirrors. A thought occurred to me > -- would it make sense to just hide spam from the frontend? E.g.: > > public-inbox-hide linux-kernel message@id > > This would do the following: > > - remove that message from search databases > - attach a refs/notes/spam git-note to that commit > - tell public-inbox-init/reindex to ignore this commit in the future Aside from the git note, public-inbox-learn already does that: public-inbox-learn spam Seems like it would be easy to do and would give a way to remove spam > without needing to edit git history. It appends to git history, v2 changes the 'm' file to a 'd' file with the corresponding blob; v1 removes the file from the tree. It doesn't add blobs to git history, but there'll be new tree and commit objects. There's no rebasing at all. public-inbox-index has always handled unindexing it in mirrors, too.