in reply to Re: Re: Re: moving emails between folders with Win32::OLE
in thread moving emails between folders with Win32::OLE

I'm having a problem identifying the store id.. I found this link : http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cdo/html/_olemsg_moveto_method_folder_object_.asp and even with this :
$item->{MoveTo}( $Folder5 ); i get this error Win32::OLE(0.1501) error 0x8002000e: "Invalid number of parameters" in METHOD/PROPERTYGET "MoveTo" at C:\scripts\perl\email\getSearchE +mail.pl li ne 27 with this line: $item->MoveTo( $Folder5); i get Win32::OLE(0.1501) error 0x80020006: "Unknown name" in GetIDsOfNames of "MoveTo" at C:\scripts\perl\email\getSearchEm +ail.pl lin e 27
still can't seem to find the right line to make the current item in my loop move to another folder. Anything else i can try? Thnx, Ray