PerMsgHandler/Message.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 15 / 15 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« PerMsgHandler/Control.pm ↑ Summary
1 package Net::POP3::PerMsgHandler::Message;
2  
3 =head1 NAME
4  
5 Net::POP3::PerMsgHandler::Message - object for per_message callback
6  
7 =head1 VERSION
8  
9 Version 0.01
10  
11 =cut
12  
13 2 our $VERSION = '0.01';
14  
15 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
17  
18 2 ▶use base qw(Class::Accessor::Fast);
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20 2 __PACKAGE__->mk_accessors(
21 qw/
22 size
23 rfc2822
24 array_ref
25 email_mime
26 email_mime_stripped
27 mail_message
28 mail_message_stripped
29 /
30 );
31  
32 =head1 FUNCTIONS
33  
34 =head2 size
35  
36 return message length.
37  
38 =head2 rfc2822
39  
40 return message as RFC2822 format strings. (Envelope-from, headers and body)
41  
42 =head2 array_ref
43  
44 returns a reference to an array which contains the lines of message read from the server.
45  
46 =head2 email_mime
47  
48 returns Email::MIME instance.
49  
50 =head2 email_mime_stripped
51  
52 returns Email::MIME instance stripped by Email::MIME::Attachment::Stripper.
53  
54 =head2 mail_message
55  
56 returns Mail::Message instance.
57  
58 =head2 mail_message_stripped
59  
60 returns Mail::Message instance stripped by Mail::Message::Attachment::Stripper.
61  
62 =head1 SEE ALSO
63  
64 L<Net::POP3::PerMsgHandler>, L<Net::POP3>, L<Email::MIME>, L<Email::MIME::Attachment::Stripper>, L<Mail::Message>, L<Mail::Message::Attachment::Stripper>
65  
66 =head1 AUTHOR
67  
68 bokutin, C<< <bokutin at cpan.org> >>
69  
70 =head1 COPYRIGHT & LICENSE
71  
72 Copyright 2007 bokutin, all rights reserved.
73  
74 This program is free software; you can redistribute it and/or modify it
75 under the same terms as Perl itself.
76  
77 =cut
78  
79 2 1;
« PerMsgHandler/Control.pm ↑ Summary