File: postfix-malformed.t

package info (click to toggle)
libmail-deliverystatus-bounceparser-perl 1.542%2Brepacked-1~deb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,044 kB
  • sloc: perl: 1,684; makefile: 2
file content (20 lines) | stat: -rwxr-xr-x 420 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!perl -wT
use strict;

use Test::More;

use lib 't';
use TestBounceParser;

# Test a postfix message where we got a DNS failure
# not marked as domain_error before this test added

check_report(
    't/corpus/postfix-malformed.msg',
    is_bounce       => 1,
    addresses       => ['exampleuser@yyahoo.com'],
    orig_message_id => '<42@server4.example.co.uk>',
    std_reason      => 'domain_error'
);

done_testing;