.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man v6.0.2 (Pod::Simple 3.45) .\" .\" 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 .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . 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 .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" .\" Required to disable full justification in groff 1.23.0. .if n .ds AD l .\" ======================================================================== .\" .IX Title "Mail::Message::TransferEnc::QuotedPrint 3" .TH Mail::Message::TransferEnc::QuotedPrint 3 2026-04-11 "perl v5.42.2" "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 ASCII character set. Non\-printable characters (as defined by English Americans) are represented by a triplet consisting of the character "=" followed by two hexadecimal digits. .PP Extends "DESCRIPTION" in Mail::Message::TransferEnc. .SH METHODS .IX Header "METHODS" Extends "METHODS" in Mail::Message::TransferEnc. .SS Constructors .IX Subsection "Constructors" Extends "Constructors" in Mail::Message::TransferEnc. .ie n .IP $class\->\fBnew\fR(%options) 4 .el .IP \f(CW$class\fR\->\fBnew\fR(%options) 4 .IX Item "$class->new(%options)" Inherited, see "Constructors" in Mail::Reporter .SS Attributes .IX Subsection "Attributes" Extends "Attributes" in Mail::Message::TransferEnc. .SS "The Encoder" .IX Subsection "The Encoder" Extends "The Encoder" in Mail::Message::TransferEnc. .ie n .IP "$class\->\fBaddTransferEncoder\fR($type, $class)" 4 .el .IP "\f(CW$class\fR\->\fBaddTransferEncoder\fR($type, \f(CW$class\fR)" 4 .IX Item "$class->addTransferEncoder($type, $class)" Inherited, see "The Encoder" 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 "The Encoder" 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 "The Encoder" in Mail::Message::TransferEnc .SS Encoding .IX Subsection "Encoding" Extends "Encoding" 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 "Encoding" 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\*(C`=0D\*(C'\fR”) at end of line are removed. Improves base, see "Encoding" in Mail::Message::TransferEnc .Sp .Vb 2 \& \-Option \-\-Defined in \-\-Default \& result_type Mail::Message::TransferEnc .Ve .RS 4 .IP "result_type => CLASS" 2 .IX Item "result_type => CLASS" .RE .RS 4 .RE .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)" Encoding is to quoted\-printable is a careful process: All characters outside the normal printing range, and including “\f(CW\*(C`=\*(C'\fR” are encoded. They are translated into a “\f(CW\*(C`=\*(C'\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. Improves base, see "Encoding" in Mail::Message::TransferEnc .Sp .Vb 2 \& \-Option \-\-Defined in \-\-Default \& result_type Mail::Message::TransferEnc .Ve .RS 4 .IP "result_type => CLASS" 2 .IX Item "result_type => CLASS" .RE .RS 4 .RE .SS "Error handling" .IX Subsection "Error handling" Extends "Error handling" in Mail::Message::TransferEnc. .ie n .IP $obj\->\fBAUTOLOAD\fR() 4 .el .IP \f(CW$obj\fR\->\fBAUTOLOAD\fR() 4 .IX Item "$obj->AUTOLOAD()" Inherited, see "Error handling" 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 "Error handling" in Mail::Reporter .SS Cleanup .IX Subsection "Cleanup" Extends "Cleanup" in Mail::Message::TransferEnc. .ie n .IP $obj\->\fBDESTROY\fR() 4 .el .IP \f(CW$obj\fR\->\fBDESTROY\fR() 4 .IX Item "$obj->DESTROY()" Inherited, see "Cleanup" in Mail::Reporter .SH DIAGNOSTICS .IX Header "DIAGNOSTICS" .ie n .IP "Error: class $package does not implement method $method." 4 .el .IP "Error: class \f(CW$package\fR does not implement method \f(CW$method\fR." 4 .IX Item "Error: class $package does not implement method $method." Fatal error: the specific \f(CW$package\fR (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. Cast by \f(CWnotImplemented()\fR .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. Cast by \f(CWcreate()\fR .ie n .IP "Error: no decoder for transfer encoding $type." 4 .el .IP "Error: no decoder for transfer encoding \f(CW$type\fR." 4 .IX Item "Error: no decoder for transfer encoding $type." A decoder for the specified type of transfer encoding is not implemented. Cast by \f(CWcreate()\fR .SH "SEE ALSO" .IX Header "SEE ALSO" This module is part of Mail\-Message version 4.05, built on April 10, 2026. Website: \fIhttp://perl.overmeer.net/mailbox/\fR .SH LICENSE .IX Header "LICENSE" For contributors see file ChangeLog. .PP This software is copyright (c) 2001\-2026 by Mark Overmeer. .PP This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.