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       The Mail::Internet class of message is very popular for all kinds of
31       message applications written in Perl.  However, the format was devel‐
32       oped when e-mail messages where still small and attachments where rare;
33       Mail::Message is much more flexible in this respect.
34

METHODS

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

DIAGNOSTICS

139       Error: Package $package does not implement $method.
140
141       Fatal error: the specific package (or one of its superclasses) does not
142       implement this method where it should. This message means that some
143       other related classes do implement this method however the class at
144       hand does not.  Probably you should investigate this and probably
145       inform the author of the package.
146

SEE ALSO

148       This module is part of Mail-Box distribution version 2.070, built on
149       March 25, 2007. Website: http://perl.overmeer.net/mailbox/
150

LICENSE

152       Copyrights 2001-2007 by Mark Overmeer.For other contributors see
153       ChangeLog.
154
155       This program is free software; you can redistribute it and/or modify it
156       under the same terms as Perl itself.  See
157       http://www.perl.com/perl/misc/Artistic.html
158
159
160
161perl v5.8.8                       2007-0M3a-i2l5::Message::Convert::MailInternet(3)
Impressum