.\" Automatically generated by Pod::Man 4.07 (Pod::Simple 3.32) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .if !\nF .nr F 0 .if \nF>0 \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} .\} .\" ======================================================================== .\" .IX Title "Mail::Message::TransferEnc::QuotedPrint 3pm" .TH Mail::Message::TransferEnc::QuotedPrint 3pm "2016-12-27" "perl v5.24.1" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Mail::Message::TransferEnc::QuotedPrint \- handle quoted\-printable message bodies .SH "INHERITANCE" .IX Header "INHERITANCE" .Vb 3 \& Mail::Message::TransferEnc::QuotedPrint \& is a Mail::Message::TransferEnc \& is a Mail::Reporter .Ve .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 3 \& my Mail::Message $msg = ...; \& my $decoded = $msg\->decoded; \& my $encoded = $msg\->encode(transfer => \*(Aqquoted\-printable\*(Aq); .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" Encode and decode message bodies for quoted-printable transfer encoding. The Quoted-Printable encoding is intended to represent data that largely consists of bytes that correspond to printable characters in the \s-1ASCII\s0 character set. Non-printable characters (as defined by English Americans) are represented by a triplet consisting of the character \*(L"=\*(R" followed by two hexadecimal digits. .PP Extends \*(L"\s-1DESCRIPTION\*(R"\s0 in Mail::Message::TransferEnc. .SH "METHODS" .IX Header "METHODS" Extends \*(L"\s-1METHODS\*(R"\s0 in Mail::Message::TransferEnc. .SS "Constructors" .IX Subsection "Constructors" Extends \*(L"Constructors\*(R" in Mail::Message::TransferEnc. .IP "Mail::Message::TransferEnc::QuotedPrint\->\fBnew\fR(%options)" 4 .IX Item "Mail::Message::TransferEnc::QuotedPrint->new(%options)" Inherited, see \*(L"Constructors\*(R" in Mail::Reporter .SS "The Encoder" .IX Subsection "The Encoder" Extends \*(L"The Encoder\*(R" in Mail::Message::TransferEnc. .ie n .IP "Mail::Message::TransferEnc::QuotedPrint\->\fBaddTransferEncoder\fR($type, $class)" 4 .el .IP "Mail::Message::TransferEnc::QuotedPrint\->\fBaddTransferEncoder\fR($type, \f(CW$class\fR)" 4 .IX Item "Mail::Message::TransferEnc::QuotedPrint->addTransferEncoder($type, $class)" Inherited, see \*(L"The Encoder\*(R" in Mail::Message::TransferEnc .ie n .IP "$obj\->\fBcreate\fR($type, %options)" 4 .el .IP "\f(CW$obj\fR\->\fBcreate\fR($type, \f(CW%options\fR)" 4 .IX Item "$obj->create($type, %options)" Inherited, see \*(L"The Encoder\*(R" in Mail::Message::TransferEnc .ie n .IP "$obj\->\fBname\fR()" 4 .el .IP "\f(CW$obj\fR\->\fBname\fR()" 4 .IX Item "$obj->name()" Inherited, see \*(L"The Encoder\*(R" in Mail::Message::TransferEnc .SS "Encoding" .IX Subsection "Encoding" Extends \*(L"Encoding\*(R" in Mail::Message::TransferEnc. .ie n .IP "$obj\->\fBcheck\fR($body, %options)" 4 .el .IP "\f(CW$obj\fR\->\fBcheck\fR($body, \f(CW%options\fR)" 4 .IX Item "$obj->check($body, %options)" Inherited, see \*(L"Encoding\*(R" in Mail::Message::TransferEnc .ie n .IP "$obj\->\fBdecode\fR($body, %options)" 4 .el .IP "\f(CW$obj\fR\->\fBdecode\fR($body, \f(CW%options\fR)" 4 .IX Item "$obj->decode($body, %options)" Decoding is tricky, and not without loss of information. Lines will stay separate lines, although they might have been joined before the encoding split them up. Characters which are not printable will be replaced by their octal value, and carriage returns (\f(CW\*(Aq=0D\*(Aq\fR) at end of line are removed. .Sp .Vb 2 \& \-Option \-\-Defined in \-\-Default \& result_type Mail::Message::TransferEnc .Ve .RS 4 .IP "result_type => \s-1CLASS\s0" 2 .IX Item "result_type => CLASS" .RE .RS 4 .RE .PD 0 .ie n .IP "$obj\->\fBencode\fR($body, %options)" 4 .el .IP "\f(CW$obj\fR\->\fBencode\fR($body, \f(CW%options\fR)" 4 .IX Item "$obj->encode($body, %options)" .PD Encoding is to quoted-printable is a careful process: All characters outside the normal printing range, and including \f(CW\*(Aq=\*(Aq\fR are encoded. They are translated into a \f(CW\*(Aq=\*(Aq\fR followed by a two digit hex of the ascii value of the character. The same treatment is for white-spaces at the end of a line. .Sp The lines which are constructed which must be 76 characters max, not broken on encoded characters. .Sp .Vb 2 \& \-Option \-\-Defined in \-\-Default \& result_type Mail::Message::TransferEnc .Ve .RS 4 .IP "result_type => \s-1CLASS\s0" 2 .IX Item "result_type => CLASS" .RE .RS 4 .RE .SS "Error handling" .IX Subsection "Error handling" Extends \*(L"Error handling\*(R" in Mail::Message::TransferEnc. .ie n .IP "$obj\->\fB\s-1AUTOLOAD\s0\fR()" 4 .el .IP "\f(CW$obj\fR\->\fB\s-1AUTOLOAD\s0\fR()" 4 .IX Item "$obj->AUTOLOAD()" Inherited, see \*(L"Error handling\*(R" in Mail::Reporter .ie n .IP "$obj\->\fBaddReport\fR($object)" 4 .el .IP "\f(CW$obj\fR\->\fBaddReport\fR($object)" 4 .IX Item "$obj->addReport($object)" Inherited, see \*(L"Error handling\*(R" in Mail::Reporter .ie n .IP "$obj\->\fBdefaultTrace\fR( [$level]|[$loglevel, $tracelevel]|[$level, $callback] )" 4 .el .IP "\f(CW$obj\fR\->\fBdefaultTrace\fR( [$level]|[$loglevel, \f(CW$tracelevel\fR]|[$level, \f(CW$callback\fR] )" 4 .IX Item "$obj->defaultTrace( [$level]|[$loglevel, $tracelevel]|[$level, $callback] )" .PD 0 .ie n .IP "Mail::Message::TransferEnc::QuotedPrint\->\fBdefaultTrace\fR( [$level]|[$loglevel, $tracelevel]|[$level, $callback] )" 4 .el .IP "Mail::Message::TransferEnc::QuotedPrint\->\fBdefaultTrace\fR( [$level]|[$loglevel, \f(CW$tracelevel\fR]|[$level, \f(CW$callback\fR] )" 4 .IX Item "Mail::Message::TransferEnc::QuotedPrint->defaultTrace( [$level]|[$loglevel, $tracelevel]|[$level, $callback] )" .PD Inherited, see \*(L"Error handling\*(R" in Mail::Reporter .ie n .IP "$obj\->\fBerrors\fR()" 4 .el .IP "\f(CW$obj\fR\->\fBerrors\fR()" 4 .IX Item "$obj->errors()" Inherited, see \*(L"Error handling\*(R" in Mail::Reporter .ie n .IP "$obj\->\fBlog\fR( [$level, [$strings]] )" 4 .el .IP "\f(CW$obj\fR\->\fBlog\fR( [$level, [$strings]] )" 4 .IX Item "$obj->log( [$level, [$strings]] )" .PD 0 .IP "Mail::Message::TransferEnc::QuotedPrint\->\fBlog\fR( [$level, [$strings]] )" 4 .IX Item "Mail::Message::TransferEnc::QuotedPrint->log( [$level, [$strings]] )" .PD Inherited, see \*(L"Error handling\*(R" in Mail::Reporter .ie n .IP "$obj\->\fBlogPriority\fR($level)" 4 .el .IP "\f(CW$obj\fR\->\fBlogPriority\fR($level)" 4 .IX Item "$obj->logPriority($level)" .PD 0 .IP "Mail::Message::TransferEnc::QuotedPrint\->\fBlogPriority\fR($level)" 4 .IX Item "Mail::Message::TransferEnc::QuotedPrint->logPriority($level)" .PD Inherited, see \*(L"Error handling\*(R" in Mail::Reporter .ie n .IP "$obj\->\fBlogSettings\fR()" 4 .el .IP "\f(CW$obj\fR\->\fBlogSettings\fR()" 4 .IX Item "$obj->logSettings()" Inherited, see \*(L"Error handling\*(R" in Mail::Reporter .ie n .IP "$obj\->\fBnotImplemented\fR()" 4 .el .IP "\f(CW$obj\fR\->\fBnotImplemented\fR()" 4 .IX Item "$obj->notImplemented()" Inherited, see \*(L"Error handling\*(R" in Mail::Reporter .ie n .IP "$obj\->\fBreport\fR( [$level] )" 4 .el .IP "\f(CW$obj\fR\->\fBreport\fR( [$level] )" 4 .IX Item "$obj->report( [$level] )" Inherited, see \*(L"Error handling\*(R" in Mail::Reporter .ie n .IP "$obj\->\fBreportAll\fR( [$level] )" 4 .el .IP "\f(CW$obj\fR\->\fBreportAll\fR( [$level] )" 4 .IX Item "$obj->reportAll( [$level] )" Inherited, see \*(L"Error handling\*(R" in Mail::Reporter .ie n .IP "$obj\->\fBtrace\fR( [$level] )" 4 .el .IP "\f(CW$obj\fR\->\fBtrace\fR( [$level] )" 4 .IX Item "$obj->trace( [$level] )" Inherited, see \*(L"Error handling\*(R" in Mail::Reporter .ie n .IP "$obj\->\fBwarnings\fR()" 4 .el .IP "\f(CW$obj\fR\->\fBwarnings\fR()" 4 .IX Item "$obj->warnings()" Inherited, see \*(L"Error handling\*(R" in Mail::Reporter .SS "Cleanup" .IX Subsection "Cleanup" Extends \*(L"Cleanup\*(R" in Mail::Message::TransferEnc. .ie n .IP "$obj\->\fB\s-1DESTROY\s0\fR()" 4 .el .IP "\f(CW$obj\fR\->\fB\s-1DESTROY\s0\fR()" 4 .IX Item "$obj->DESTROY()" Inherited, see \*(L"Cleanup\*(R" in Mail::Reporter .SH "DIAGNOSTICS" .IX Header "DIAGNOSTICS" .ie n .IP "Error: Decoder for transfer encoding $type does not work: $@" 4 .el .IP "Error: Decoder for transfer encoding \f(CW$type\fR does not work: $@" 4 .IX Item "Error: Decoder for transfer encoding $type does not work: $@" Compiling the required transfer encoding resulted in errors, which means that the decoder can not be used. .ie n .IP "Warning: No decoder for transfer encoding $type." 4 .el .IP "Warning: No decoder for transfer encoding \f(CW$type\fR." 4 .IX Item "Warning: No decoder for transfer encoding $type." A decoder for the specified type of transfer encoding is not implemented. .ie n .IP "Error: Package $package does not implement $method." 4 .el .IP "Error: Package \f(CW$package\fR does not implement \f(CW$method\fR." 4 .IX Item "Error: Package $package does not implement $method." Fatal error: the specific package (or one of its superclasses) does not implement this method where it should. This message means that some other related classes do implement this method however the class at hand does not. Probably you should investigate this and probably inform the author of the package. .SH "SEE ALSO" .IX Header "SEE ALSO" This module is part of Mail-Box distribution version 2.120, built on September 21, 2016. Website: \fIhttp://perl.overmeer.net/mailbox/\fR .SH "LICENSE" .IX Header "LICENSE" Copyrights 2001\-2016 by [Mark Overmeer]. For other contributors see ChangeLog. .PP This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See \fIhttp://www.perl.com/perl/misc/Artistic.html\fR