| 1 | # This code is part of Perl distribution Mail-Message version 4.05. | ||||||||||||||||||||
| 2 | # The POD got stripped from this file by OODoc version 3.06. | ||||||||||||||||||||
| 3 | # For contributors see file ChangeLog. | ||||||||||||||||||||
| 4 | |||||||||||||||||||||
| 5 | # This software is copyright (c) 2001-2026 by Mark Overmeer. | ||||||||||||||||||||
| 6 | |||||||||||||||||||||
| 7 | # This is free software; you can redistribute it and/or modify it under | ||||||||||||||||||||
| 8 | # the same terms as the Perl 5 programming language system itself. | ||||||||||||||||||||
| 9 | # SPDX-License-Identifier: Artistic-1.0-Perl OR GPL-1.0-or-later | ||||||||||||||||||||
| 10 | |||||||||||||||||||||
| 11 | |||||||||||||||||||||
| 12 | package Mail::Message::TransferEnc::QuotedPrint;{ | ||||||||||||||||||||
| 13 | 3 | our $VERSION = '4.05'; | |||||||||||||||||||
| 14 | } | ||||||||||||||||||||
| 15 | |||||||||||||||||||||
| 16 | 3 | ▶ | use parent 'Mail::Message::TransferEnc'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 17 | |||||||||||||||||||||
| 18 | 3 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 19 | 3 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 20 | 3 | ▶ | use utf8; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 21 | |||||||||||||||||||||
| 22 | 3 | ▶ | use Log::Report 'mail-message', import => [ qw// ]; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 23 | |||||||||||||||||||||
| 24 | 3 | ▶ | use MIME::QuotedPrint qw/encode_qp decode_qp/; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 25 | |||||||||||||||||||||
| 26 | #-------------------- | ||||||||||||||||||||
| 27 | |||||||||||||||||||||
| 28 | sub name() { 'quoted-printable' } | ||||||||||||||||||||
| 29 | |||||||||||||||||||||
| 30 | sub check($@) | ||||||||||||||||||||
| 31 | 0 | ▶ | { my ($self, $body, %args) = @_; | ||||||||||||||||||
|
Subroutine
check: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||
| 32 | 0 | $body; | |||||||||||||||||||
| 33 | } | ||||||||||||||||||||
| 34 | |||||||||||||||||||||
| 35 | |||||||||||||||||||||
| 36 | sub decode($@) | ||||||||||||||||||||
| 37 | 2 | ▶ | { my ($self, $body, %args) = @_; | ||||||||||||||||||
|
Subroutine
decode: called CC=2 SCAR=7.0
Pod
documented
| |||||||||||||||||||||
| 38 | |||||||||||||||||||||
| 39 | 2 | ▶ | my $bodytype = $args{result_type} || ref $body; | ||||||||||||||||||
|
Condition66%2/3
$args{'result_type'} || ref $body
MC/DC0%0/2
$args{'result_type'} || ref $body
$args{'result_type'}
ref $body
Truth table66%2/3
A || B
A= $args{'result_type'}B= ref $body
| |||||||||||||||||||||
| 40 | 2 | $bodytype->new(based_on => $body, transfer_encoding => 'none', data => decode_qp($body->string)); | |||||||||||||||||||
| 41 | } | ||||||||||||||||||||
| 42 | |||||||||||||||||||||
| 43 | |||||||||||||||||||||
| 44 | sub encode($@) | ||||||||||||||||||||
| 45 | 2 | ▶ | { my ($self, $body, %args) = @_; | ||||||||||||||||||
|
Subroutine
encode: called CC=2 SCAR=7.0
Pod
documented
| |||||||||||||||||||||
| 46 | |||||||||||||||||||||
| 47 | 2 | ▶ | my $bodytype = $args{result_type} || ref $body; | ||||||||||||||||||
|
Condition66%2/3
$args{'result_type'} || ref $body
MC/DC0%0/2
$args{'result_type'} || ref $body
$args{'result_type'}
ref $body
Truth table66%2/3
A || B
A= $args{'result_type'}B= ref $body
| |||||||||||||||||||||
| 48 | 2 | $bodytype->new(based_on => $body, transfer_encoding => 'quoted-printable', data => encode_qp($body->string)); | |||||||||||||||||||
| 49 | } | ||||||||||||||||||||
| 50 | |||||||||||||||||||||
| 51 | 3 | 1; | |||||||||||||||||||