« blib/lib/Mail/AuthenticationResults/Token/QuotedString.pm
↑ Summary
lib/Mail/AuthenticationResults/FoldableHeader.pm »
| 1 | package Mail::AuthenticationResults::Header::AuthServID; | ||
| 2 | # ABSTRACT: Class modelling the AuthServID part of the Authentication Results Headerr | ||
| 3 | |||
| 4 | require 5.008; | ||
| 5 | use strict; | ||
| 6 | use warnings; | ||
| 7 | our $VERSION = '2.20260216'; # VERSION | ||
| 8 | use Carp; | ||
| 9 | |||
| 10 | use base 'Mail::AuthenticationResults::Header::Base'; | ||
| 11 | |||
| 12 | |||
| 13 | sub _HAS_VALUE{ return 1; } | ||
| 14 | |||
| 15 | sub _HAS_CHILDREN{ return 1; } | ||
| 16 | |||
| 17 | sub _ALLOWED_CHILDREN { | ||
| 18 | my ( $self, $child ) = @_; | ||
| 19 | return 1 if ref $child eq 'Mail::AuthenticationResults::Header::Comment'; | ||
| 20 | return 1 if ref $child eq 'Mail::AuthenticationResults::Header::SubEntry'; | ||
| 21 | return 1 if ref $child eq 'Mail::AuthenticationResults::Header::Version'; | ||
| 22 | return 0; | ||
| 23 | } | ||
| 24 | |||
| 25 | sub build_string { | ||
| 26 | my ( $self, $header ) = @_; | ||
| 27 | |||
| 28 | $header->string( $self->stringify( $self->value() ) ); | ||
| 29 | foreach my $child ( @{ $self->children() } ) { | ||
| 30 | $header->space( ' ' ); | ||
| 31 | #$header->concat( $child->as_string_prefix() ); | ||
| 32 | $child->build_string( $header ); | ||
| 33 | } | ||
| 34 | |||
| 35 | return; | ||
| 36 | } | ||
| 37 | |||
| 38 | 1; | ||
| 39 | |||
| 40 | __END__ |