{
    "mode": "perldoc",
    "parameter": "Mail::Message::Field::Fast",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Mail%3A%3AMessage%3A%3AField%3A%3AFast/json",
    "generated": "2026-06-10T13:44:26Z",
    "synopsis": "See Mail::Message::Field",
    "sections": {
        "NAME": {
            "content": "Mail::Message::Field::Fast - one line of a message header\n",
            "subsections": []
        },
        "INHERITANCE": {
            "content": "Mail::Message::Field::Fast\nis a Mail::Message::Field\nis a Mail::Reporter\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "See Mail::Message::Field\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This is the faster, but less flexible implementation of a header field. The data is stored in an\narray, and some hacks are made to speeds things up. Be gentle with me, and consider that each\nmessage contains many of these lines, so speed is very important here.\n\nExtends \"DESCRIPTION\" in Mail::Message::Field.\n",
            "subsections": []
        },
        "OVERLOADED": {
            "content": "Extends \"OVERLOADED\" in Mail::Message::Field.\n\noverload: \"\"\nInherited, see \"OVERLOADED\" in Mail::Message::Field\n\noverload: 0+\nInherited, see \"OVERLOADED\" in Mail::Message::Field\n\noverload: <=>\nInherited, see \"OVERLOADED\" in Mail::Message::Field\n\noverload: bool\nInherited, see \"OVERLOADED\" in Mail::Message::Field\n\noverload: cmp\nInherited, see \"OVERLOADED\" in Mail::Message::Field\n",
            "subsections": []
        },
        "METHODS": {
            "content": "Extends \"METHODS\" in Mail::Message::Field.\n",
            "subsections": [
                {
                    "name": "Constructors",
                    "content": "Extends \"Constructors\" in Mail::Message::Field.\n\n$obj->clone()\nInherited, see \"Constructors\" in Mail::Message::Field\n\nMail::Message::Field::Fast->new($data)\nThe constructor of this object does not follow the usual practise within the Mail::Box\nsuite: it does not use the constructor Mail::Reporter::new(). Therefor it has no logging or\ntracing facilities.\n\nThe method can be used in one of the following ways:\n\n*   new LINE\n\nPass a LINE as it could be found in a file: a (possibly folded) line which is terminated\nby a new-line.\n\n*   new NAME, (BODY|OBJECTS), [ATTRIBUTES]\n\nA set of values which shape the line.\n\nCreate a new header field object. Specify the whole LINE at once, and it will be split-up\nfor you. I case you already have the parts of the header line, you may specify them\nseparately as NAME and BODY.\n\nIn case you specify a single OBJECT, or a reference to an array of OBJECTS, these objects\nare processed to become suitable to fill a field, usually by simple strification. When you\nspecify one or more Mail::Address objects, these are transformed into a string using their\n\"format\" method. You may also add one Mail::Message::Field, whose body is taken. In case of\nan array, the elements are joined into one string with a comma.\n\nATTRIBUTES can be exactly one string which may contain multiple attributes at once, quoted\nand formatted as required in RFC2822. As alternative, list of key-value pairs can be used.\nIn this case, the values will get quoted if needed and everything formatted as the protocol\ndemands.\n\n-Option--Defined in     --Default\nlog     Mail::Reporter   <disabled>\ntrace   Mail::Reporter   <disabled>\n\nlog => LEVEL\ntrace => LEVEL\n\nexample:\n\nmy $mime = Mail::Message::Field->new(\n'Content-Type: text/plain; charset=US-ASCII');\n\nmy $mime = Mail::Message::Field->new(\n'Content-Type' => 'text/plain; charset=US-ASCII');\n\nmy $mime = Mail::Message::Field->new(\n'Content-Type' => 'text/plain', 'charset=US-ASCII');\n\nmy $mime = Mail::Message::Field->new(\n'Content-Type' => 'text/plain', charset => 'Latin1');\n\nmy $mime = Mail::Message::Field->new(\nTo => Mail::Address->new('My', 'me@example.com');\n\nmy $mime = Mail::Message::Field->new(\nCc => [ Mail::Address->new('You', 'you@example.com')\n, Mail::Address->new('His', 'he@example.com')\n]);\n\nBut in practice, you can simply call\n\nmy $head = Mail::Message::Head->new;\n$head->add( 'Content-Type' => 'text/plain'\n, charset => 'utf8');\n\nwhich implicitly calls this constructor (when needed). You can specify the same things for\nMail::Message::Head::Complete::add() as this \"new\" accepts.\n"
                },
                {
                    "name": "The field",
                    "content": "Extends \"The field\" in Mail::Message::Field.\n\n$obj->isStructured()\nMail::Message::Field::Fast->isStructured()\nInherited, see \"The field\" in Mail::Message::Field\n\n$obj->length()\nInherited, see \"The field\" in Mail::Message::Field\n\n$obj->nrLines()\nInherited, see \"The field\" in Mail::Message::Field\n\n$obj->print( [$fh] )\nInherited, see \"The field\" in Mail::Message::Field\n\n$obj->size()\nInherited, see \"The field\" in Mail::Message::Field\n\n$obj->string( [$wrap] )\nInherited, see \"The field\" in Mail::Message::Field\n\n$obj->toDisclose()\nInherited, see \"The field\" in Mail::Message::Field\n"
                },
                {
                    "name": "Access to the name",
                    "content": "Extends \"Access to the name\" in Mail::Message::Field.\n\n$obj->Name()\nInherited, see \"Access to the name\" in Mail::Message::Field\n\n$obj->name()\nInherited, see \"Access to the name\" in Mail::Message::Field\n\n$obj->wellformedName( [STRING] )\nInherited, see \"Access to the name\" in Mail::Message::Field\n"
                },
                {
                    "name": "Access to the body",
                    "content": "Extends \"Access to the body\" in Mail::Message::Field.\n\n$obj->body()\nInherited, see \"Access to the body\" in Mail::Message::Field\n\n$obj->folded()\nInherited, see \"Access to the body\" in Mail::Message::Field\n\n$obj->foldedBody( [$body] )\nInherited, see \"Access to the body\" in Mail::Message::Field\n\n$obj->stripCFWS( [STRING] )\nMail::Message::Field::Fast->stripCFWS( [STRING] )\nInherited, see \"Access to the body\" in Mail::Message::Field\n\n$obj->unfoldedBody( [$body, [$wrap]] )\nInherited, see \"Access to the body\" in Mail::Message::Field\n"
                },
                {
                    "name": "Access to the content",
                    "content": "Extends \"Access to the content\" in Mail::Message::Field.\n\n$obj->addresses()\nInherited, see \"Access to the content\" in Mail::Message::Field\n\n$obj->attribute( $name, [$value] )\nInherited, see \"Access to the content\" in Mail::Message::Field\n\n$obj->attributes()\nInherited, see \"Access to the content\" in Mail::Message::Field\n\n$obj->comment( [STRING] )\nInherited, see \"Access to the content\" in Mail::Message::Field\n\n$obj->study()\nInherited, see \"Access to the content\" in Mail::Message::Field\n\n$obj->toDate( [$time] )\nMail::Message::Field::Fast->toDate( [$time] )\nInherited, see \"Access to the content\" in Mail::Message::Field\n\n$obj->toInt()\nInherited, see \"Access to the content\" in Mail::Message::Field\n"
                },
                {
                    "name": "Other methods",
                    "content": "Extends \"Other methods\" in Mail::Message::Field.\n\n$obj->dateToTimestamp(STRING)\nMail::Message::Field::Fast->dateToTimestamp(STRING)\nInherited, see \"Other methods\" in Mail::Message::Field\n"
                },
                {
                    "name": "Internals",
                    "content": "Extends \"Internals\" in Mail::Message::Field.\n\n$obj->consume( $line | <$name,<$body|$objects>> )\nInherited, see \"Internals\" in Mail::Message::Field\n\n$obj->defaultWrapLength( [$length] )\nInherited, see \"Internals\" in Mail::Message::Field\n\n$obj->fold( $name, $body, [$maxchars] )\nMail::Message::Field::Fast->fold( $name, $body, [$maxchars] )\nInherited, see \"Internals\" in Mail::Message::Field\n\n$obj->setWrapLength( [$length] )\nInherited, see \"Internals\" in Mail::Message::Field\n\n$obj->stringifyData(STRING|ARRAY|$objects)\nInherited, see \"Internals\" in Mail::Message::Field\n\n$obj->unfold(STRING)\nInherited, see \"Internals\" in Mail::Message::Field\n"
                },
                {
                    "name": "Error handling",
                    "content": "Extends \"Error handling\" in Mail::Message::Field.\n\n$obj->AUTOLOAD()\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->addReport($object)\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->defaultTrace( [$level]|[$loglevel, $tracelevel]|[$level, $callback] )\nMail::Message::Field::Fast->defaultTrace( [$level]|[$loglevel, $tracelevel]|[$level, $callback]\n)\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->errors()\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->log( [$level, [$strings]] )\nMail::Message::Field::Fast->log( [$level, [$strings]] )\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->logPriority($level)\nMail::Message::Field::Fast->logPriority($level)\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->logSettings()\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->notImplemented()\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->report( [$level] )\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->reportAll( [$level] )\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->trace( [$level] )\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->warnings()\nInherited, see \"Error handling\" in Mail::Reporter\n"
                },
                {
                    "name": "Cleanup",
                    "content": "Extends \"Cleanup\" in Mail::Message::Field.\n\n$obj->DESTROY()\nInherited, see \"Cleanup\" in Mail::Reporter\n"
                }
            ]
        },
        "DETAILS": {
            "content": "Extends \"DETAILS\" in Mail::Message::Field.\n",
            "subsections": []
        },
        "DIAGNOSTICS": {
            "content": "Warning: Field content is not numerical: $content\nThe numeric value of a field is requested (for instance the \"Lines\" or \"Content-Length\"\nfields should be numerical), however the data contains weird characters.\n\nWarning: Illegal character in field name $name\nA new field is being created which does contain characters not permitted by the RFCs. Using\nthis field in messages may break other e-mail clients or transfer agents, and therefore\nmutulate or extinguish your message.\n\nError: Package $package does not implement $method.\nFatal error: the specific package (or one of its superclasses) does not implement this\nmethod where it should. This message means that some other related classes do implement this\nmethod however the class at hand does not. Probably you should investigate this and probably\ninform the author of the package.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "This module is part of Mail-Message distribution version 3.012, built on February 11, 2022.\nWebsite: http://perl.overmeer.net/CPAN/\n",
            "subsections": []
        },
        "LICENSE": {
            "content": "Copyrights 2001-2022 by [Mark Overmeer <markov@cpan.org>]. For other contributors see ChangeLog.\n\nThis program is free software; you can redistribute it and/or modify it under the same terms as\nPerl itself. See http://dev.perl.org/licenses/\n",
            "subsections": []
        }
    },
    "summary": "Mail::Message::Field::Fast - one line of a message header",
    "flags": [],
    "examples": [],
    "see_also": []
}