Thread Email als ungelesen markieren
(17 answers)
Opened by havi at 2005-10-14 13:06
Eine gute Site zum Thema ist http://www.outlookcode.com/d/cdo.htm
Listen der Folder sollte in etwas so gehen (ungetestet): Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 use Win32::OLE ('in'); use Win32::OLE::Const 'Microsoft Outlook'; use strict; $Win32::OLE::Warn = 3; # die on errors... my $olLib = 'Outlook.Application'; my $OlApp = Win32::OLE->GetActiveObject($olLib) || Win32::OLE->new($olLib, sub {$_[0]->Quit;}) || die "$olLib: $!"; # get already active object # Get Message Folder my $MsgFolder = $OlApp->GetNameSpace('MAPI')->GetDefaultFolder(olFolderInbox); foreach my $Folder (in $MsgFolder->Folders) { ... } Gruß
Thomas |