| 1 | package MIME::Field::ContDisp; | ||
| 2 | |||
| 3 | |||
| 4 | =head1 NAME | ||
| 5 | |||
| 6 | MIME::Field::ContDisp - a "Content-disposition" field | ||
| 7 | |||
| 8 | |||
| 9 | =head1 DESCRIPTION | ||
| 10 | |||
| 11 | A subclass of Mail::Field. | ||
| 12 | |||
| 13 | I<Don't use this class directly... its name may change in the future!> | ||
| 14 | Instead, ask Mail::Field for new instances based on the field name! | ||
| 15 | |||
| 16 | |||
| 17 | =head1 SYNOPSIS | ||
| 18 | |||
| 19 | use Mail::Field; | ||
| 20 | use MIME::Head; | ||
| 21 | |||
| 22 | # Create an instance from some text: | ||
| 23 | $field = Mail::Field->new('Content-disposition', $text); | ||
| 24 | |||
| 25 | # Inline or attachment? | ||
| 26 | $type = $field->type; | ||
| 27 | |||
| 28 | # Recommended filename? | ||
| 29 | $filename = $field->filename; | ||
| 30 | |||
| 31 | =head1 SEE ALSO | ||
| 32 | |||
| 33 | L<MIME::Field::ParamVal>, L<Mail::Field> | ||
| 34 | |||
| 35 | =head1 AUTHOR | ||
| 36 | |||
| 37 | Eryq (F<eryq@zeegee.com>), ZeeGee Software Inc (F<http://www.zeegee.com>). | ||
| 38 | Dianne Skoll (dianne@skoll.ca) | ||
| 39 | |||
| 40 | |||
| 41 | =cut | ||
| 42 | |||
| 43 | 36 | require 5.001; | |
| 44 | 36 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 45 | 36 | ▶ | use MIME::Field::ParamVal; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 46 | 36 | ▶ | use vars qw($VERSION @ISA); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 47 | |||
| 48 | 36 | @ISA = qw(MIME::Field::ParamVal); | |
| 49 | |||
| 50 | # The package version, both in 1.23 style *and* usable by MakeMaker: | ||
| 51 | 36 | $VERSION = "5.522"; | |
| 52 | |||
| 53 | # Install it: | ||
| 54 | 36 | bless([])->register('Content-disposition'); | |
| 55 | |||
| 56 | #------------------------------ | ||
| 57 | |||
| 58 | 17 | ▶ | sub filename { |
|
Subroutine
filename: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 59 | 17 | shift->paramstr('filename', @_); | |
| 60 | } | ||
| 61 | |||
| 62 | 32 | ▶ | sub type { |
|
Subroutine
type: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 63 | 32 | shift->paramstr('_', @_); | |
| 64 | } | ||
| 65 | |||
| 66 | #------------------------------ | ||
| 67 | 36 | 1; | |
| 68 | |||