Cool Gwen,
hat schon funktioniert. :)
Code sieht nun so aus:
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
30
31
32
33
# Always be safe
use strict;
use warnings;
# Use the module
use Mail::IMAPClient;
use IO::Socket::SSL;
my $imap = Mail::IMAPClient->new(
User => 'xxxxxxx',
Password => 'xxxxxxxx',
Uid => 1,
Debug => 1,
Socket => IO::Socket::SSL->new (
Proto => 'tcp',
PeerAddr => 'server.name.de',
PeerPort => 993,
SSL_verify_mode => 'SSL_VERIFY_PEER',
SSL_verifycn_scheme => 'imap',
),
) or die "IMAP Failure: $@";
# $imap->Socket($ssl);
# $imap->connect;
my $folders = $imap->folders
or die "List folders error: ", $imap->LastError, "\n";
print "Folders: @$folders\n";
$imap->logout
or die "Logout error: ", $imap->LastError, "\n";
Vielen Dank fuer den Schubs in die richtige Richtung.
CAT