257 lines
5.3 KiB
HTML
257 lines
5.3 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of Mail::Field::Generic</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>Mail::Field::Generic</H1>
|
|
Section: User Contributed Perl Documentation (3pm)<BR>Updated: 2019-07-25<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
Mail::Field::Generic - implementation for inspecific fields
|
|
<A NAME="lbAC"> </A>
|
|
<H2>INHERITANCE</H2>
|
|
|
|
|
|
|
|
|
|
|
|
<PRE>
|
|
Mail::Field::Generic
|
|
is a Mail::Field
|
|
|
|
</PRE>
|
|
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
|
|
|
|
|
|
|
|
<PRE>
|
|
use Mail::Field;
|
|
my $field = Mail::Field->new('Subject', 'some subject text');
|
|
my $field = Mail::Field->new(subject => 'some subject text');
|
|
|
|
</PRE>
|
|
|
|
|
|
<A NAME="lbAE"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
|
|
|
|
A generic implementation for header fields without own
|
|
implementation. This is fine for fields like <TT>"Subject"</TT>, <TT>"X-Mailer"</TT>,
|
|
etc., where the field holds only a string of no particular
|
|
importance/format.
|
|
<P>
|
|
|
|
Extends ``<FONT SIZE="-1">DESCRIPTION''</FONT> in Mail::Field.
|
|
<A NAME="lbAF"> </A>
|
|
<H2>METHODS</H2>
|
|
|
|
|
|
|
|
Extends ``<FONT SIZE="-1">METHODS''</FONT> in Mail::Field.
|
|
<A NAME="lbAG"> </A>
|
|
<H3>Constructors</H3>
|
|
|
|
|
|
|
|
Extends ``Constructors'' in Mail::Field.
|
|
<DL COMPACT>
|
|
<DT id="1">Mail::Field::Generic-><B>combine</B>($fields)<DD>
|
|
|
|
|
|
Inherited, see ``Constructors'' in Mail::Field
|
|
<DT id="2">Mail::Field::Generic-><B>extract</B>( $tag, $head [, $index ] )<DD>
|
|
|
|
|
|
|
|
|
|
Inherited, see ``Constructors'' in Mail::Field
|
|
<DT id="3">Mail::Field::Generic-><B>new</B>( $tag [, <FONT SIZE="-1">STRING</FONT> | %options] )<DD>
|
|
|
|
|
|
|
|
|
|
Inherited, see ``Constructors'' in Mail::Field
|
|
</DL>
|
|
<A NAME="lbAH"> </A>
|
|
<H3>Fake constructors</H3>
|
|
|
|
|
|
|
|
|
|
|
|
Extends "``Fake'' constructors" in Mail::Field.
|
|
<DL COMPACT>
|
|
<DT id="4">$obj-><B>create</B>(%options)<DD>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<PRE>
|
|
-Option--Default
|
|
Text ''
|
|
|
|
</PRE>
|
|
|
|
|
|
<DL COMPACT><DT id="5"><DD>
|
|
<DL COMPACT>
|
|
<DT id="6">Text => <FONT SIZE="-1">STRING</FONT><DD>
|
|
|
|
|
|
</DL>
|
|
</DL>
|
|
|
|
<DL COMPACT><DT id="7"><DD>
|
|
</DL>
|
|
|
|
|
|
<DT id="8">$obj-><B>parse</B>( [<FONT SIZE="-1">STRING</FONT>] )<DD>
|
|
|
|
|
|
|
|
|
|
|
|
Set the new text, which is empty when no <FONT SIZE="-1">STRING</FONT> is provided.
|
|
</DL>
|
|
<A NAME="lbAI"> </A>
|
|
<H3>Accessors</H3>
|
|
|
|
|
|
|
|
Extends ``Accessors'' in Mail::Field.
|
|
<DL COMPACT>
|
|
<DT id="9">$obj-><B>set</B>(%options)<DD>
|
|
|
|
|
|
|
|
|
|
Inherited, see ``Accessors'' in Mail::Field
|
|
<DT id="10">$obj-><B>stringify</B>()<DD>
|
|
|
|
|
|
|
|
|
|
Inherited, see ``Accessors'' in Mail::Field
|
|
<DT id="11">$obj-><B>tag</B>()<DD>
|
|
|
|
|
|
|
|
|
|
|
|
<DT id="12">Mail::Field::Generic-><B>tag</B>()<DD>
|
|
|
|
|
|
|
|
Inherited, see ``Accessors'' in Mail::Field
|
|
</DL>
|
|
<A NAME="lbAJ"> </A>
|
|
<H3>Smart accessors</H3>
|
|
|
|
|
|
|
|
Extends ``Smart accessors'' in Mail::Field.
|
|
<DL COMPACT>
|
|
<DT id="13">$obj-><B>text</B>( [<FONT SIZE="-1">STRING</FONT>] )<DD>
|
|
|
|
|
|
|
|
|
|
Inherited, see ``Smart accessors'' in Mail::Field
|
|
</DL>
|
|
<A NAME="lbAK"> </A>
|
|
<H2>DETAILS</H2>
|
|
|
|
|
|
|
|
Extends ``<FONT SIZE="-1">DETAILS''</FONT> in Mail::Field.
|
|
<A NAME="lbAL"> </A>
|
|
<H2>DIAGNOSTICS</H2>
|
|
|
|
|
|
|
|
<DL COMPACT>
|
|
<DT id="14">Error: Undefined subroutine <method> called<DD>
|
|
|
|
|
|
Mail::Field objects use autoloading to compile new functionality.
|
|
Apparently, the method called is not implemented for the specific
|
|
class of the field object.
|
|
</DL>
|
|
<A NAME="lbAM"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
|
|
|
|
This module is part of the MailTools distribution,
|
|
<I><A HREF="http://perl.overmeer.net/mailtools/">http://perl.overmeer.net/mailtools/</A></I>.
|
|
<A NAME="lbAN"> </A>
|
|
<H2>AUTHORS</H2>
|
|
|
|
|
|
|
|
The MailTools bundle was developed by Graham Barr. Later, Mark
|
|
Overmeer took over maintenance without commitment to further development.
|
|
<P>
|
|
|
|
Mail::Cap by Gisle Aas <<A HREF="mailto:aas@oslonett.no">aas@oslonett.no</A>>.
|
|
Mail::Field::AddrList by Peter Orbaek <<A HREF="mailto:poe@cit.dk">poe@cit.dk</A>>.
|
|
Mail::Mailer and Mail::Send by Tim Bunce <<A HREF="mailto:Tim.Bunce@ig.co.uk">Tim.Bunce@ig.co.uk</A>>.
|
|
For other contributors see ChangeLog.
|
|
<A NAME="lbAO"> </A>
|
|
<H2>LICENSE</H2>
|
|
|
|
|
|
|
|
Copyrights 1995-2000 Graham Barr <<A HREF="mailto:gbarr@pobox.com">gbarr@pobox.com</A>> and
|
|
2001-2017 Mark Overmeer <<A HREF="mailto:perl@overmeer.net">perl@overmeer.net</A>>.
|
|
<P>
|
|
|
|
This program is free software; you can redistribute it and/or modify it
|
|
under the same terms as Perl itself.
|
|
See <I><A HREF="http://www.perl.com/perl/misc/Artistic.html">http://www.perl.com/perl/misc/Artistic.html</A></I>
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="15"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="16"><A HREF="#lbAC">INHERITANCE</A><DD>
|
|
<DT id="17"><A HREF="#lbAD">SYNOPSIS</A><DD>
|
|
<DT id="18"><A HREF="#lbAE">DESCRIPTION</A><DD>
|
|
<DT id="19"><A HREF="#lbAF">METHODS</A><DD>
|
|
<DL>
|
|
<DT id="20"><A HREF="#lbAG">Constructors</A><DD>
|
|
<DT id="21"><A HREF="#lbAH">Fake constructors</A><DD>
|
|
<DT id="22"><A HREF="#lbAI">Accessors</A><DD>
|
|
<DT id="23"><A HREF="#lbAJ">Smart accessors</A><DD>
|
|
</DL>
|
|
<DT id="24"><A HREF="#lbAK">DETAILS</A><DD>
|
|
<DT id="25"><A HREF="#lbAL">DIAGNOSTICS</A><DD>
|
|
<DT id="26"><A HREF="#lbAM">SEE ALSO</A><DD>
|
|
<DT id="27"><A HREF="#lbAN">AUTHORS</A><DD>
|
|
<DT id="28"><A HREF="#lbAO">LICENSE</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:47 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|