Cnutt::Feed::Actions::Get - Directly put the content of a feed into a mailbox


cnutt-feed documentation Contained in the cnutt-feed distribution.

Index


Code Index:

NAME

Top

Cnutt::Feed::Actions::Get - Directly put the content of a feed into a mailbox

VERSION

Top

Version 1.0

DESCRIPTION

Top

This file is part of cnutt-feed. You should read its documentation.

get

Given an url and a mailbox, download the entries and output them as email messages.


cnutt-feed documentation Contained in the cnutt-feed distribution.
package Cnutt::Feed::Actions::Get;

use strict;
use warnings;

our $VERSION = '1.0';

use Cnutt::Feed::Mailbox;

sub get {
    my ($rconfig, $url, $mb) = @_;

    my $count = Cnutt::Feed::Mailbox->fetch($url, $mb,
                                            $rconfig->{html},
                                            $rconfig->{delete},
                                            $rconfig->{verbose});

    print STDERR "Found $count new entries\n";
}

1;