blob: d8038162f1b64504863cf77322c5860d70af21ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
<!--
$FML: chapter.sgml,v 1.2 2003/08/03 05:28:49 fukachan Exp $
$jaFML: chapter.sgml,v 1.5 2003/04/15 14:51:42 fukachan Exp $
-->
<chapter id="mail.manipulation">
<title>
Manipulate Message (Mail Message)
</title>
<para>
See
<link linkend="module.mail.message">
Mail::Message class
</link>
for the mail message object handling. Mail::Message class provides
fundamental methods. Several message handling modules e.g.
Mail::Bounce, Mail::Delivery depend on this class.
</para>
<!-- ======================================= -->
<sect1>
<title>
Mail::Message Class
</title>
<para>
A mail consists of one header and one body.
A multipart mail body consists of several parts.
</para>
<para>
The mail delivery module needs not to know the detail of a message.
But the filter system needs to know the structure of the message.
</para>
<para>
These modules depend
<link linkend="module.mail.message">
Mail::Message class
</link>
to know the message structure.
For example, Mail::Bounce, Mail::Delivery et.al. use this class.
</para>
<para>
The usage is as follows:
<screen>
my $fh = new FileHandle $file;
my $msg = Mail::Message->parse( { fd => $fh } );
use FML::Mailer;
my $obj = new FML::Mailer;
$obj->send( {
sender => $sender,
recipient => $rcpt,
message => $msg,
});
</screen>
</para>
</sect1>
<!-- ======================================= -->
<sect1>
<title>
Mail::Message::Parse Class
</title>
<para>
dummy.
</para>
<para>
The real functions are within
<link linkend="module.mail.message">
Mail::Message
</link>
class.
</para>
</sect1>
<!-- ======================================= -->
<sect1>
<title>
Mail::Message::Compose Class
</title>
<para>
dummy.
This is an adapter for MIME::Lite class.
All requests are forwarded to MIME::Lite class.
</para>
<para>
See MIME::Lite class for the usage details.
</para>
</sect1>
<!-- internationalization -->
§.message.nl;
§.message.discuss;
</chapter>
|