Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re: Re: Re: moving emails between folders with Win32::OLE

by RayRay459 (Pilgrim)
on May 14, 2002 at 17:40 UTC ( [id://166508]=note: print w/replies, xml ) Need Help??


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 trouble figuring out what the storeid is. i looked at the page http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cdo/html/_olemsg_folder_object.asp
and i can't seem to get a grip on how that would work in my code. I must be missing something in this line that makes it think that it doesn't have the right number of parameters. i'm getting errors that say :
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 the line :
$item->{MoveTo}( $Folder5 );
<banging head against my desk> i wish i could make this work. Can anyone help? Thanks again Strat for your postings. I do appreciate your help. Ray

Replies are listed 'Best First'.
Re^5: moving emails between folders with Win32::OLE
by Anonymous Monk on Sep 12, 2011 at 11:06 UTC
    Perhaps not the fastest reply but since I had the same problem and searching I ended up on this node...
    I got it working with;
    $item->Move($Folder5);

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://166508]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-24 01:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found