Filter/Module/MIMEParts.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 26 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #
2 # Courier::Filter::Module::MIMEParts class
3 #
4 # (C) 2003-2008 Julian Mehnle <julian@mehnle.net>
5 # $Id: MIMEParts.pm 210 2008-03-21 19:30:31Z julian $
6 #
7 ###############################################################################
8  
9 =head1 NAME
10  
11 Courier::Filter::Module::MIMEParts - Message (MIME multipart and ZIP archive)
12 parts filter module for the Courier::Filter framework
13  
14 =cut
15  
16 package Courier::Filter::Module::MIMEParts;
17  
18 use warnings;
19 use strict;
20  
21 use base 'Courier::Filter::Module::Parts';
22  
23 use constant TRUE => (0 == 0);
24 use constant FALSE => not TRUE;
25  
26 =head1 DESCRIPTION
27  
28 As of Courier::Filter 0.13, the B<MIMEParts> filter module is I<deprecated> in
29 favor of the new B<Parts> filter module, which is compatible but a lot more
30 powerful. The B<MIMEParts> module will be removed in Courier::Filter 0.20.
31 You can still instantiate B<MIMEParts> modules in your config file for now, but
32 what will be created is really nothing more than B<Parts> modules. See
33 L<Courier::Filter::Module::Parts> for the interface description.
34  
35 =cut
36  
37 sub new {
38 my ($class, %options) = @_;
39 STDERR->print("Warning: The MIMEParts filter module is deprecated. Use the Parts module instead.\n");
40 return $class->SUPER::new(%options);
41 }
42  
43 =head1 SEE ALSO
44  
45 L<Courier::Filter::Module::Parts>, L<Courier::Filter::Module>,
46 L<Courier::Filter::Overview>.
47  
48 For AVAILABILITY, SUPPORT, and LICENSE information, see
49 L<Courier::Filter::Overview>.
50  
51 =head1 AUTHOR
52  
53 Julian Mehnle <julian@mehnle.net>
54  
55 =cut
56  
57 TRUE;