| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
# Mail::MboxParser - object-oriented access to UNIX-mailboxes |
|
2
|
|
|
|
|
|
|
# base-class for all other classes in Mail::MboxParser |
|
3
|
|
|
|
|
|
|
# |
|
4
|
|
|
|
|
|
|
# Copyright (C) 2001 Tassilo v. Parseval |
|
5
|
|
|
|
|
|
|
# This program is free software; you can redistribute it and/or |
|
6
|
|
|
|
|
|
|
# modify it under the same terms as Perl itself. |
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
# Version: $Id: Base.pm,v 1.6 2002/02/21 09:06:14 parkerpine Exp $ |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
package Mail::MboxParser::Base; |
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
require 5.004; |
|
13
|
|
|
|
|
|
|
|
|
14
|
19
|
|
|
19
|
|
125
|
use strict; |
|
|
19
|
|
|
|
|
39
|
|
|
|
19
|
|
|
|
|
784
|
|
|
15
|
19
|
|
|
19
|
|
97
|
use vars qw($VERSION); |
|
|
19
|
|
|
|
|
34
|
|
|
|
19
|
|
|
|
|
2413
|
|
|
16
|
|
|
|
|
|
|
$VERSION = "0.07"; |
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub new(@) { |
|
19
|
190
|
|
|
190
|
0
|
2304
|
my ($class, @args) = @_; |
|
20
|
|
|
|
|
|
|
|
|
21
|
190
|
50
|
|
|
|
551
|
if ($class eq __PACKAGE__) { |
|
22
|
19
|
|
|
19
|
|
110
|
use Carp; |
|
|
19
|
|
|
|
|
34
|
|
|
|
19
|
|
|
|
|
4784
|
|
|
23
|
0
|
|
|
|
|
0
|
my $package = __PACKAGE__; |
|
24
|
0
|
|
|
|
|
0
|
croak <
|
|
25
|
|
|
|
|
|
|
$package should not really be instantiated directly. |
|
26
|
|
|
|
|
|
|
Instead, create one of its derived subclasses such as Mail::MboxParser. |
|
27
|
|
|
|
|
|
|
USAGE |
|
28
|
|
|
|
|
|
|
} |
|
29
|
190
|
|
|
|
|
711
|
my $self = bless {}, $class; |
|
30
|
190
|
|
|
|
|
1034
|
$self->init(@args); |
|
31
|
|
|
|
|
|
|
} |
|
32
|
|
|
|
|
|
|
|
|
33
|
50
|
|
|
50
|
0
|
222
|
sub error() { shift->{LAST_ERR} } |
|
34
|
|
|
|
|
|
|
|
|
35
|
0
|
|
|
0
|
0
|
0
|
sub log() { shift->{LAST_LOG} } |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
sub reset_last { |
|
38
|
1475
|
|
|
1475
|
0
|
1765
|
my $self = shift; |
|
39
|
1475
|
|
|
|
|
9326
|
($self->{LAST_ERR}, $self->{LAST_LOG}) = (undef, undef); |
|
40
|
|
|
|
|
|
|
} |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
1; |
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
__END__ |