1Mail::Message::Convert:U:sMearilCIonntterrinbeutt(e3d)PMearill:D:oMceusmseangtea:t:iCoonnvert::MailInternet(3)
2
3
4

NAME

6       Mail::Message::Convert::MailInternet - translate Mail::Message to
7       Mail::Internet vv
8

INHERITANCE

10        Mail::Message::Convert::MailInternet
11          is a Mail::Message::Convert
12          is a Mail::Reporter
13

SYNOPSIS

15        use Mail::Message::Convert::MailInternet;
16        my $convert = Mail::Message::Convert::MailInternet->new;
17
18        my Mail::Message  $msg    = Mail::Message->new;
19        my Mail::Internet $intern = $convert->export($msg);
20
21        my Mail::Internet $intern = Mail::Internet->new;
22        my Mail::Message  $msg    = $convert->from($intern);
23
24        use Mail::Box::Manager;
25        my $mgr     = Mail::Box::Manager->new;
26        my $folder  = $mgr->open(folder => 'Outbox');
27        $folder->addMessage($intern);
28

DESCRIPTION

30   Converters between message objects
31   Other converters
32       The Mail::Internet class of messages is very popular for all kinds of
33       message applications written in Perl.  However, the format was
34       developed when e-mail messages where still small and attachments where
35       rare; Mail::Message is much more flexible in this respect.
36

METHODS

38   Constructors
39       Mail::Message::Convert::MailInternet->new(OPTIONS)
40           See "METHODS" in Mail::Message::Convert
41
42   Converting
43       $obj->export(MESSAGE, OPTIONS)
44           Returns a new message object based on the information from a
45           Mail::Message object.  The MESSAGE specified is an instance of a
46           Mail::Message.
47
48           example:
49
50            my $convert = Mail::Message::Convert::MailInternet->new;
51            my Mail::Message  $msg   = Mail::Message->new;
52            my Mail::Internet $copy  = $convert->export($msg);
53
54       $obj->from(OBJECT, OPTIONS)
55           Returns a new Mail::Message object based on the information from a
56           Mail::Internet object.
57
58           example:
59
60            my $convert = Mail::Message::Convert::MailInternet->new;
61            my Mail::Internet $msg  = Mail::Internet->new;
62            my Mail::Message  $copy = $convert->from($msg);
63
64       $obj->selectedFields(HEAD)
65           See "Converting" in Mail::Message::Convert
66
67   Error handling
68       $obj->AUTOLOAD
69           See "Error handling" in Mail::Reporter
70
71       $obj->addReport(OBJECT)
72           See "Error handling" in Mail::Reporter
73
74       $obj->defaultTrace([LEVEL]|[LOGLEVEL, TRACELEVEL]|[LEVEL, CALLBACK])
75           Mail::Message::Convert::MailInternet->defaultTrace([LEVEL]|[LOGLEVEL,
76           TRACELEVEL]|[LEVEL, CALLBACK])
77
78           See "Error handling" in Mail::Reporter
79
80       $obj->errors
81           See "Error handling" in Mail::Reporter
82
83       $obj->log([LEVEL [,STRINGS]])
84           Mail::Message::Convert::MailInternet->log([LEVEL [,STRINGS]])
85
86           See "Error handling" in Mail::Reporter
87
88       $obj->logPriority(LEVEL)
89           Mail::Message::Convert::MailInternet->logPriority(LEVEL)
90
91           See "Error handling" in Mail::Reporter
92
93       $obj->logSettings
94           See "Error handling" in Mail::Reporter
95
96       $obj->notImplemented
97           See "Error handling" in Mail::Reporter
98
99       $obj->report([LEVEL])
100           See "Error handling" in Mail::Reporter
101
102       $obj->reportAll([LEVEL])
103           See "Error handling" in Mail::Reporter
104
105       $obj->trace([LEVEL])
106           See "Error handling" in Mail::Reporter
107
108       $obj->warnings
109           See "Error handling" in Mail::Reporter
110
111   Cleanup
112       $obj->DESTROY
113           See "Cleanup" in Mail::Reporter
114
115       $obj->inGlobalDestruction
116           See "Cleanup" in Mail::Reporter
117

DIAGNOSTICS

119       Error: Package $package does not implement $method.
120           Fatal error: the specific package (or one of its superclasses) does
121           not implement this method where it should. This message means that
122           some other related classes do implement this method however the
123           class at hand does not.  Probably you should investigate this and
124           probably inform the author of the package.
125

SEE ALSO

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

LICENSE

131       Copyrights 2001-2011 by Mark Overmeer. For other contributors see
132       ChangeLog.
133
134       This program is free software; you can redistribute it and/or modify it
135       under the same terms as Perl itself.  See
136       http://www.perl.com/perl/misc/Artistic.html
137
138
139
140perl v5.12.3                      2011-0M1a-i2l6::Message::Convert::MailInternet(3)
Impressum