| 1 | package Email::Send::Qmail; | ||||||||||||
| 2 | # $Id: Qmail.pm,v 1.3 2005/05/11 03:01:25 cwest Exp $ | ||||||||||||
| 3 | 1 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 4 | |||||||||||||
| 5 | 1 | ▶ | use vars qw[$QMAIL]; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 6 | 1 | ▶ | $QMAIL ||= q[qmail-inject]; | ||||||||||
|
Condition50%1/2
$Email::Send::Qmail::QMAIL ||= "qmail-inject"
MC/DC0%0/1
$Email::Send::Qmail::QMAIL ||= "qmail-inject"
$Email::Send::Qmail::QMAIL
Truth table50%1/2
A
A= $Email::Send::Qmail::QMAIL
| |||||||||||||
| 7 | |||||||||||||
| 8 | 1 | ▶ | use Return::Value; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 9 | |||||||||||||
| 10 | sub is_available { | ||||||||||||
| 11 | 0 | ▶ | return `which $QMAIL` | ||||||||||
|
Subroutine
is_available: not called CC=2 SCAR=17.9
Pod
undocumented
Branch: 1 branch
| |||||||||||||
| 12 | ? success | ||||||||||||
| 13 | : failure; | ||||||||||||
| 14 | } | ||||||||||||
| 15 | |||||||||||||
| 16 | sub send { | ||||||||||||
| 17 | 0 | ▶ | my ($class, $message, @args) = @_; | ||||||||||
|
Subroutine
send: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||
| 18 | 0 | ▶ | open QMAIL, "| $QMAIL @args" or return failure; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 19 | 0 | print QMAIL $message->as_string; | |||||||||||
| 20 | 0 | close QMAIL; | |||||||||||
| 21 | 0 | return success; | |||||||||||
| 22 | } | ||||||||||||
| 23 | |||||||||||||
| 24 | 1 | 1; | |||||||||||
| 25 | |||||||||||||
| 26 | __END__ | ||||||||||||