File: preserve-linefeed.t

package info (click to toggle)
libemail-simple-perl 2.004-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 232 kB
  • ctags: 27
  • sloc: perl: 615; makefile: 41
file content (19 lines) | stat: -rw-r--r-- 359 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/perl -w

use strict;
use Test::More tests => 3;

use_ok( 'Email::Simple' );

my $original = <<'EOM';
subject:
 =?utf-8?B?ZGVsLmljaW8udXMvbmV0d29yay9qb2VlIC0gW2Zyb20gbWlqaXRdIEJMQiBFY2MgMw==?=
content-type: text/plain

empty body
EOM

my $mail = Email::Simple->new( $original );
isa_ok( $mail, 'Email::Simple' );

is( $mail->as_string, $original );