| 1 | package Cnutt::Feed::Actions::Get; | ||
| 2 | |||
| 3 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | =head1 NAME | ||
| 7 | |||
| 8 | Cnutt::Feed::Actions::Get - Directly put the content of a feed into a mailbox | ||
| 9 | |||
| 10 | =head1 VERSION | ||
| 11 | |||
| 12 | Version 1.0 | ||
| 13 | |||
| 14 | =cut | ||
| 15 | |||
| 16 | 2 | our $VERSION = '1.0'; | |
| 17 | |||
| 18 | =head1 DESCRIPTION | ||
| 19 | |||
| 20 | This file is part of cnutt-feed. You should read its documentation. | ||
| 21 | |||
| 22 | =cut | ||
| 23 | |||
| 24 | 2 | ▶ | use Cnutt::Feed::Mailbox; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 25 | |||
| 26 | =head2 get | ||
| 27 | |||
| 28 | Given an url and a mailbox, download the entries and output them as | ||
| 29 | email messages. | ||
| 30 | |||
| 31 | =cut | ||
| 32 | |||
| 33 | 0 | ▶ | sub get { |
|
Subroutine
get: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 34 | 0 | my ($rconfig, $url, $mb) = @_; | |
| 35 | |||
| 36 | my $count = Cnutt::Feed::Mailbox->fetch($url, $mb, | ||
| 37 | $rconfig->{html}, | ||
| 38 | $rconfig->{delete}, | ||
| 39 | 0 | $rconfig->{verbose}); | |
| 40 | |||
| 41 | 0 | print STDERR "Found $count new entries\n"; | |
| 42 | } | ||
| 43 | |||
| 44 | 2 | 1; | |