From 72399b69cbbc36cf34defde2b9c2b3aa2dca2ff0 Mon Sep 17 00:00:00 2001 From: fukachan Date: Sun, 6 May 2001 08:19:11 +0000 Subject: update documents to reflect Mail::Message::* --- fml/lib/Mail/Message.pm | 41 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 39 insertions(+), 2 deletions(-) (limited to 'fml') diff --git a/fml/lib/Mail/Message.pm b/fml/lib/Mail/Message.pm index 95222270..0e3c2f29 100644 --- a/fml/lib/Mail/Message.pm +++ b/fml/lib/Mail/Message.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: Message.pm,v 1.21 2001/05/05 06:39:41 fukachan Exp $ +# $FML: Message.pm,v 1.22 2001/05/06 02:37:53 fukachan Exp $ # package Mail::Message; @@ -187,7 +187,7 @@ C is a faked type to treat both real content, MIME delimiters and others in the same Mail::Message framework. -=head1 METHODS to create an object +=head1 METHODS to create a message object =head2 C @@ -347,6 +347,22 @@ sub __build_message } +=head2 C + +duplicate a message chain. Precisely speaking, it duplicates the +header object but not duplicate body parts of a message object chain. +So, the next object of the duplicated header, C in the +following figure, is the first body part C of the origianl +chain. + + header0 ----> part1 -> part2 -> ... + A + | + dup_header0 --- + +=cut + + sub dup_header { my ($self) = @_; @@ -1713,6 +1729,27 @@ sub get_data_type_list } +=head1 METHODS to make a whole mail message + +Please use C class. +This is an adapter for C, so +your request is forwarded to C class :-) + + use Mail::Message::Compose; + $msg = Mail::Message::Compose->new( + From => 'fukachan@fml.org', + To => 'rudo@nuinui.net', + Cc => 'kenken@nuinui.net', + Subject => 'help', + Type => 'text/plain', + Path => 'help', + ); + $msg->attr('content-type.charset' => 'us-ascii'); + + # show message; + print $msg->as_string; + + =head1 APPENDIX (RFC2046 Appendix A) Appendix A -- Collected Grammar -- cgit v1.2.1