1Mail::Message::Convert:U:sEemraiCloSnitmrpilbeu(t3e)d PeMralilD:o:cMuemsesnatgaet:i:oCnonvert::EmailSimple(3)
2
3
4

NAME

6       Mail::Message::Convert::EmailSimple - translate Mail::Message to
7       Email::Simple vv
8

INHERITANCE

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

SYNOPSIS

15        use Mail::Message::Convert::EmailSimple;
16        my $convert = Mail::Message::Convert::EmailSimple->new;
17
18        my Mail::Message $msg    = Mail::Message->new;
19        my Email::Simple $intern = $convert->export($msg);
20
21        my Email::Simple $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 Email::Simple class is one of the base objects used by the large
31       set of Email* modules, which implement many e-mail needs which are also
32       supported by MailBox.  You can use this class to gradularly move from a
33       Email* based implementation into a MailBox implementation.
34
35       The internals of this class are far from optimal.  The conversion does
36       work (thanks to Ricardo Signes), but is expensive in time and memory
37       usage.  It could easily be optimized.
38
39       Extends "DESCRIPTION" in Mail::Message::Convert.
40

METHODS

42       Extends "METHODS" in Mail::Message::Convert.
43
44   Constructors
45       Extends "Constructors" in Mail::Message::Convert.
46
47       Mail::Message::Convert::EmailSimple->new(%options)
48           Inherited, see "METHODS" in Mail::Message::Convert
49
50   Converting
51       Extends "Converting" in Mail::Message::Convert.
52
53       $obj->export($message, %options)
54           Returns a new Email::Simple object based on the information from a
55           Mail::Message object.  The $message specified is an instance of a
56           Mail::Message.
57
58           example:
59
60            my $convert = Mail::Message::Convert::EmailSimple->new;
61            my Mail::Message  $msg   = Mail::Message->new;
62            my Mail::Internet $copy  = $convert->export($msg);
63
64       $obj->from($object, %options)
65           Returns a new Mail::Message object based on the information from an
66           Email::Simple.
67
68           example:
69
70            my $convert = Mail::Message::Convert::EmailSimple->new;
71            my Mail::Internet $msg  = Mail::Internet->new;
72            my Mail::Message  $copy = $convert->from($msg);
73
74       $obj->selectedFields($head)
75           Inherited, see "Converting" in Mail::Message::Convert
76
77   Error handling
78       Extends "Error handling" in Mail::Message::Convert.
79
80       $obj->AUTOLOAD()
81           Inherited, see "Error handling" in Mail::Reporter
82
83       $obj->addReport($object)
84           Inherited, see "Error handling" in Mail::Reporter
85
86       $obj->defaultTrace( [$level]|[$loglevel, $tracelevel]|[$level,
87       $callback] )
88       Mail::Message::Convert::EmailSimple->defaultTrace( [$level]|[$loglevel,
89       $tracelevel]|[$level, $callback] )
90           Inherited, see "Error handling" in Mail::Reporter
91
92       $obj->errors()
93           Inherited, see "Error handling" in Mail::Reporter
94
95       $obj->log( [$level, [$strings]] )
96       Mail::Message::Convert::EmailSimple->log( [$level, [$strings]] )
97           Inherited, see "Error handling" in Mail::Reporter
98
99       $obj->logPriority($level)
100       Mail::Message::Convert::EmailSimple->logPriority($level)
101           Inherited, see "Error handling" in Mail::Reporter
102
103       $obj->logSettings()
104           Inherited, see "Error handling" in Mail::Reporter
105
106       $obj->notImplemented()
107           Inherited, see "Error handling" in Mail::Reporter
108
109       $obj->report( [$level] )
110           Inherited, see "Error handling" in Mail::Reporter
111
112       $obj->reportAll( [$level] )
113           Inherited, see "Error handling" in Mail::Reporter
114
115       $obj->trace( [$level] )
116           Inherited, see "Error handling" in Mail::Reporter
117
118       $obj->warnings()
119           Inherited, see "Error handling" in Mail::Reporter
120
121   Cleanup
122       Extends "Cleanup" in Mail::Message::Convert.
123
124       $obj->DESTROY()
125           Inherited, see "Cleanup" in Mail::Reporter
126

DIAGNOSTICS

128       Error: Package $package does not implement $method.
129           Fatal error: the specific package (or one of its superclasses) does
130           not implement this method where it should. This message means that
131           some other related classes do implement this method however the
132           class at hand does not.  Probably you should investigate this and
133           probably inform the author of the package.
134

SEE ALSO

136       This module is part of Mail-Message distribution version 3.008, built
137       on February 11, 2019. Website: http://perl.overmeer.net/CPAN/
138

LICENSE

140       Copyrights 2001-2019 by [Mark Overmeer <markov@cpan.org>]. For other
141       contributors see ChangeLog.
142
143       This program is free software; you can redistribute it and/or modify it
144       under the same terms as Perl itself.  See http://dev.perl.org/licenses/
145
146
147
148perl v5.30.1                      2020-01M-a3i0l::Message::Convert::EmailSimple(3)
Impressum