Thread Mail::Pop3Client (8 answers)
Opened by weismat at 2007-07-07 11:38

weismat
 2007-07-10 00:37
#78300 #78300
User since
2003-08-18
142 Artikel
BenutzerIn
[default_avatar]
Ich habe es jetzt mal mit MIME::Parser versucht und es funktioniert
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use strict;
use Mail::POP3Client;
use MIME::Parser;
my $pop = new Mail::POP3Client( USER => 'xxx',

PASSWORD => "xxx",

HOST => "pop.googlemail.com",

USESSL => 'true',
);
###open (MAIL, ">mail.txt");
print "Status: ". $pop->State()." No of email:". $pop->Count();
my $i=1;
if ($pop->Count()) {
my $message=$pop->HeadAndBody(1);
my $parser = MIME::Parser->new();
$parser->output_to_core();
my $entity = $parser->parse_data($message);
}
$pop->Reset();
$pop->Close();
exit;

schreibt sauber alle Attachments in das gleiche Verzeichnis wie das Skript.

View full thread Mail::Pop3Client