1Mail::Message::TransferUEsnecr::CBoanster6i4b(u3t)ed PerMlaiDlo:c:uMmeesnstaagtei:o:nTransferEnc::Base64(3)
2
3
4

NAME

6       Mail::Message::TransferEnc::Base64 - encode/decode base64 message
7       bodies
8

INHERITANCE

10        Mail::Message::TransferEnc::Base64
11          is a Mail::Message::TransferEnc
12          is a Mail::Reporter
13

SYNOPSIS

15        my Mail::Message $msg = ...;
16        my $decoded = $msg->decoded;
17        my $encoded = $msg->encode(transfer => 'base64');
18

DESCRIPTION

20       Encode or decode message bodies with base64.  The e-mail protocol and
21       user agents can not handle binary data.  Therefore, binary data -but
22       even sometimes non-binary data- is encoded into ASCII, this is
23       transportable.
24
25       Base64 re-groups the bits of bytes, and maps them on characters. The
26       data contains bytes of 8 bits (an octet).  These are repacked into
27       groups of 6 bits, pointing in an array of characters containing
28       "[A-Za-z0-9+/]".  This way, three data bytes become 4 base64 bytes.
29       The encoded data will be trailed by '=' characters to align on four
30       bytes.
31

METHODS

33   Constructors
34       Mail::Message::TransferEnc::Base64->new(OPTIONS)
35           See "Constructors" in Mail::Reporter
36
37   The Encoder
38       Mail::Message::TransferEnc::Base64->addTransferEncoder(TYPE, CLASS)
39           See "The Encoder" in Mail::Message::TransferEnc
40
41       $obj->create(TYPE, OPTIONS)
42           See "The Encoder" in Mail::Message::TransferEnc
43
44       $obj->name
45           See "The Encoder" in Mail::Message::TransferEnc
46
47   Encoding
48       $obj->check(BODY, OPTIONS)
49           See "Encoding" in Mail::Message::TransferEnc
50
51       $obj->decode(BODY, OPTIONS)
52            -Option     --Defined in                --Default
53             result_type  Mail::Message::TransferEnc  <type of source body>
54
55           result_type => CLASS
56       $obj->encode(BODY, OPTIONS)
57           See "Encoding" in Mail::Message::TransferEnc
58
59   Error handling
60       $obj->AUTOLOAD
61           See "Error handling" in Mail::Reporter
62
63       $obj->addReport(OBJECT)
64           See "Error handling" in Mail::Reporter
65
66       $obj->defaultTrace([LEVEL]|[LOGLEVEL, TRACELEVEL]|[LEVEL, CALLBACK])
67           Mail::Message::TransferEnc::Base64->defaultTrace([LEVEL]|[LOGLEVEL,
68           TRACELEVEL]|[LEVEL, CALLBACK])
69
70           See "Error handling" in Mail::Reporter
71
72       $obj->errors
73           See "Error handling" in Mail::Reporter
74
75       $obj->log([LEVEL [,STRINGS]])
76           Mail::Message::TransferEnc::Base64->log([LEVEL [,STRINGS]])
77
78           See "Error handling" in Mail::Reporter
79
80       $obj->logPriority(LEVEL)
81           Mail::Message::TransferEnc::Base64->logPriority(LEVEL)
82
83           See "Error handling" in Mail::Reporter
84
85       $obj->logSettings
86           See "Error handling" in Mail::Reporter
87
88       $obj->notImplemented
89           See "Error handling" in Mail::Reporter
90
91       $obj->report([LEVEL])
92           See "Error handling" in Mail::Reporter
93
94       $obj->reportAll([LEVEL])
95           See "Error handling" in Mail::Reporter
96
97       $obj->trace([LEVEL])
98           See "Error handling" in Mail::Reporter
99
100       $obj->warnings
101           See "Error handling" in Mail::Reporter
102
103   Cleanup
104       $obj->DESTROY
105           See "Cleanup" in Mail::Reporter
106
107       $obj->inGlobalDestruction
108           See "Cleanup" in Mail::Reporter
109

DIAGNOSTICS

111       Warning: Base64 line length not padded on 4.
112           While decoding base64 the data in a message body, a string was
113           found which was not padded into a multiple of four bytes.  This is
114           illegal, and therefore this data is ignored.
115
116       Error: Decoder for transfer encoding $type does not work: $@
117           Compiling the required transfer encoding resulted in errors, which
118           means that the decoder can not be used.
119
120       Warning: No decoder for transfer encoding $type.
121           A decoder for the specified type of transfer encoding is not
122           implemented.
123
124       Error: Package $package does not implement $method.
125           Fatal error: the specific package (or one of its superclasses) does
126           not implement this method where it should. This message means that
127           some other related classes do implement this method however the
128           class at hand does not.  Probably you should investigate this and
129           probably inform the author of the package.
130

SEE ALSO

132       This module is part of Mail-Box distribution version 2.097, built on
133       January 26, 2011. Website: http://perl.overmeer.net/mailbox/
134

LICENSE

136       Copyrights 2001-2011 by Mark Overmeer. For other contributors see
137       ChangeLog.
138
139       This program is free software; you can redistribute it and/or modify it
140       under the same terms as Perl itself.  See
141       http://www.perl.com/perl/misc/Artistic.html
142
143
144
145perl v5.12.3                      2011-01-M2a6il::Message::TransferEnc::Base64(3)
Impressum