This file is indexed.

/usr/share/doc/libmime-tools-perl/examples/mimeencode is in libmime-tools-perl 5.502-1.

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

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
#!/usr/bin/perl -w

=head1 NAME

mimeencode - encode a file

=head1 SYNOPSIS

    mimeencode
        Give usage.
     
    mimeencode [-d] encoding <infile >outfile
        Encode/decode stdin to stdout.

=head1 DESCRIPTION

Encode (or, with -d, decode) stdin with the given encoding, 
writing results to stdout.
 
This does not do MIME parsing; it merely exercises the decoder
modules.

=head1 AUTHOR

Eryq, eryq@zeegee.com

=cut

use lib "./lib";
use strict;
use Getopt::Std;

use vars qw($opt_d);
use MIME::Decoder;

# Usage?
$ARGV[0] or die <<EOF;

Usage:
    mimeencode [-d] encoding <infile >outfile

EOF

# Args:
getopts("d");
my $enc = shift @ARGV;

# Get decoder:
my $decoder = new MIME::Decoder $enc or die "unsupported encoding ($enc)\n";

# Do it!
my $action = ($opt_d ? 'decode' : 'encode');
$decoder->$action(\*STDIN, \*STDOUT);

1;