![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
use Mail::Field; $field = Mail::Field->new('Subject', 'some subject text'); print $field->tag,": ",$field->stringify,"\n";
$field = Mail::Field->subject('some subject text');
Mail::Field
is a base class for packages that create and manipulate fields from Email
(and MIME) headers. Each different field will have its own sub-class,
defining its own interface.
This document describes the minimum interface that each sub-class should provide, and also guidlines on how the field specific interface should be defined.
After creation of the object :-
If the tag argument is followed by a single string then the parse method will be called with this string.
If the tag argument is followed by more than one arguments then the create
method will be called with these arguments.
Mail::Head
object and optionally an index.
If the index argument is given then extract will retrieve the given tag from the Mail::Head
object and create a new Mail::Field
based object.
undef will be returned in the field does not exist.
If the index argument is not given the the result depends on the context in
which extract is called. If called in a scalar context the result will be as if extract was called with an index value of zero. If called in an array context then
all tags will be retrieved and a list of
Mail::Field
objects will be returned.
Mail::Field
objects, which should all be of the same sub-class, and creates a new
object in that same class.
This constructor is nor defined in Mail::Field
as there is no generic way to combine the various field types. Each
sub-class should define its own combine constructor, if combining is
possible/allowed.
int((7 + #elements) / #elements)
_header_pkg_name
subroutine in Mail::Field
$CommentsMailTo = "perl5@dcs.ed.ac.uk"; include("../syssies_footer.inc");?>