}
$ibx->with_umask(sub {
+ my $amsg = mime_load 't/search-amsg.eml', sub {
my $part1 = Email::MIME->create(
attributes => {
content_type => 'text/plain',
},
body_str => 'inside another',
);
- my $amsg = Email::MIME->create(
+ Email::MIME->create(
header_str => [
Subject => 'see attachment',
'Message-ID' => '<file@attached>',
To => 'list@example.com',
],
parts => [ $part1, $part2 ],
- );
+ )}; # mime_load sub
+
ok($rw->add_message($amsg), 'added attachment');
$rw_commit->();
$ro->reopen;