Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mime::decoder::nbit(3pm) [debian man page]

MIME::Decoder::NBit(3pm)				User Contributed Perl Documentation				  MIME::Decoder::NBit(3pm)

NAME
MIME::Decoder::NBit - encode/decode a "7bit" or "8bit" stream SYNOPSIS
A generic decoder object; see MIME::Decoder for usage. DESCRIPTION
This is a MIME::Decoder subclass for the "7bit" and "8bit" content transfer encodings. These are not "encodings" per se: rather, they are simply assertions of the content of the message. From RFC-2045 Section 6.2.: Three transformations are currently defined: identity, the "quoted- printable" encoding, and the "base64" encoding. The domains are "binary", "8bit" and "7bit". The Content-Transfer-Encoding values "7bit", "8bit", and "binary" all mean that the identity (i.e. NO) encoding transformation has been performed. As such, they serve simply as indicators of the domain of the body data, and provide useful information about the sort of encoding that might be needed for transmission in a given transport system. In keeping with this: as of MIME-tools 4.x, this class does no modification of its input when encoding; all it does is attempt to detect violations of the 7bit/8bit assertion, and issue a warning (one per message) if any are found. Legal 7bit data RFC-2045 Section 2.7 defines legal "7bit" data: "7bit data" refers to data that is all represented as relatively short lines with 998 octets or less between CRLF line separation sequences [RFC-821]. No octets with decimal values greater than 127 are allowed and neither are NULs (octets with decimal value 0). CR (decimal value 13) and LF (decimal value 10) octets only occur as part of CRLF line separation sequences. Legal 8bit data RFC-2045 Section 2.8 defines legal "8bit" data: "8bit data" refers to data that is all represented as relatively short lines with 998 octets or less between CRLF line separation sequences [RFC-821]), but octets with decimal values greater than 127 may be used. As with "7bit data" CR and LF octets only occur as part of CRLF line separation sequences and no NULs are allowed. How decoding is done The decoder does a line-by-line pass-through from input to output, leaving the data unchanged except that an end-of-line sequence of CRLF is converted to a newline " ". Given the line-oriented nature of 7bit and 8bit, this seems relatively sensible. How encoding is done The encoder does a line-by-line pass-through from input to output, and simply attempts to detect violations of the "7bit"/"8bit" domain. The default action is to warn once per encoding if violations are detected; the warnings may be silenced with the QUIET configuration of MIME::Tools. SEE ALSO
MIME::Decoder AUTHOR
Eryq (eryq@zeegee.com), ZeeGee Software Inc (http://www.zeegee.com). All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2012-06-08 MIME::Decoder::NBit(3pm)

Check Out this Related Man Page

Mail::Message::TransferEnc::SevenBit(3pm)		User Contributed Perl Documentation		 Mail::Message::TransferEnc::SevenBit(3pm)

NAME
Mail::Message::TransferEnc::SevenBit - encode/decode 7bit message bodies INHERITANCE
Mail::Message::TransferEnc::SevenBit is a Mail::Message::TransferEnc is a Mail::Reporter SYNOPSIS
my Mail::Message $msg = ...; my $decoded = $msg->decoded; my $encoded = $msg->encode(transfer => '7bit'); DESCRIPTION
Encode or decode message bodies for 7bit transfer encoding. This is only very little encoding. According to the specs: RFC-2045 Section 2.7 defines legal `7bit' data: "7bit data" refers to data that is all represented as relatively short lines with 998 octets or less between CRLF line separation sequences [RFC-821]. No octets with decimal values greater than 127 are allowed and neither are NULs (octets with decimal value 0). CR (decimal value 13) and LF (decimal value 10) octets only occur as part of CRLF line separation sequences. As you can safely conclude: decoding of these bodies is no work at all. METHODS
Constructors Mail::Message::TransferEnc::SevenBit->new(OPTIONS) See "Constructors" in Mail::Reporter The Encoder Mail::Message::TransferEnc::SevenBit->addTransferEncoder(TYPE, CLASS) See "The Encoder" in Mail::Message::TransferEnc $obj->create(TYPE, OPTIONS) See "The Encoder" in Mail::Message::TransferEnc $obj->name() See "The Encoder" in Mail::Message::TransferEnc Encoding $obj->check(BODY, OPTIONS) See "Encoding" in Mail::Message::TransferEnc $obj->decode(BODY [, OPTIONS]) See "Encoding" in Mail::Message::TransferEnc $obj->encode(BODY, OPTIONS) See "Encoding" in Mail::Message::TransferEnc Error handling $obj->AUTOLOAD() See "Error handling" in Mail::Reporter $obj->addReport(OBJECT) See "Error handling" in Mail::Reporter $obj->defaultTrace([LEVEL]|[LOGLEVEL, TRACELEVEL]|[LEVEL, CALLBACK]) Mail::Message::TransferEnc::SevenBit->defaultTrace([LEVEL]|[LOGLEVEL, TRACELEVEL]|[LEVEL, CALLBACK]) See "Error handling" in Mail::Reporter $obj->errors() See "Error handling" in Mail::Reporter $obj->log([LEVEL [,STRINGS]]) Mail::Message::TransferEnc::SevenBit->log([LEVEL [,STRINGS]]) See "Error handling" in Mail::Reporter $obj->logPriority(LEVEL) Mail::Message::TransferEnc::SevenBit->logPriority(LEVEL) See "Error handling" in Mail::Reporter $obj->logSettings() See "Error handling" in Mail::Reporter $obj->notImplemented() See "Error handling" in Mail::Reporter $obj->report([LEVEL]) See "Error handling" in Mail::Reporter $obj->reportAll([LEVEL]) See "Error handling" in Mail::Reporter $obj->trace([LEVEL]) See "Error handling" in Mail::Reporter $obj->warnings() See "Error handling" in Mail::Reporter Cleanup $obj->DESTROY() See "Cleanup" in Mail::Reporter $obj->inGlobalDestruction() See "Cleanup" in Mail::Reporter DIAGNOSTICS
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. Warning: No decoder for transfer encoding $type. A decoder for the specified type of transfer encoding is not implemented. 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. SEE ALSO
This module is part of Mail-Box distribution version 2.105, built on May 07, 2012. Website: http://perl.overmeer.net/mailbox/ LICENSE
Copyrights 2001-2012 by [Mark Overmeer]. For other contributors see ChangeLog. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://www.perl.com/perl/misc/Artistic.html perl v5.14.2 2012-05-07 Mail::Message::TransferEnc::SevenBit(3pm)
Man Page