blib/lib/Emailesque.pm

filter: Statementstmt 22.5% 88 / 390 Branchbran 7.0% 23 / 328 Conditioncond 20.8% 10 / 48 MC/DCmcdc 0.0% 0 / 27 Subroutinesub 9.5% 14 / 146 Podpod 97.7% 133 / 136 totaltotal 24.9% 268 / 1075 SCAR 100.0
CC
191
Cov
16%
prepare_package
668.0
header
20.0
accept_language
6.0
CRAP 21971.1
↑ Summary
1 # ABSTRACT: Lightweight To-The-Point Email
2 package Emailesque;
3  
4 2 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use File::Slurp;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 ▶use Email::AddressParser;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 ▶use Email::Sender::Transport::Sendmail;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 2 ▶use Email::Sender::Transport::SMTP;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 2 ▶use Email::Stuffer;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 2 ▶use Hash::Merge::Simple;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 2 ▶use Exporter 'import';
Subroutine BEGIN: called CC=1 SCAR=0.0
13 2 our @EXPORT_OK = qw(email);
14  
15 2 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 2 our $VERSION = '1.26'; # VERSION
18  
19 my %headers = map {
20 2 my $name = lc $_;
21 366 $name =~ s/\W+/_/g;
22 366 $name => $_;
23 }
24 my @headers = (
25 my @kheaders = (
26 'Accept-Language',
27 'Alternate-Recipient',
28 'Apparently-To',
29 'Archived-At',
30 'Authentication-Results',
31 'Auto-Submitted',
32 'Autoforwarded',
33 'Autosubmitted',
34 'Bcc',
35 'Cc',
36 'Comments',
37 'Content-Identifier',
38 'Content-Return',
39 'Conversion-With-Loss',
40 'Conversion',
41 'DKIM-Signature',
42 'DL-Expansion-History',
43 'Date',
44 'Deferred-Delivery',
45 'Delivery-Date',
46 'Discarded-X400-IPMS-Extensions',
47 'Discarded-X400-MTS-Extensions',
48 'Disclose-Recipients',
49 'Disposition-Notification-Options',
50 'Disposition-Notification-To',
51 'Downgraded-Bcc',
52 'Downgraded-Cc',
53 'Downgraded-Disposition-Notification-To',
54 'Downgraded-Final-Recipient',
55 'Downgraded-From',
56 'Downgraded-In-Reply-To',
57 'Downgraded-Mail-From',
58 'Downgraded-Message-Id',
59 'Downgraded-Original-Recipient',
60 'Downgraded-Rcpt-To',
61 'Downgraded-References',
62 'Downgraded-Reply-To',
63 'Downgraded-Resent-Bcc',
64 'Downgraded-Resent-Cc',
65 'Downgraded-Resent-From',
66 'Downgraded-Resent-Reply-To',
67 'Downgraded-Resent-Sender',
68 'Downgraded-Resent-To',
69 'Downgraded-Return-Path',
70 'Downgraded-Sender',
71 'Downgraded-To',
72 'EDIINT-Features',
73 'Encoding',
74 'Encrypted',
75 'Errors-To',
76 'Expires',
77 'Expiry-Date',
78 'From',
79 'Generate-Delivery-Report',
80 'Importance',
81 'In-Reply-To',
82 'Incomplete-Copy',
83 'Jabber-ID',
84 'Keywords',
85 'Language',
86 'Latest-Delivery-Time',
87 'List-Archive',
88 'List-Help',
89 'List-ID',
90 'List-Owner',
91 'List-Post',
92 'List-Subscribe',
93 'List-Unsubscribe',
94 'MMHS-Acp127-Message-Identifier',
95 'MMHS-Codress-Message-Indicator',
96 'MMHS-Copy-Precedence',
97 'MMHS-Exempted-Address',
98 'MMHS-Extended-Authorisation-Info',
99 'MMHS-Handling-Instructions',
100 'MMHS-Message-Instructions',
101 'MMHS-Message-Type',
102 'MMHS-Originator-PLAD',
103 'MMHS-Originator-Reference',
104 'MMHS-Other-Recipients-Indicator-CC',
105 'MMHS-Other-Recipients-Indicator-To',
106 'MMHS-Primary-Precedence',
107 'MMHS-Subject-Indicator-Codes',
108 'MT-Priority',
109 'Message-Context',
110 'Message-ID',
111 'Message-Type',
112 'Obsoletes',
113 'Original-Encoded-Information-Types',
114 'Original-From',
115 'Original-Message-ID',
116 'Original-Recipient',
117 'Original-Subject',
118 'Originator-Return-Address',
119 'PICS-Label',
120 'Prevent-NonDelivery-Report',
121 'Priority',
122 'Privicon',
123 'Received-SPF',
124 'Received',
125 'References',
126 'Reply-By',
127 'Reply-To',
128 'Require-Recipient-Valid-Since',
129 'Resent-Bcc',
130 'Resent-Cc',
131 'Resent-Date',
132 'Resent-From',
133 'Resent-Message-ID',
134 'Resent-Reply-To',
135 'Resent-Sender',
136 'Resent-To',
137 'Return-Path',
138 'SIO-Label-History',
139 'SIO-Label',
140 'Sender',
141 'Sensitivity',
142 'Solicitation',
143 'Subject',
144 'Supersedes',
145 'To',
146 'VBR-Info',
147 'X-Archived-At',
148 'X400-Content-Identifier',
149 'X400-Content-Return',
150 'X400-Content-Type',
151 'X400-MTS-Identifier',
152 'X400-Originator',
153 'X400-Received',
154 'X400-Recipients',
155 'X400-Trace',
156 ),
157 my @xheaders = (
158 'X-Abuse-Info',
159 'X-Accept-Language',
160 'X-Admin',
161 'X-Article-Creation-Date',
162 'X-Attribution',
163 'X-Authenticated-IP',
164 'X-Authenticated-Sender',
165 'X-Authentication-Warning',
166 'X-Cache',
167 'X-Comments',
168 'X-Complaints-To',
169 'X-Confirm-reading-to',
170 'X-Envelope-From',
171 'X-Envelope-To',
172 'X-Face',
173 'X-Flags',
174 'X-Folder',
175 'X-IMAP',
176 'X-Last-Updated',
177 'X-List-Host',
178 'X-Listserver',
179 'X-Loop',
180 'X-Mailer',
181 'X-Mailer-Info',
182 'X-Mailing-List',
183 'X-MIME-Autoconverted',
184 'X-MimeOLE',
185 'X-MIMETrack',
186 'X-MSMail-Priority',
187 'X-MyDeja-Info',
188 'X-Newsreader',
189 'X-NNTP-Posting-Host',
190 'X-No-Archive',
191 'X-Notice',
192 'X-Orig-Message-ID',
193 'X-Original-Envelope-From',
194 'X-Original-NNTP-Posting-Host',
195 'X-Original-Trace',
196 'X-OriginalArrivalTime',
197 'X-Originating-IP',
198 'X-PMFLAGS',
199 'X-Posted-By',
200 'X-Posting-Agent',
201 'X-Priority',
202 'X-RCPT-TO',
203 'X-Report',
204 'X-Report-Abuse-To',
205 'X-Sender',
206 'X-Server-Date',
207 'X-Trace',
208 'X-URI',
209 'X-URL',
210 'X-X-Sender',
211 ),
212 );
213  
214 around new => sub {
215 6 ▶ my ($orig, $class, @args) = @_;
Subroutine __ANON__: called CC=5 SCAR=16.6
216 6 ▶ my $data = @args % 2 ? $args[0] : {@args};
Branch: 1 branch
BranchTrueFalseTotal
@args % 2 ? : 3 3 6
217 6 ▶ $data = {} unless ref($data) eq 'HASH';
Branch: 1 branch
BranchTrueFalseTotal
unless ref $data eq "HASH" 0 6 6
218 6 my $self = $class->$orig($data);
219 6 ▶ $self->{$_} //= $data->{$_} for keys %{$data};
Condition33%1/3
$self->{$_} //= $data->{$_}
l!l&&r!l&&!r
040
MC/DC0%0/2
$self->{$_} //= $data->{$_}
$self->{$_} $data->{$_}
Truth table33%1/3
A //= B
A= $self->{$_}B= $data->{$_}
ABresult
1X1
011
000
220 6 return $self;
221 2 };
222  
223 sub email {
224 1 ▶ unshift @_, __PACKAGE__->new({}) and goto &send;
Subroutine email: called CC=2 SCAR=7.6
Pod undocumented
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, __PACKAGE__->new({}) and goto \&Emailesque::send 1 0 1
225 }
226  
227 sub message {
228 0 ▶ my ($self, $argument) = @_;
Subroutine message: not called CC=1 SCAR=6.9
Pod documented
229 0 return $self->{message} = $argument;
230 }
231  
232 sub send {
233 3 ▶ my ($self, $options, @arguments) = @_;
Subroutine send: called CC=1 SCAR=0.0
Pod documented
234 3 my $package = $self->prepare_package($options, @arguments);
235 3 return $package->send;
236 }
237  
238 sub accept_language {
239 0 ▶ my $name = 'Accept-Language';
Subroutine accept_language: not called CC=2 SCAR=17.9
Pod documented
240 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
241 }
242  
243 sub alternate_recipient {
244 0 ▶ my $name = 'Alternate-Recipient';
Subroutine alternate_recipient: not called CC=2 SCAR=17.9
Pod documented
245 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
246 }
247  
248 sub apparently_to {
249 0 ▶ my $name = 'Apparently-To';
Subroutine apparently_to: not called CC=2 SCAR=17.9
Pod documented
250 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
251 }
252  
253 sub archived_at {
254 0 ▶ my $name = 'Archived-At';
Subroutine archived_at: not called CC=2 SCAR=17.9
Pod documented
255 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
256 }
257  
258 sub authentication_results {
259 0 ▶ my $name = 'Authentication-Results';
Subroutine authentication_results: not called CC=2 SCAR=17.9
Pod documented
260 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
261 }
262  
263 sub auto_submitted {
264 0 ▶ my $name = 'Auto-Submitted';
Subroutine auto_submitted: not called CC=2 SCAR=17.9
Pod documented
265 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
266 }
267  
268 sub autoforwarded {
269 0 ▶ my $name = 'Autoforwarded';
Subroutine autoforwarded: not called CC=2 SCAR=17.9
Pod documented
270 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
271 }
272  
273 sub autosubmitted {
274 0 ▶ my $name = 'Autosubmitted';
Subroutine autosubmitted: not called CC=2 SCAR=17.9
Pod documented
275 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
276 }
277  
278 sub bcc {
279 0 ▶ my $name = 'Bcc';
Subroutine bcc: not called CC=2 SCAR=17.9
Pod documented
280 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
281 }
282  
283 sub cc {
284 0 ▶ my $name = 'Cc';
Subroutine cc: not called CC=2 SCAR=17.9
Pod documented
285 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
286 }
287  
288 sub comments {
289 0 ▶ my $name = 'Comments';
Subroutine comments: not called CC=2 SCAR=17.9
Pod documented
290 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
291 }
292  
293 sub content_identifier {
294 0 ▶ my $name = 'Content-Identifier';
Subroutine content_identifier: not called CC=2 SCAR=17.9
Pod documented
295 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
296 }
297  
298 sub content_return {
299 0 ▶ my $name = 'Content-Return';
Subroutine content_return: not called CC=2 SCAR=17.9
Pod documented
300 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
301 }
302  
303 sub conversion {
304 0 ▶ my $name = 'Conversion';
Subroutine conversion: not called CC=2 SCAR=17.9
Pod documented
305 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
306 }
307  
308 sub conversion_with_loss {
309 0 ▶ my $name = 'Conversion-With-Loss';
Subroutine conversion_with_loss: not called CC=2 SCAR=17.9
Pod documented
310 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
311 }
312  
313 sub dkim_signature {
314 0 ▶ my $name = 'DKIM-Signature';
Subroutine dkim_signature: not called CC=2 SCAR=17.9
Pod documented
315 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
316 }
317  
318 sub dl_expansion_history {
319 0 ▶ my $name = 'DL-Expansion-History';
Subroutine dl_expansion_history: not called CC=2 SCAR=17.9
Pod documented
320 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
321 }
322  
323 sub date {
324 0 ▶ my $name = 'Date';
Subroutine date: not called CC=2 SCAR=17.9
Pod documented
325 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
326 }
327  
328 sub deferred_delivery {
329 0 ▶ my $name = 'Deferred-Delivery';
Subroutine deferred_delivery: not called CC=2 SCAR=17.9
Pod documented
330 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
331 }
332  
333 sub delivery_date {
334 0 ▶ my $name = 'Delivery-Date';
Subroutine delivery_date: not called CC=2 SCAR=17.9
Pod documented
335 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
336 }
337  
338 sub discarded_x400_ipms_extensions {
339 0 ▶ my $name = 'Discarded-X400-IPMS-Extensions';
Subroutine discarded_x400_ipms_extensions: not called CC=2 SCAR=17.9
Pod documented
340 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
341 }
342  
343 sub discarded_x400_mts_extensions {
344 0 ▶ my $name = 'Discarded-X400-MTS-Extensions';
Subroutine discarded_x400_mts_extensions: not called CC=2 SCAR=17.9
Pod documented
345 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
346 }
347  
348 sub disclose_recipients {
349 0 ▶ my $name = 'Disclose-Recipients';
Subroutine disclose_recipients: not called CC=2 SCAR=17.9
Pod documented
350 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
351 }
352  
353 sub disposition_notification_options {
354 0 ▶ my $name = 'Disposition-Notification-Options';
Subroutine disposition_notification_options: not called CC=2 SCAR=17.9
Pod documented
355 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
356 }
357  
358 sub disposition_notification_to {
359 0 ▶ my $name = 'Disposition-Notification-To';
Subroutine disposition_notification_to: not called CC=2 SCAR=17.9
Pod documented
360 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
361 }
362  
363 sub downgraded_bcc {
364 0 ▶ my $name = 'Downgraded-Bcc';
Subroutine downgraded_bcc: not called CC=2 SCAR=17.9
Pod documented
365 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
366 }
367  
368 sub downgraded_cc {
369 0 ▶ my $name = 'Downgraded-Cc';
Subroutine downgraded_cc: not called CC=2 SCAR=17.9
Pod documented
370 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
371 }
372  
373 sub downgraded_disposition_notification_to {
374 0 ▶ my $name = 'Downgraded-Disposition-Notification-To';
Subroutine downgraded_disposition_notification_to: not called CC=2 SCAR=17.9
Pod documented
375 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
376 }
377  
378 sub downgraded_final_recipient {
379 0 ▶ my $name = 'Downgraded-Final-Recipient';
Subroutine downgraded_final_recipient: not called CC=2 SCAR=17.9
Pod documented
380 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
381 }
382  
383 sub downgraded_from {
384 0 ▶ my $name = 'Downgraded-From';
Subroutine downgraded_from: not called CC=2 SCAR=17.9
Pod documented
385 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
386 }
387  
388 sub downgraded_in_reply_to {
389 0 ▶ my $name = 'Downgraded-In-Reply-To';
Subroutine downgraded_in_reply_to: not called CC=2 SCAR=17.9
Pod documented
390 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
391 }
392  
393 sub downgraded_mail_from {
394 0 ▶ my $name = 'Downgraded-Mail-From';
Subroutine downgraded_mail_from: not called CC=2 SCAR=17.9
Pod documented
395 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
396 }
397  
398 sub downgraded_message_id {
399 0 ▶ my $name = 'Downgraded-Message-Id';
Subroutine downgraded_message_id: not called CC=2 SCAR=17.9
Pod documented
400 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
401 }
402  
403 sub downgraded_original_recipient {
404 0 ▶ my $name = 'Downgraded-Original-Recipient';
Subroutine downgraded_original_recipient: not called CC=2 SCAR=17.9
Pod documented
405 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
406 }
407  
408 sub downgraded_rcpt_to {
409 0 ▶ my $name = 'Downgraded-Rcpt-To';
Subroutine downgraded_rcpt_to: not called CC=2 SCAR=17.9
Pod documented
410 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
411 }
412  
413 sub downgraded_references {
414 0 ▶ my $name = 'Downgraded-References';
Subroutine downgraded_references: not called CC=2 SCAR=17.9
Pod documented
415 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
416 }
417  
418 sub downgraded_reply_to {
419 0 ▶ my $name = 'Downgraded-Reply-To';
Subroutine downgraded_reply_to: not called CC=2 SCAR=17.9
Pod documented
420 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
421 }
422  
423 sub downgraded_resent_bcc {
424 0 ▶ my $name = 'Downgraded-Resent-Bcc';
Subroutine downgraded_resent_bcc: not called CC=2 SCAR=17.9
Pod documented
425 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
426 }
427  
428 sub downgraded_resent_cc {
429 0 ▶ my $name = 'Downgraded-Resent-Cc';
Subroutine downgraded_resent_cc: not called CC=2 SCAR=17.9
Pod documented
430 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
431 }
432  
433 sub downgraded_resent_from {
434 0 ▶ my $name = 'Downgraded-Resent-From';
Subroutine downgraded_resent_from: not called CC=2 SCAR=17.9
Pod documented
435 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
436 }
437  
438 sub downgraded_resent_reply_to {
439 0 ▶ my $name = 'Downgraded-Resent-Reply-To';
Subroutine downgraded_resent_reply_to: not called CC=2 SCAR=17.9
Pod documented
440 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
441 }
442  
443 sub downgraded_resent_sender {
444 0 ▶ my $name = 'Downgraded-Resent-Sender';
Subroutine downgraded_resent_sender: not called CC=2 SCAR=17.9
Pod documented
445 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
446 }
447  
448 sub downgraded_resent_to {
449 0 ▶ my $name = 'Downgraded-Resent-To';
Subroutine downgraded_resent_to: not called CC=2 SCAR=17.9
Pod documented
450 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
451 }
452  
453 sub downgraded_return_path {
454 0 ▶ my $name = 'Downgraded-Return-Path';
Subroutine downgraded_return_path: not called CC=2 SCAR=17.9
Pod documented
455 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
456 }
457  
458 sub downgraded_sender {
459 0 ▶ my $name = 'Downgraded-Sender';
Subroutine downgraded_sender: not called CC=2 SCAR=17.9
Pod documented
460 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
461 }
462  
463 sub downgraded_to {
464 0 ▶ my $name = 'Downgraded-To';
Subroutine downgraded_to: not called CC=2 SCAR=17.9
Pod documented
465 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
466 }
467  
468 sub ediint_features {
469 0 ▶ my $name = 'EDIINT-Features';
Subroutine ediint_features: not called CC=2 SCAR=17.9
Pod documented
470 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
471 }
472  
473 sub encoding {
474 0 ▶ my $name = 'Encoding';
Subroutine encoding: not called CC=2 SCAR=17.9
Pod documented
475 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
476 }
477  
478 sub encrypted {
479 0 ▶ my $name = 'Encrypted';
Subroutine encrypted: not called CC=2 SCAR=17.9
Pod documented
480 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
481 }
482  
483 sub errors_to {
484 0 ▶ my $name = 'Errors-To';
Subroutine errors_to: not called CC=2 SCAR=17.9
Pod documented
485 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
486 }
487  
488 sub expires {
489 0 ▶ my $name = 'Expires';
Subroutine expires: not called CC=2 SCAR=17.9
Pod documented
490 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
491 }
492  
493 sub expiry_date {
494 0 ▶ my $name = 'Expiry-Date';
Subroutine expiry_date: not called CC=2 SCAR=17.9
Pod documented
495 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
496 }
497  
498 sub from {
499 0 ▶ my $name = 'From';
Subroutine from: not called CC=2 SCAR=17.9
Pod documented
500 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
501 }
502  
503 sub generate_delivery_report {
504 0 ▶ my $name = 'Generate-Delivery-Report';
Subroutine generate_delivery_report: not called CC=2 SCAR=17.9
Pod documented
505 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
506 }
507  
508 sub importance {
509 0 ▶ my $name = 'Importance';
Subroutine importance: not called CC=2 SCAR=17.9
Pod documented
510 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
511 }
512  
513 sub in_reply_to {
514 0 ▶ my $name = 'In-Reply-To';
Subroutine in_reply_to: not called CC=2 SCAR=17.9
Pod documented
515 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
516 }
517  
518 sub incomplete_copy {
519 0 ▶ my $name = 'Incomplete-Copy';
Subroutine incomplete_copy: not called CC=2 SCAR=17.9
Pod documented
520 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
521 }
522  
523 sub jabber_id {
524 0 ▶ my $name = 'Jabber-ID';
Subroutine jabber_id: not called CC=2 SCAR=17.9
Pod documented
525 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
526 }
527  
528 sub keywords {
529 0 ▶ my $name = 'Keywords';
Subroutine keywords: not called CC=2 SCAR=17.9
Pod documented
530 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
531 }
532  
533 sub language {
534 0 ▶ my $name = 'Language';
Subroutine language: not called CC=2 SCAR=17.9
Pod documented
535 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
536 }
537  
538 sub latest_delivery_time {
539 0 ▶ my $name = 'Latest-Delivery-Time';
Subroutine latest_delivery_time: not called CC=2 SCAR=17.9
Pod documented
540 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
541 }
542  
543 sub list_archive {
544 0 ▶ my $name = 'List-Archive';
Subroutine list_archive: not called CC=2 SCAR=17.9
Pod documented
545 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
546 }
547  
548 sub list_help {
549 0 ▶ my $name = 'List-Help';
Subroutine list_help: not called CC=2 SCAR=17.9
Pod documented
550 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
551 }
552  
553 sub list_id {
554 0 ▶ my $name = 'List-ID';
Subroutine list_id: not called CC=2 SCAR=17.9
Pod documented
555 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
556 }
557  
558 sub list_owner {
559 0 ▶ my $name = 'List-Owner';
Subroutine list_owner: not called CC=2 SCAR=17.9
Pod documented
560 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
561 }
562  
563 sub list_post {
564 0 ▶ my $name = 'List-Post';
Subroutine list_post: not called CC=2 SCAR=17.9
Pod documented
565 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
566 }
567  
568 sub list_subscribe {
569 0 ▶ my $name = 'List-Subscribe';
Subroutine list_subscribe: not called CC=2 SCAR=17.9
Pod documented
570 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
571 }
572  
573 sub list_unsubscribe {
574 0 ▶ my $name = 'List-Unsubscribe';
Subroutine list_unsubscribe: not called CC=2 SCAR=17.9
Pod documented
575 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
576 }
577  
578 sub mmhs_acp127_message_identifier {
579 0 ▶ my $name = 'MMHS-Acp127-Message-Identifier';
Subroutine mmhs_acp127_message_identifier: not called CC=2 SCAR=17.9
Pod documented
580 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
581 }
582  
583 sub mmhs_codress_message_indicator {
584 0 ▶ my $name = 'MMHS-Codress-Message-Indicator';
Subroutine mmhs_codress_message_indicator: not called CC=2 SCAR=17.9
Pod documented
585 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
586 }
587  
588 sub mmhs_copy_precedence {
589 0 ▶ my $name = 'MMHS-Copy-Precedence';
Subroutine mmhs_copy_precedence: not called CC=2 SCAR=17.9
Pod documented
590 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
591 }
592  
593 sub mmhs_exempted_address {
594 0 ▶ my $name = 'MMHS-Exempted-Address';
Subroutine mmhs_exempted_address: not called CC=2 SCAR=17.9
Pod documented
595 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
596 }
597  
598 sub mmhs_extended_authorisation_info {
599 0 ▶ my $name = 'MMHS-Extended-Authorisation-Info';
Subroutine mmhs_extended_authorisation_info: not called CC=2 SCAR=17.9
Pod documented
600 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
601 }
602  
603 sub mmhs_handling_instructions {
604 0 ▶ my $name = 'MMHS-Handling-Instructions';
Subroutine mmhs_handling_instructions: not called CC=2 SCAR=17.9
Pod documented
605 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
606 }
607  
608 sub mmhs_message_instructions {
609 0 ▶ my $name = 'MMHS-Message-Instructions';
Subroutine mmhs_message_instructions: not called CC=2 SCAR=17.9
Pod documented
610 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
611 }
612  
613 sub mmhs_message_type {
614 0 ▶ my $name = 'MMHS-Message-Type';
Subroutine mmhs_message_type: not called CC=2 SCAR=17.9
Pod documented
615 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
616 }
617  
618 sub mmhs_originator_plad {
619 0 ▶ my $name = 'MMHS-Originator-PLAD';
Subroutine mmhs_originator_plad: not called CC=2 SCAR=17.9
Pod documented
620 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
621 }
622  
623 sub mmhs_originator_reference {
624 0 ▶ my $name = 'MMHS-Originator-Reference';
Subroutine mmhs_originator_reference: not called CC=2 SCAR=17.9
Pod documented
625 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
626 }
627  
628 sub mmhs_other_recipients_indicator_cc {
629 0 ▶ my $name = 'MMHS-Other-Recipients-Indicator-CC';
Subroutine mmhs_other_recipients_indicator_cc: not called CC=2 SCAR=17.9
Pod documented
630 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
631 }
632  
633 sub mmhs_other_recipients_indicator_to {
634 0 ▶ my $name = 'MMHS-Other-Recipients-Indicator-To';
Subroutine mmhs_other_recipients_indicator_to: not called CC=2 SCAR=17.9
Pod documented
635 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
636 }
637  
638 sub mmhs_primary_precedence {
639 0 ▶ my $name = 'MMHS-Primary-Precedence';
Subroutine mmhs_primary_precedence: not called CC=2 SCAR=17.9
Pod documented
640 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
641 }
642  
643 sub mmhs_subject_indicator_codes {
644 0 ▶ my $name = 'MMHS-Subject-Indicator-Codes';
Subroutine mmhs_subject_indicator_codes: not called CC=2 SCAR=17.9
Pod documented
645 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
646 }
647  
648 sub mt_priority {
649 0 ▶ my $name = 'MT-Priority';
Subroutine mt_priority: not called CC=2 SCAR=17.9
Pod documented
650 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
651 }
652  
653 sub message_context {
654 0 ▶ my $name = 'Message-Context';
Subroutine message_context: not called CC=2 SCAR=17.9
Pod documented
655 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
656 }
657  
658 sub message_id {
659 0 ▶ my $name = 'Message-ID';
Subroutine message_id: not called CC=2 SCAR=17.9
Pod documented
660 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
661 }
662  
663 sub message_type {
664 0 ▶ my $name = 'Message-Type';
Subroutine message_type: not called CC=2 SCAR=17.9
Pod documented
665 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
666 }
667  
668 sub obsoletes {
669 0 ▶ my $name = 'Obsoletes';
Subroutine obsoletes: not called CC=2 SCAR=17.9
Pod documented
670 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
671 }
672  
673 sub original_encoded_information_types {
674 0 ▶ my $name = 'Original-Encoded-Information-Types';
Subroutine original_encoded_information_types: not called CC=2 SCAR=17.9
Pod documented
675 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
676 }
677  
678 sub original_from {
679 0 ▶ my $name = 'Original-From';
Subroutine original_from: not called CC=2 SCAR=17.9
Pod documented
680 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
681 }
682  
683 sub original_message_id {
684 0 ▶ my $name = 'Original-Message-ID';
Subroutine original_message_id: not called CC=2 SCAR=17.9
Pod documented
685 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
686 }
687  
688 sub original_recipient {
689 0 ▶ my $name = 'Original-Recipient';
Subroutine original_recipient: not called CC=2 SCAR=17.9
Pod documented
690 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
691 }
692  
693 sub original_subject {
694 0 ▶ my $name = 'Original-Subject';
Subroutine original_subject: not called CC=2 SCAR=17.9
Pod documented
695 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
696 }
697  
698 sub originator_return_address {
699 0 ▶ my $name = 'Originator-Return-Address';
Subroutine originator_return_address: not called CC=2 SCAR=17.9
Pod documented
700 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
701 }
702  
703 sub pics_label {
704 0 ▶ my $name = 'PICS-Label';
Subroutine pics_label: not called CC=2 SCAR=17.9
Pod documented
705 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
706 }
707  
708 sub prevent_nondelivery_report {
709 0 ▶ my $name = 'Prevent-NonDelivery-Report';
Subroutine prevent_nondelivery_report: not called CC=2 SCAR=17.9
Pod documented
710 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
711 }
712  
713 sub priority {
714 0 ▶ my $name = 'Priority';
Subroutine priority: not called CC=2 SCAR=17.9
Pod documented
715 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
716 }
717  
718 sub privicon {
719 0 ▶ my $name = 'Privicon';
Subroutine privicon: not called CC=2 SCAR=17.9
Pod documented
720 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
721 }
722  
723 sub received {
724 0 ▶ my $name = 'Received';
Subroutine received: not called CC=2 SCAR=17.9
Pod documented
725 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
726 }
727  
728 sub received_spf {
729 0 ▶ my $name = 'Received-SPF';
Subroutine received_spf: not called CC=2 SCAR=17.9
Pod documented
730 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
731 }
732  
733 sub references {
734 0 ▶ my $name = 'References';
Subroutine references: not called CC=2 SCAR=17.9
Pod documented
735 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
736 }
737  
738 sub reply_by {
739 0 ▶ my $name = 'Reply-By';
Subroutine reply_by: not called CC=2 SCAR=17.9
Pod documented
740 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
741 }
742  
743 sub reply_to {
744 0 ▶ my $name = 'Reply-To';
Subroutine reply_to: not called CC=2 SCAR=17.9
Pod documented
745 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
746 }
747  
748 sub require_recipient_valid_since {
749 0 ▶ my $name = 'Require-Recipient-Valid-Since';
Subroutine require_recipient_valid_since: not called CC=2 SCAR=17.9
Pod documented
750 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
751 }
752  
753 sub resent_bcc {
754 0 ▶ my $name = 'Resent-Bcc';
Subroutine resent_bcc: not called CC=2 SCAR=17.9
Pod documented
755 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
756 }
757  
758 sub resent_cc {
759 0 ▶ my $name = 'Resent-Cc';
Subroutine resent_cc: not called CC=2 SCAR=17.9
Pod documented
760 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
761 }
762  
763 sub resent_date {
764 0 ▶ my $name = 'Resent-Date';
Subroutine resent_date: not called CC=2 SCAR=17.9
Pod documented
765 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
766 }
767  
768 sub resent_from {
769 0 ▶ my $name = 'Resent-From';
Subroutine resent_from: not called CC=2 SCAR=17.9
Pod documented
770 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
771 }
772  
773 sub resent_message_id {
774 0 ▶ my $name = 'Resent-Message-ID';
Subroutine resent_message_id: not called CC=2 SCAR=17.9
Pod documented
775 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
776 }
777  
778 sub resent_reply_to {
779 0 ▶ my $name = 'Resent-Reply-To';
Subroutine resent_reply_to: not called CC=2 SCAR=17.9
Pod documented
780 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
781 }
782  
783 sub resent_sender {
784 0 ▶ my $name = 'Resent-Sender';
Subroutine resent_sender: not called CC=2 SCAR=17.9
Pod documented
785 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
786 }
787  
788 sub resent_to {
789 0 ▶ my $name = 'Resent-To';
Subroutine resent_to: not called CC=2 SCAR=17.9
Pod documented
790 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
791 }
792  
793 sub return_path {
794 0 ▶ my $name = 'Return-Path';
Subroutine return_path: not called CC=2 SCAR=17.9
Pod documented
795 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
796 }
797  
798 sub sio_label {
799 0 ▶ my $name = 'SIO-Label';
Subroutine sio_label: not called CC=2 SCAR=17.9
Pod documented
800 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
801 }
802  
803 sub sio_label_history {
804 0 ▶ my $name = 'SIO-Label-History';
Subroutine sio_label_history: not called CC=2 SCAR=17.9
Pod documented
805 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
806 }
807  
808 sub sender {
809 0 ▶ my $name = 'Sender';
Subroutine sender: not called CC=2 SCAR=17.9
Pod documented
810 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
811 }
812  
813 sub sensitivity {
814 0 ▶ my $name = 'Sensitivity';
Subroutine sensitivity: not called CC=2 SCAR=17.9
Pod documented
815 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
816 }
817  
818 sub solicitation {
819 0 ▶ my $name = 'Solicitation';
Subroutine solicitation: not called CC=2 SCAR=17.9
Pod documented
820 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
821 }
822  
823 sub subject {
824 0 ▶ my $name = 'Subject';
Subroutine subject: not called CC=2 SCAR=17.9
Pod documented
825 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
826 }
827  
828 sub supersedes {
829 0 ▶ my $name = 'Supersedes';
Subroutine supersedes: not called CC=2 SCAR=17.9
Pod documented
830 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
831 }
832  
833 sub to {
834 0 ▶ my $name = 'To';
Subroutine to: not called CC=2 SCAR=17.9
Pod documented
835 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
836 }
837  
838 sub vbr_info {
839 0 ▶ my $name = 'VBR-Info';
Subroutine vbr_info: not called CC=2 SCAR=17.9
Pod documented
840 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
841 }
842  
843 sub x_archived_at {
844 0 ▶ my $name = 'X-Archived-At';
Subroutine x_archived_at: not called CC=2 SCAR=17.9
Pod documented
845 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
846 }
847  
848 sub x400_content_identifier {
849 0 ▶ my $name = 'X400-Content-Identifier';
Subroutine x400_content_identifier: not called CC=2 SCAR=17.9
Pod documented
850 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
851 }
852  
853 sub x400_content_return {
854 0 ▶ my $name = 'X400-Content-Return';
Subroutine x400_content_return: not called CC=2 SCAR=17.9
Pod documented
855 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
856 }
857  
858 sub x400_content_type {
859 0 ▶ my $name = 'X400-Content-Type';
Subroutine x400_content_type: not called CC=2 SCAR=17.9
Pod documented
860 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
861 }
862  
863 sub x400_mts_identifier {
864 0 ▶ my $name = 'X400-MTS-Identifier';
Subroutine x400_mts_identifier: not called CC=2 SCAR=17.9
Pod documented
865 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
866 }
867  
868 sub x400_originator {
869 0 ▶ my $name = 'X400-Originator';
Subroutine x400_originator: not called CC=2 SCAR=17.9
Pod documented
870 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
871 }
872  
873 sub x400_received {
874 0 ▶ my $name = 'X400-Received';
Subroutine x400_received: not called CC=2 SCAR=17.9
Pod documented
875 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
876 }
877  
878 sub x400_recipients {
879 0 ▶ my $name = 'X400-Recipients';
Subroutine x400_recipients: not called CC=2 SCAR=17.9
Pod documented
880 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
881 }
882  
883 sub x400_trace {
884 0 ▶ my $name = 'X400-Trace';
Subroutine x400_trace: not called CC=2 SCAR=17.9
Pod documented
885 0 ▶ unshift @_, shift, $name and goto &header;
Branch: 1 branch
BranchTrueFalseTotal
unshift @_, shift(), $name and goto \&Emailesque::header 0 0 0
886 }
887  
888 sub header {
889 0 ▶ my ($self, $name) = (shift, shift);
Subroutine header: not called CC=4 SCAR=30.0
Pod documented
890 0 ▶ $name = $headers{$name} // $name;
Condition0%0/3
$headers{$name} // $name
l!l&&r!l&&!r
000
MC/DC0%0/2
$headers{$name} // $name
$headers{$name} $name
Truth table0%0/3
A // B
A= $headers{$name}B= $name
ABresult
1X1
011
000
891  
892 0 ▶ my $headers = $self->{headers} //= {};
Condition0%0/2
$self->{"headers"} //= {}
l!l
00
MC/DC0%0/1
$self->{"headers"} //= {}
$self->{"headers"}
Truth table0%0/2
A
A= $self->{"headers"}
Aresult
11
00
893  
894 0 ▶ return $headers->{$name} = shift if @_;
Branch: 1 branch
BranchTrueFalseTotal
if @_ 0 0 0
895 0 return $headers->{$name};
896 }
897  
898 sub prepare_address {
899 6 ▶ my ($self, $field, @arguments) = @_;
Subroutine prepare_address: called CC=3 SCAR=12.0
Pod undocumented
900  
901 6 ▶ my $headers = $self->{headers} //= {};
Condition50%1/2
$self->{"headers"} //= {}
l!l
60
MC/DC0%0/1
$self->{"headers"} //= {}
$self->{"headers"}
Truth table50%1/2
A
A= $self->{"headers"}
Aresult
11
00
902 6 my $value = $headers->{$field};
903  
904 return join ",", map $_->format, Email::AddressParser->parse(
905 6 ▶ ref($value) eq 'ARRAY' ? join(',',@{$value}) : $value
Branch: 1 branch
BranchTrueFalseTotal
ref $value eq 'ARRAY' ? : 0 6 6
906 );
907 }
908  
909 sub prepare_package {
910 3 ▶ my ($self, $options, @arguments) = @_;
Subroutine prepare_package: called CC=51 SCAR=65.0
Pod undocumented
911 3 $DB::single=1;
912 3 ▶ $options = Hash::Merge::Simple::merge($self, $options // {});
Condition50%1/2
$options // {}
l!l
30
MC/DC0%0/1
$options // {}
$options
Truth table50%1/2
A
A= $options
Aresult
11
00
913  
914 3 my $stuff = Email::Stuffer->new;
915 3 my $email = __PACKAGE__->new();
916  
917 3 $email->{$_} = $options->{$_} for keys %{$options};
918  
919 # remap references
920 3 $_[0] = $self = $email;
921  
922 # configure headers
923 3 ▶ my $headers = $email->{headers} //= {};
Condition50%1/2
$email->{"headers"} //= {}
l!l
03
MC/DC0%0/1
$email->{"headers"} //= {}
$email->{"headers"}
Truth table50%1/2
A
A= $email->{"headers"}
Aresult
11
00
924  
925 # extract headers
926 3 for my $key (keys %headers) {
927 549 my $name = $headers{$key};
928 549 ▶ my $value = delete $email->{$key} or next;
Branch: 1 branch
BranchTrueFalseTotal
my $value = delete $email->{$key} or next 540 9 549
929 9 ▶ $headers->{$name} = $value if $name and not defined $headers->{$name};
Branch: 1 branch
BranchTrueFalseTotal
if $name and not defined $headers->{$name} 9 0 9
Condition33%1/3
$name and not defined $headers->{$name}
!ll&&!rl&&r
009
MC/DC0%0/2
$name and not defined $headers->{$name}
$name not defined $headers->{$name}
Truth table33%1/3
A and not(B)
A= $nameB= not defined $headers->{$name}
ABresult
0X0
100
111
930 }
931  
932 # required fields
933 3 my @required = @{$headers}{qw(From Subject To)};
934 3 ▶ confess "Can't send email without a to, from, and subject property"
Branch: 1 branch
BranchTrueFalseTotal
unless @required == 3 0 3 3
935 unless @required == 3;
936  
937 # process address headers
938 3 my @address_headers = qw(
939 Abuse-Reports-To
940 Apparently-To
941 Delivered-To
942 Disposition-Notification-To
943 Errors-To
944 Followup-To
945 In-Reply-To
946 Mail-Copies-To
947 Posted-To
948 Read-Receipt-To
949 Resent-Reply-To
950 Resent-To
951 Return-Receipt-To
952 );
953 3 for my $key (qw(Cc Bcc From Reply-To To), @address_headers) {
954 $stuff->header($key => $email->prepare_address($key))
955 54 ▶ if defined $headers->{$key};
Branch: 1 branch
BranchTrueFalseTotal
if defined $headers->{$key} 6 48 54
956 }
957  
958 # process subject
959 3 ▶ $stuff->subject($headers->{Subject}) if defined $headers->{Subject};
Branch: 1 branch
BranchTrueFalseTotal
if defined $headers->{"Subject"} 3 0 3
960  
961 # process message
962 3 ▶ if (defined $email->{message}) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $email->{"message"}) 3 0 3
963 3 my $type = $email->{type};
964 3 my $message = $email->{message};
965  
966 3 my $multi = ref($email->{message}) eq 'HASH';
967  
968 3 ▶ my $html_msg = $email->{message}{html} if $multi;
Branch: 1 branch
BranchTrueFalseTotal
if $multi 0 3 3
969 3 ▶ my $text_msg = $email->{message}{text} if $multi;
Branch: 1 branch
BranchTrueFalseTotal
if $multi 0 3 3
970  
971 # multipart send using plain text and html
972 3 ▶ if (($type and lc($type) eq 'multi') or ($html_msg and $text_msg)) {
Branch: 2 branches
BranchTrueFalseTotal
if ($type and lc $type eq 'multi' or $html_msg and $text_msg) { } 0 3 3
elsif ($type and lc $type ne 'multi' and $message) { } 0 3 3
Condition33%3/9
$type and lc $type eq "multi" or $html_msg and $text_msg
l!l&&r!l&&!r
003
$type and lc $type eq "multi"
!ll&&!rl&&r
300
$html_msg and $text_msg
!ll&&!rl&&r
300
MC/DC0%0/4
$type and lc $type eq "multi" or $html_msg and $text_msg
$type lc $type eq "multi" $html_msg $text_msg
Truth table14%1/7
A and B or C and D
A= $typeB= lc $type eq "multi"C= $html_msgD= $text_msg
ABCDresult
11XX1
0X111
10111
0X0X0
0X100
100X0
10100
973 0 ▶ $stuff->html_body("$html_msg") if defined $html_msg;
Branch: 1 branch
BranchTrueFalseTotal
if defined $html_msg 0 0 0
974 0 ▶ $stuff->text_body("$text_msg") if defined $text_msg;
Branch: 1 branch
BranchTrueFalseTotal
if defined $text_msg 0 0 0
975 }
976 ▶ elsif (($type and lc($type) ne 'multi') and $message) {
Condition33%2/6
$type and lc $type ne "multi" and $message
!ll&&!rl&&r
300
$type and lc $type ne "multi"
!ll&&!rl&&r
300
MC/DC0%0/3
$type and lc $type ne "multi" and $message
$type lc $type ne "multi" $message
Truth table25%1/4
A and B and C
A= $typeB= lc $type ne "multi"C= $message
ABCresult
0XX0
10X0
1100
1111
977 # standard send using html or plain text
978 0 ▶ $stuff->html_body("$message") if $type and $type eq 'html';
Branch: 1 branch
BranchTrueFalseTotal
if $type and $type eq "html" 0 0 0
Condition0%0/3
$type and $type eq "html"
!ll&&!rl&&r
000
MC/DC0%0/2
$type and $type eq "html"
$type $type eq "html"
Truth table0%0/3
A and B
A= $typeB= $type eq "html"
ABresult
0X0
100
111
979 0 ▶ $stuff->text_body("$message") if $type and $type eq 'text';
Branch: 1 branch
BranchTrueFalseTotal
if $type and $type eq "text" 0 0 0
Condition0%0/3
$type and $type eq "text"
!ll&&!rl&&r
000
MC/DC0%0/2
$type and $type eq "text"
$type $type eq "text"
Truth table0%0/3
A and B
A= $typeB= $type eq "text"
ABresult
0X0
100
111
980 }
981 else {
982 3 $stuff->text_body("$message");
983 }
984 }
985  
986 confess "Can't send email without a message property"
987 3 ▶ unless defined $email->{message};
Branch: 1 branch
BranchTrueFalseTotal
unless defined $email->{"message"} 0 3 3
988  
989 # process additional headers
990 3 my %excluded_headers = map { $_ => 1 } @address_headers, qw(
991 Cc
992 Bcc
993 From
994 Reply-To
995 Subject
996 To
997 );
998 3 for my $key (grep { !$excluded_headers{$_} } @headers) {
999 $stuff->header($key => $headers->{$key})
1000 513 ▶ if defined $headers->{$key}
Branch: 1 branch
BranchTrueFalseTotal
if defined $headers->{$key} 0 513 513
1001 }
1002  
1003 # process attachments - old behavior
1004 3 ▶ if (my $attachments = $email->{attach}) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $attachments = $email->{"attach"}) 0 3 3
1005 0 ▶ if (ref($attachments) eq 'ARRAY') {
Branch: 1 branch
BranchTrueFalseTotal
if (ref $attachments eq "ARRAY") 0 0 0
1006 0 my %files = @{$attachments};
1007 0 foreach my $file (keys %files) {
1008 0 ▶ if ($files{$file}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($files{$file}) { } 0 0 0
1009 0 my $data = read_file($files{$file}, binmode => ':raw');
1010 0 $stuff->attach($data, name => $file, filename => $file);
1011 }
1012 else {
1013 0 $stuff->attach_file($file);
1014 }
1015 }
1016 }
1017 }
1018  
1019 # process attachments - new behavior
1020 3 ▶ if (my $attachments = $email->{files}) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $attachments = $email->{"files"}) 0 3 3
1021 0 ▶ if (ref($attachments) eq 'ARRAY') {
Branch: 1 branch
BranchTrueFalseTotal
if (ref $attachments eq "ARRAY") 0 0 0
1022 0 $stuff->attach_file($_) for @{$attachments};
1023 }
1024 }
1025  
1026 # transport email explicitly
1027 3 ▶ $stuff->transport(@arguments) if @arguments;
Branch: 1 branch
BranchTrueFalseTotal
if @arguments 3 0 3
1028 3 ▶ return $stuff if @arguments;
Branch: 1 branch
BranchTrueFalseTotal
if @arguments 3 0 3
1029  
1030 # transport email implicitly
1031 0 my $driver = $email->{driver};
1032 0 my $sendmail = lc($driver) eq 'sendmail';
1033 0 my $smtpmail = lc($driver) eq 'smtp';
1034  
1035 # default transport to sendmail
1036 0 ▶ $sendmail = 1 unless $sendmail or $smtpmail;
Branch: 1 branch
BranchTrueFalseTotal
unless $sendmail or $smtpmail 0 0 0
Condition0%0/3
$sendmail or $smtpmail
l!l&&r!l&&!r
000
MC/DC0%0/2
$sendmail or $smtpmail
$sendmail $smtpmail
Truth table0%0/3
A or B
A= $sendmailB= $smtpmail
ABresult
1X1
011
000
1037  
1038 0 ▶ if ($sendmail) {
Branch: 1 branch
BranchTrueFalseTotal
if ($sendmail) 0 0 0
1039 0 my $path = $email->{path};
1040  
1041 0 ▶ $path ||= '/usr/bin/sendmail' if -f '/usr/bin/sendmail';
Branch: 1 branch
BranchTrueFalseTotal
if -f "/usr/bin/sendmail" 0 0 0
Condition0%0/2
$path ||= "/usr/bin/sendmail"
l!l
00
MC/DC0%0/1
$path ||= "/usr/bin/sendmail"
$path
Truth table0%0/2
A
A= $path
Aresult
11
00
1042 0 ▶ $path ||= '/usr/sbin/sendmail' if -f '/usr/sbin/sendmail';
Branch: 1 branch
BranchTrueFalseTotal
if -f "/usr/sbin/sendmail" 0 0 0
Condition0%0/2
$path ||= "/usr/sbin/sendmail"
l!l
00
MC/DC0%0/1
$path ||= "/usr/sbin/sendmail"
$path
Truth table0%0/2
A
A= $path
Aresult
11
00
1043  
1044 0 $stuff->transport('Sendmail' => (sendmail => $path));
1045 }
1046  
1047 0 ▶ if ($smtpmail) {
Branch: 1 branch
BranchTrueFalseTotal
if ($smtpmail) 0 0 0
1048 0 my %map = (
1049 user => 'sasl_username',
1050 pass => 'sasl_password'
1051 );
1052 0 my @keys = qw(
1053 debug
1054 host
1055 pass
1056 password
1057 port
1058 ssl
1059 user
1060 username
1061 );
1062 0 my @params = ();
1063  
1064 0 for my $key (@keys) {
1065 push @params, $map{$key} // $key, $email->{$key}
1066 0 ▶ if defined $email->{$key};
Branch: 1 branch
BranchTrueFalseTotal
if defined $email->{$key} 0 0 0
Condition0%0/3
$map{$key} // $key
l!l&&r!l&&!r
000
MC/DC0%0/2
$map{$key} // $key
$map{$key} $key
Truth table0%0/3
A // B
A= $map{$key}B= $key
ABresult
1X1
011
000
1067 }
1068  
1069 0 push @params, 'proto' => 'tcp'; # no longer used
1070 0 push @params, 'reuse' => 1; # no longer used
1071  
1072 0 $stuff->transport('SMTP' => @params);
1073 }
1074  
1075 0 return $stuff;
1076 }
1077  
1078 2 1;
1079  
1080 __END__
↑ Summary