diff options
Diffstat (limited to 'lib/PublicInbox/SearchMsg.pm')
-rw-r--r-- | lib/PublicInbox/SearchMsg.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/PublicInbox/SearchMsg.pm b/lib/PublicInbox/SearchMsg.pm index 014f4909..a5565345 100644 --- a/lib/PublicInbox/SearchMsg.pm +++ b/lib/PublicInbox/SearchMsg.pm @@ -176,4 +176,11 @@ sub path { $self->{path} = _get_term_val($self, 'XPATH', qr/\AXPATH/); # path } +sub type { + my ($self) = @_; + my $type = $self->{type}; + return $type if defined $type; + $self->{type} = _get_term_val($self, 'T', qr/\AT/); +} + 1; |