NAME
Mail::Message::TransferEnc::QuotedPrint - handle quoted-printable message bodies
CLASS HIERARCHY
Mail::Message::TransferEnc::QuotedPrint
is a Mail::Message::TransferEnc
is a Mail::Reporter
SYNOPSIS
my Mail::Message $msg = ...;
my $decoded = $msg->decoded;
my $encoded = $msg->encode(transfer => 'quoted-printable');
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.
METHOD INDEX
Methods prefixed with an abbreviation are described in Mail::Reporter (MR), Mail::Message::TransferEnc (MMT).
The general methods for Mail::Message::TransferEnc::QuotedPrint
objects:
MMT check BODY [, OPTIONS] MMT name
MMT create TYPE, OPTIONS new OPTIONS
decode BODY MR report [LEVEL]
encode MR reportAll [LEVEL]
MR errors MR trace [LEVEL]
MR log [LEVEL [,STRINGS]] MR warnings
The extra methods for extension writers:
MR AUTOLOAD MR inGlobalDestruction
MR DESTROY MR logPriority LEVEL
MMT addTransferEncoder TYPE, CLASS MR logSettings
METHODS
- new OPTIONS
-
OPTION DESCRIBED IN DEFAULT log Mail::Reporter 'WARNINGS' trace Mail::Reporter 'WARNINGS'
- decode BODY
-
Decoding is tricky, and not without loss of information. Lines will stay seperate 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 (
'=0D'
) at end of line are removed. - encode
-
Encoding is to quoted-printable is a careful process: All characters outside the normal printing range, and including
'='
are encoded. They are translated into a'='
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.The lines which are constructed which must be 76 characters max, not broken on encoded characters.
METHODS for extension writers
SEE ALSO
For support and additional documentation, see http://perl.overmeer.net/mailbox/
AUTHOR
Mark Overmeer (mailbox@overmeer.net). All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
VERSION
This code is beta, version 2.013.
Copyright (c) 2001-2002 Mark Overmeer. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.