File: 10_qpnames.t

package info (click to toggle)
libmail-mboxparser-perl 0.55-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 404 kB
  • sloc: perl: 1,011; makefile: 2
file content (19 lines) | stat: -rwxr-xr-x 405 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use utf8;
use Test;
use File::Spec;
use strict;

use Mail::MboxParser;
my $src = File::Spec->catfile('t', 'qpname');

BEGIN { plan tests => 1 };

my $mb = Mail::MboxParser->new($src);
my ($msg) = $mb->get_messages;

my $att = $msg->get_attachments;
skip(&Mail::MboxParser::Mail::HAVE_MIMEWORDS ? 0 : "Mime::Words not installed",
     defined $msg->get_attachments("test şğüıçö characters.txt"));