silent11 has asked for the wisdom of the Perl Monks concerning the following question:
Here is the code:
#!/usr/bin/perl # simplified version use strict; use Win32::OLE qw(in with); use Win32::OLE::Const 'Microsoft Outlook'; my $mailbox = "Mailbox - Silent11"; $Win32::OLE::Warn = 3; my $outlook = Win32::OLE->new('OutLook.Application','Quit') or die "Could not created outlook object."; my $ol = Win32::OLE::Const->Load($outlook); my $inbox = $outlook->GetNameSpace("MAPI")->Folders($mailbox)->Folders +("Inbox"); for (in $inbox->{Items}) { print "Subject : $_->{Subject}\n"; print "Sender : $_->{SenderName}\n"; print "Attachments : $_->{Attachments}{Count}\n"; print "\n\n"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: --force Outlook to allow perl script access to my mail
by jacques (Priest) on Feb 21, 2003 at 01:17 UTC | |
Re: --force Outlook to allow perl script access to my mail
by blackstarr (Friar) on Feb 21, 2003 at 10:16 UTC | |
Re: --force Outlook to allow perl script access to my mail
by pantonini (Initiate) on Feb 21, 2003 at 13:57 UTC | |
Re: --force Outlook to allow perl script access to my mail
by Anonymous Monk on Feb 21, 2003 at 03:20 UTC |