This file is indexed.

/usr/share/perl5/Octopussy/Plugin/Email.pm is in octopussy 1.0.6-0ubuntu2.

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
# $HeadURL$
# $Revision: 321 $
# $Date: 2010-02-26 18:27:48 +0000 (Fri, 26 Feb 2010) $
# $Author: sebthebert $

=head1 NAME

Octopussy::Plugin::Email - Octopussy Plugin Email

=cut

package Octopussy::Plugin::Email;

use strict;
use warnings;

use Octopussy;

my $RE_EMAIL = qr/^(.+)\@(.+)$/;

=head1 FUNCTIONS

=head2 Init(\%conf)

=cut

sub Init
{
}

=head2 Domain($email)

Returns Email Address Domain (ex: someone@somewhere.org -> somewhere.org)

=cut

sub Domain
{
  my $email = shift;

  if ($email =~ $RE_EMAIL)
  {
    return ($2);
  }
}

=head2 User($email)

Returns Email Address User (ex: someone@somewhere.org -> someone)

=cut

sub User
{
  my $email = shift;

  if ($email =~ $RE_EMAIL)
  {
    return ($1);
  }
}

1;

=head1 AUTHOR

Sebastien Thebert <octo.devel@gmail.com>

=cut