GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Mail::SpamAssassin::Header::ParameterHeader(3) User Contributed Perl Documentation Mail::SpamAssassin::Header::ParameterHeader(3)

Mail::SpamAssassin::Header::ParameterHeader - a header with an optional main value and subsequent name=value pairs

    my $header = Mail::SpamAssassin::Header::ParameterHeader->new('text/plain; charset="utf-8"');
    print $header->value; # text/plain
    print $header->parameter('charset'); # utf-8

This class is used internally by SpamAssassin to parse headers that contain a main value followed by name=value pairs.

Creates a new instance of the class. Accepts the raw header value as a string and an optional hash reference of options.

The following options are available:

If set to a false value (default), all comments will be removed from the header value. Otherwise, comments will be preserved.
Returns the main value of the header.
Returns a list of parameter names.
Returns the value(s) of the parameter with the given name. If there are multiple parameters with the same name, and the method is called in scalar context, only the first value is returned. If called in list context, all values are returned.
2025-04-29 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.