Accessing mail file

I am designing a perl script, using Win32::OLE that sends an e-mail out to Gmail, which then forward that e-mail back to our Notes server into a defined user’s mail box (call it Mail User, mailuser.nsf). The point is to take apart the time stamps on the header and chart time delays on out and inbound e-mail. This would run on CRON every 15-30 min. to give us ongoing mail performance.

The outbound part works fine and mail makes it into the inbox for Mail User. I can’t seem to get my script to connect to mailuser.nsf. Same script will open other .nsf databases. I’ve set delegation and also opened up access control on mailuser.nsf (both for anonymous – reader, default – reader, and my own user name on my development client machine).

None of these variants for opening the DB worked:

(connect to .nsf name)

my $db = $session-> GetDatabase(‘Server’, ‘mailuser.nsf’);

(create a drive map to server and file location)

my $db = $session-> GetDatabase(‘Server’,

‘H:\Domino\data\mail\mailuser.nsf’);

(relative folder location)

my $db = $session-> GetDatabase(‘Server’, ‘mail\mailuser.nsf’);

(connect to DB title - I know, this is dumb, but I am grasping at straws)

my $db = $session-> GetDatabase(‘Server’, ‘Mail User’);

Any hints are appreciated. I am guessing something is up with the security.

Subject: Accessing mail file

Found that this form works (from a post on the Perl Monks site):

my $db = $session-> GetDatabase(‘Server’, ‘\mail\mailuser.nsf’);

Can’t really say why the double back-slashes works. But it does.