| 1 | #!/usr/bin/perl | ||
| 2 | |||
| 3 | package Mail::Summary::Tools::ArchiveLink::Gmane; | ||
| 4 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1 | ▶ | use URI; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | ▶ | use URI::QueryParam; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 1 | with "Mail::Summary::Tools::ArchiveLink::Base"; | |
| 10 | |||
| 11 | 3 | ▶ | sub message_uri { |
|
Subroutine
message_uri: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 12 | 3 | my $self = shift; | |
| 13 | |||
| 14 | 3 | my $uri = URI->new( 'http://mid.gmane.org/' ); | |
| 15 | 3 | $uri->path( $self->message_id ); | |
| 16 | |||
| 17 | 3 | return $uri; | |
| 18 | } | ||
| 19 | |||
| 20 | 3 | ▶ | sub thread_uri { |
|
Subroutine
thread_uri: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 21 | 3 | my $self = shift; | |
| 22 | |||
| 23 | 3 | my $uri = URI->new( 'http://news.gmane.org/find-root.php' ); | |
| 24 | 3 | $uri->query_param( message_id => sprintf( '<%s>', $self->message_id ) ); | |
| 25 | |||
| 26 | 3 | return $uri; | |
| 27 | } | ||
| 28 | |||
| 29 | 1 | __PACKAGE__; | |
| 30 | |||
| 31 | __END__ | ||