File: iis-multiple-bounce.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 (22 lines) | stat: -rwxr-xr-x 476 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
21
22
#!perl -wT
use strict;

use Test::More;

use lib 't';
use TestBounceParser;

# Test an issue reported by Chris Dragon, where a bounce generated by
# the IIS SMTP service generates bounces with 2 "\n"s between
# recipients, causing MBP to only "see" one report.

check_report(
    't/corpus/iis-multiple-bounce.msg',
    is_bounce => 1,
    addresses => [
        qw(bounced1@example.net bounced2@example.net bounced3@example.net bounced4@example.net)
    ]
);

done_testing;