Extends "METHODS" in Mail::Message::Head::Complete.
Constructors
Extends "Constructors" in Mail::Message::Head::Complete.
Mail::Message::Head::Partial->build( [PAIR|$field], ... )
Inherited, see "Constructors" in Mail::Message::Head::Complete
$obj->clone( [@names|ARRAY|Regexps] )
Inherited, see "Constructors" in Mail::Message::Head::Complete
Mail::Message::Head::Partial->new(%options)
Inherited, see "Constructors" in Mail::Message::Head
Theheader
Extends "The header" in Mail::Message::Head::Complete.
$obj->isDelayed()
Inherited, see "The header" in Mail::Message::Head
$obj->isEmpty()
Inherited, see "The header" in Mail::Message::Head
$obj->isModified()
Inherited, see "The header" in Mail::Message::Head
$obj->knownNames()
Inherited, see "The header" in Mail::Message::Head
$obj->message( [$message] )
Inherited, see "The header" in Mail::Message::Head
$obj->modified( [BOOLEAN] )
Inherited, see "The header" in Mail::Message::Head
$obj->nrLines()
Inherited, see "The header" in Mail::Message::Head::Complete
$obj->orderedFields()
Inherited, see "The header" in Mail::Message::Head
$obj->size()
Inherited, see "The header" in Mail::Message::Head::Complete
$obj->wrap($integer)
Inherited, see "The header" in Mail::Message::Head::Complete
Accesstotheheader
Extends "Access to the header" in Mail::Message::Head::Complete.
$obj->add( $field | $line | <$name, $body, [$attrs]> )
Inherited, see "Access to the header" in Mail::Message::Head::Complete
$obj->addListGroup($object)
Inherited, see "Access to the header" in Mail::Message::Head::Complete
$obj->addResentGroup($resent_group|$data)
Inherited, see "Access to the header" in Mail::Message::Head::Complete
$obj->addSpamGroup($object)
Inherited, see "Access to the header" in Mail::Message::Head::Complete
$obj->cleanupOrderedFields()
The header maintains a list of fields which are ordered in sequence of definition. It is required to
maintain the header order to keep the related fields of resent groups together. The fields are also
included in a hash, sorted on their name for fast access.
The references to field objects in the hash are real, those in the ordered list are weak. So when
field objects are removed from the hash, their references in the ordered list are automagically
undef'd.
When many fields are removed, for instance with removeFields() or removeFieldsExcept(), then it is
useful to remove the list of undefs from the ordered list as well. In those cases, this method is
called automatically, however you may have your own reasons to call this method.
$obj->count($name)
Inherited, see "Access to the header" in Mail::Message::Head::Complete
$obj->delete($name)
Inherited, see "Access to the header" in Mail::Message::Head::Complete
$obj->get( $name, [$index] )
Inherited, see "Access to the header" in Mail::Message::Head
$obj->grepNames( [@names|ARRAY|Regexps] )
Inherited, see "Access to the header" in Mail::Message::Head::Complete
$obj->listGroup()
Inherited, see "Access to the header" in Mail::Message::Head::Complete
$obj->names()
Inherited, see "Access to the header" in Mail::Message::Head::Complete
$obj->print( [$fh] )
Inherited, see "Access to the header" in Mail::Message::Head::Complete
$obj->printSelected($fh, <STRING|Regexp>, ...)
Inherited, see "Access to the header" in Mail::Message::Head::Complete
$obj->printUndisclosed( [$fh] )
Inherited, see "Access to the header" in Mail::Message::Head::Complete
$obj->removeContentInfo()
Inherited, see "Access to the header" in Mail::Message::Head::Complete
$obj->removeField($field)
Inherited, see "Access to the header" in Mail::Message::Head::Complete
$obj->removeFields( <STRING|Regexp>, ... )
Remove the fields from the header which are exactly named 'STRING' (case insensitive) or match the
regular expresssion. Do not forget to add the 'i' modifier to the regexp, because fields are case
insensitive.
See also removeField() which is used to remove one field object from the header. The reverse
specification can be made with removeFieldsExcept().
example:
$head->removeFields('bcc', 'received');
$head->removeFields( qr/^content-/i );
$obj->removeFieldsExcept(STRING|Regexp, ...)
Remove all fields from the header which are not equivalent to one of the specified STRINGs (case-
insensitive) and which are not matching one of the REGular EXPressions. Do not forget to add the 'i'
modifier to the Regexp, because fields are case insensitive.
See also removeField() which is used to remove one field object from the header. The reverse
specification can be made with removeFields().
example:
$head->removeFieldsExcept('subject', qr/^content-/i );
$head->removeFieldsExcept( qw/subject to from sender cc/ );
$obj->removeListGroup()
Removes all header lines which are used to administer mailing lists. Which fields that are is
explained in Mail::Message::Head::ListGroup. Returned is the number of removed lines.
$obj->removeResentGroups()
Removes all header lines which are member of a resentgroup, which are explained in
Mail::Message::Head::ResentGroup. Returned is the number of removed lines.
For removing single groups (for instance because you want to keep the last), use
Mail::Message::Head::FieldGroup::delete().
$obj->removeSpamGroups()
Removes all header lines which were produced by spam detection and spam-fighting software. Which
fields that are is explained in Mail::Message::Head::SpamGroup. Returned is the number of removed
lines.
$obj->resentGroups()
Inherited, see "Access to the header" in Mail::Message::Head::Complete
$obj->reset($name, @fields)
Inherited, see "Access to the header" in Mail::Message::Head::Complete
$obj->set( $field | $line | <$name, $body, [$attrs]> )
Inherited, see "Access to the header" in Mail::Message::Head::Complete
$obj->spamDetected()
Inherited, see "Access to the header" in Mail::Message::Head::Complete
$obj->spamGroups( [$names] )
Inherited, see "Access to the header" in Mail::Message::Head::Complete
$obj->string()
Inherited, see "Access to the header" in Mail::Message::Head::Complete
$obj->study( $name, [$index] )
Inherited, see "Access to the header" in Mail::Message::Head
Aboutthebody
Extends "About the body" in Mail::Message::Head::Complete.
$obj->guessBodySize()
Inherited, see "About the body" in Mail::Message::Head
$obj->guessTimeStamp()
Inherited, see "About the body" in Mail::Message::Head::Complete
$obj->isMultipart()
Inherited, see "About the body" in Mail::Message::Head
$obj->recvstamp()
Inherited, see "About the body" in Mail::Message::Head::Complete
$obj->timestamp()
Inherited, see "About the body" in Mail::Message::Head::Complete
Internals
Extends "Internals" in Mail::Message::Head::Complete.
$obj->addNoRealize($field)
Inherited, see "Internals" in Mail::Message::Head
$obj->addOrderedFields($fields)
Inherited, see "Internals" in Mail::Message::Head
$obj->createFromLine()
Inherited, see "Internals" in Mail::Message::Head::Complete
$obj->createMessageId()
Inherited, see "Internals" in Mail::Message::Head::Complete
$obj->fileLocation()
Inherited, see "Internals" in Mail::Message::Head
$obj->load()
Inherited, see "Internals" in Mail::Message::Head
$obj->messageIdPrefix( [$prefix, [$hostname]|CODE] )
Mail::Message::Head::Partial->messageIdPrefix( [$prefix, [$hostname]|CODE] )
Inherited, see "Internals" in Mail::Message::Head::Complete
$obj->moveLocation($distance)
Inherited, see "Internals" in Mail::Message::Head
$obj->read($parser)
Inherited, see "Internals" in Mail::Message::Head
$obj->setNoRealize($field)
Inherited, see "Internals" in Mail::Message::Head
Errorhandling
Extends "Error handling" in Mail::Message::Head::Complete.
$obj->AUTOLOAD()
Inherited, see "Error handling" in Mail::Reporter
$obj->addReport($object)
Inherited, see "Error handling" in Mail::Reporter
$obj->defaultTrace( [$level]|[$loglevel, $tracelevel]|[$level, $callback] )
Mail::Message::Head::Partial->defaultTrace( [$level]|[$loglevel, $tracelevel]|[$level, $callback] )
Inherited, see "Error handling" in Mail::Reporter
$obj->errors()
Inherited, see "Error handling" in Mail::Reporter
$obj->log( [$level, [$strings]] )
Mail::Message::Head::Partial->log( [$level, [$strings]] )
Inherited, see "Error handling" in Mail::Reporter
$obj->logPriority($level)
Mail::Message::Head::Partial->logPriority($level)
Inherited, see "Error handling" in Mail::Reporter
$obj->logSettings()
Inherited, see "Error handling" in Mail::Reporter
$obj->notImplemented()
Inherited, see "Error handling" in Mail::Reporter
$obj->report( [$level] )
Inherited, see "Error handling" in Mail::Reporter
$obj->reportAll( [$level] )
Inherited, see "Error handling" in Mail::Reporter
$obj->trace( [$level] )
Inherited, see "Error handling" in Mail::Reporter
$obj->warnings()
Inherited, see "Error handling" in Mail::Reporter
Cleanup
Extends "Cleanup" in Mail::Message::Head::Complete.
$obj->DESTROY()
Inherited, see "Cleanup" in Mail::Reporter