Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery


by diotalevi (Canon)
on Dec 07, 2004 at 23:41 UTC ( #413055=note: print w/replies, xml ) Need Help??

in reply to

The preceding has a few minor bugs and overall, isn't terribly useful as programs go. See Notes::OLE - Lotus Domino via Win32::OLE for an actual Domino developer's take on Win32::OLE access to Lotus Domino.

my $Database = $Notes->GetDatabase( ... ) or die ...

This will never fail. If the database does not exist then the database will not be opened and the $Database->{'IsOpen'} property will be false. Test that instead. Someone else already noted that "mail\$userid.nsf" is incorrect and either "mail\\$userid.nsf" or better, $Database->OpenMail() should be used.

$AllDocuments->GetNthDocument( ... )

This is known to be a wastefully expensive way to access a Document in a DocumentCollection. Instead of getting documents by number, use an iterator:

my $doc = $AllDocuments->GetFirstDocument; while ( $doc ) { ... $doc = $AllDocuments->GetNextDocument( $doc ); }

Replies are listed 'Best First'.
by Anonymous Monk on Mar 03, 2005 at 21:56 UTC
    I can't seem to get the attachments. any help here?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://413055]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2018-06-18 08:06 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (109 votes). Check out past polls.