Leser: 20
1
2
Win32::OLE(0.1701) error 0x8002000e: "Unzulõssige Parameteranzahl"
in METHOD/PROPERTYGET "HomeAddressCountry" at C:\Dokumente und Einstellungen\admin\Desktop\outlook_structure.pl line 70
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
if ( $count ne 0 ) {
for $k (1 .. $count) {
my $export = 1;
my $contact = $folder->{Items}->Item($k);
for my $field ( @FIELDS ) {
my $string = $contact->{ $field->[0] };
if ( $string ) {
$string =~ s/ä/ae/g;
$string =~ s/ö/oe/g;
$string =~ s/ü/ue/g;
$string =~ s/Ä/Ae/g;
$string =~ s/Ö/Oe/g;
$string =~ s/Ü/Ue/g;
$string =~ s/ß/ss/g;
$string =~ s/é/e/g;
$string =~ s/[&\/\\]//g;
}
my $property = $field->[0]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
my @FIELDS = (
[ qw( Title ) ],
[ qw( LastName ) ],
[ qw( FirstName ) ],
[ qw( CompanyName ) ],
[ qw( BusinessAddressStreet ) ],
[ qw( BusinessAddressPostalCode ) ],
[ qw( BusinessAddressCity ) ],
[ qw( BusinessAddressCountry ) ],
[ qw( BusinessTelephoneNumber ) ],
[ qw( HomeAddressStreet ) ],
[ qw( HomeAddressPostalCode ) ],
[ qw( HomeAddressCity ) ],
[ qw( HomeAddressCountry ) ],
[ qw( HomeTelephoneNumber ) ],
[ qw( MobileTelephoneNumber ) ],
[ qw( Email1Address ) ],
);
1
2
3
4
5
6
7
8
9
10
11
my $outlook = get_outlook();
my $mapi = $outlook->GetNamespace('MAPI');
my $default_folder = $mapi->GetDefaultFolder(olFolderContacts);
my @all_folder_names;
my @all_folders;
my %hash = ();
my %args = get_args();
print_items($default_folder_)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/perl
use strict;
use warnings;
use Win32::OLE qw(in with);
use Win32::OLE::Const 'Microsoft Outlook';
$Win32::OLE::Warn = 0;
my $outlook = get_outlook();
my $mapi = $outlook->GetNamespace('MAPI');
my $default_folder = $mapi->GetDefaultFolder(olFolderContacts);
Win32::OLE->LastError();