This file is indexed.

/usr/share/perl5/Net/Server/Mail/ESMTP/PIPELINING.pm is in libnet-server-mail-perl 0.22-1ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
package Net::Server::Mail::ESMTP::PIPELINING;

use 5.006;
use strict;
use base 'Net::Server::Mail::ESMTP::Extension';
use constant GROUP_COMMANDS => [qw(RSET MAIL SEND SOML SAML RCPT)];
use Scalar::Util qw(weaken);

our $VERSION = 0.13;

sub init {
    my ( $self, $parent ) = @_;
    $self->{parent} = $parent;
    weaken( $self->{parent} );
    return $self;
}

sub extend_mode {
    my ( $self, $mode ) = @_;
    if ($mode) {
        $self->{old_process_operation} = $self->{parent}->{process_operation};
        $self->{parent}->{process_operation} = \&process_operation;
        $self->{old_handle_more} = $self->{parent}->{data_handle_more_data};
        $self->{parent}->{data_handle_more_data} = 1;
    }
    else {
        if ( exists( $self->{old_process_operation} ) ) {
            $self->{parent}->{process_operation} =
              $self->{old_process_operation};
        }
        if ( exists( $self->{old_handle_more} ) ) {
            $self->{parent}->{data_handle_more_data} = $self->{old_handle_more};
        }
    }
}

sub process_operation {
    my ( $self, $operation ) = @_;
    my @commands = grep( length $_, split( /\r?\n/, $operation ) );
    for ( my $i = 0 ; $i <= $#commands ; $i++ ) {
        my ( $verb, $params ) = $self->tokenize_command( $commands[$i] );

        # Once the client SMTP has confirmed that support exists for
        # the pipelining extension, the client SMTP may then elect to
        # transmit groups of SMTP commands in batches without waiting
        # for a response to each individual command. In particular,
        # the commands RSET, MAIL FROM, SEND FROM, SOML FROM, SAML
        # FROM, and RCPT TO can all appear anywhere in a pipelined
        # command group.  The EHLO, DATA, VRFY, EXPN, TURN, QUIT, and
        # NOOP commands can only appear as the last command in a group
        # since their success or failure produces a change of state
        # which the client SMTP must accommodate. (NOOP is included in
        # this group so it can be used as a synchronization point.)
        if ( $i < $#commands && not grep( $verb eq $_, @{ (GROUP_COMMANDS) } ) )
        {
            $self->reply( 550,
                "Protocol error: `$verb' not allowed in a group of commands" );
            return;
        }

        my $rv = $self->process_command( $verb, $params );
        return $rv if defined $rv;
    }
    return;
}

sub keyword {
    return 'PIPELINING';
}

1;