perl-libnet.git  about / heads / tags
Unnamed repository; edit this file 'description' to name the repository.
blob 53a626af75c5ed68612d4eafd50942d19e113319 396 bytes (raw)
$ git show read-early:demos/pop3	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
 
#!perl

use 5.008001;

use strict;
use warnings;

use blib;
use Getopt::Long;
use Net::POP3;

our $opt_debug = 0;
our $opt_user = undef;

GetOptions(qw(debug user=s));

my $pop = Net::POP3->new('backup3', Debug => $opt_debug ? 6 : 0);

my $user = $opt_user || $ENV{USER} || $ENV{LOGNAME};

my $count = $pop->login($user);

if($count)
 {
  my $m = $pop->get(1);
  print @$m if $m;
 }

$pop->quit;

git clone https://80x24.org/perl-libnet.git