I can open Lotus Notes api using Perl, without errors, I can also get a list of views, which includes Inbox, but when I try to read messages from this view, does it seem empty? What can i do wrong? (it actually seems that something has changed on the side of notes since this code was used before)
The result of the code is below: NAME of View: ($ Inbox) has an account: 0, etc.
CODE:
use Win32::OLE; my $Notes = Win32::OLE->new('Notes.NotesSession') or die "Cannot start Lotus Notes Session object.\n"; my $database = $Notes->GetDatabase("",'mail\VIMM.nsf'); $database->OpenMail; my $array_ref = $database->{Views}; foreach my $view (@$array_ref) { my $name = $view->{Name}; print "NAME of View is: $name "; $view = $database->GetView($name); print "has count of: ", $view->{entryCount}, "\n"; }
source share