blob: 778ed4a516abed97892b0638a94829a72a8b1cdd (
plain)
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
|
#-*- perl -*-
#
# Copyright (C) 2001,2002,2004 Ken'ichi Fukamachi
# All rights reserved. This program is free software; you can
# redistribute it and/or modify it under the same terms as Perl itself.
#
# $FML: Parse.pm,v 1.8 2002/09/22 14:57:04 fukachan Exp $
#
package Mail::Message::Parse;
use strict;
use vars qw(@ISA);
use Carp;
use Mail::Message;
@ISA = qw(Mail::Message);
# Descriptions: fake constructor.
# run Mail::Message->parse($args) in fact.
# Arguments: OBJ($self) HASH_REF($args)
# Side Effects: none
# Return Value: OBJ
sub new
{
my ($self, $args) = @_;
return Mail::Message->parse($args);
}
=head1 NAME
Mail::Message::Parse - parse a mail message
=head1 SYNOPSIS
use Mail::Message::Parse;
my $fh = new Mail::Message::Parse $args;
where C<$args> is same as one of C<Mail::Message>'s C<parse()>.
=head1 DESCRIPTION
just a wrapper for C<Mail::Message> parser function.
=head1 CODING STYLE
See C<http://www.fml.org/software/FNF/> on fml coding style guide.
=head1 AUTHOR
Ken'ichi Fukamachi
=head1 COPYRIGHT
Copyright (C) 2001,2002,2004 Ken'ichi Fukamachi
All rights reserved. This program is free software; you can
redistribute it and/or modify it under the same terms as Perl itself.
=head1 HISTORY
Mail::Message::Parse first appeared in fml8 mailing list driver package.
See C<http://www.fml.org/> for more details.
=cut
1;
|