user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
a97dbde6456fd558c896367207e26a1b34396661 blob 457 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 
# Copyright (C) 2020 all contributors <meta@public-inbox.org>
# License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>

package PublicInbox::NoopFilter;
use strict;

sub new { bless \(my $self = ''), __PACKAGE__ }

# noop workalike for PublicInbox::GzipFilter methods
sub translate {
	my $self = $_[0];
	my $ret = $$self .= ($_[1] // '');
	$$self = '';
	$ret;
}

sub zmore {
	${$_[0]} .= $_[1];
	undef;
}

sub zflush { translate($_[0], $_[1]) }

1;
debug log:

solving a97dbde64 ...
found a97dbde64 in https://80x24.org/public-inbox.git

Code repositories for project(s) associated with this inbox:

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).