Branch Coverage

lib/Sisimai/Lhost/ApacheJames.pm
Criterion Covered Total %
branch 32 44 72.7


line true false branch
18 0 886 if $mhead->{'subject'} eq "[BOUNCE]"
19 6 880 if defined $mhead->{'message-id'} and rindex($mhead->{'message-id'}, ".JavaMail.") != -1
20 0 886 if grep {rindex($_, "JAMES SMTP Server") != -1;} @{$$mhead{"received"}}
21 880 6 unless $match
41 36 48 unless ($readcursor)
43 6 30 if (index($e, $startingof->{'message'}[0]) == 0)
48 18 12 if $e ne ""
51 0 48 if ($readcursor & $indicators->{'deliverystatus'}) == 0 or $e eq ""
62 6 42 if (index($e, ' RCPT TO: ') == 0) { }
6 36 elsif (index($e, ' Sent date: ') == 0) { }
6 30 elsif (index($e, ' Subject: ') == 0) { }
6 24 elsif (index($e, ' MAIL FROM: ') == 0) { }
6 18 elsif (index($e, ' From: ') == 0) { }
64 0 6 if ($v->{'recipient'})
90 0 6 unless $recipients
92 6 0 if ($emailparts->[1] eq "")
94 6 0 if $alternates->[1] ne ""
95 6 0 if $alternates->[2] ne ""
97 6 0 if (index($emailparts->[1], "Return-Path: ") == -1)
99 6 0 if $alternates->[0] ne ""
101 6 0 if (index($emailparts->[1], "\nSubject: ") == -1)
103 6 0 if $alternates->[3] ne ""