Hopefully someone can help me out here, I've poked around at CDO, but still cant figure things out here. Basically I've got a bunch of client-side rules that move messages from the Inbox to a public folder. What I've been trying to do is have the rule run when I'm not logged in, now I've tried writing stuff in C# what uses IMAP, but alas... you can't copy a message to a public folder using IMAP with Exchange 2000. Does anyone have any code, know of any applications, or have any other ideas that could help me out? Thanks!
There are a number of way you could go about doing this in C# you could use WebDAV to get the stream of the item from the inbox and then post it to the public folder see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/e2k3/e2k3/_exch2k_getting_an_items_stream_http.asp . Another option is to do this in CDOEX/Exoledb locally on the server or in a Event sink (the advantage of this is that the copy is done the instant the message arrives) a disadvantage to using this method is that it changes that received time of the message and you also lose the mapi properties on a message as well so you need to include extra code to make sure these properties are set or copied as needed. Using MAPI is usually a better option although unsupported in C# eg something like this can be done with VBS and CDO 1.2 to copy a items from a mailbox to a public folder and via versa http://gsexdev.blogspot.com/2005/05/script-to-copy-public-folder-contacts.html . If its just one mailbox your dealing with then setting the public folder as an alternate recipient (forwarding) for the email is the easiest way to achieve what you want to do. Cheers Glen "John Simpson" wrote in message news:J4jTf.162445$B94.50112@pd7tw3no... > Hopefully someone can help me out here, > > I've poked around at CDO, but still cant figure things out here. > Basically I've got a bunch of client-side rules that move messages from > the Inbox to a public folder. What I've been trying to do is have the > rule run when I'm not logged in, now I've tried writing stuff in C# what > uses IMAP, but alas... you can't copy a message to a public folder using > IMAP with Exchange 2000. Does anyone have any code, know of any > applications, or have any other ideas that could help me out? > > Thanks! >
Thanks for taking the time to reply!!! You totally saved me, thanks! "Glen Scales [MVP]" wrote in message news:%23Io2$E7SGHA.4976@TK2MSFTNGP11.phx.gbl... > There are a number of way you could go about doing this in C# you could > use WebDAV to get the stream of the item from the inbox and then post it > to the public folder see > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/e2k3/e2k3/_exch2k_getting_an_items_stream_http.asp . > Another option is to do this in CDOEX/Exoledb locally on the server or in > a Event sink (the advantage of this is that the copy is done the instant > the message arrives) a disadvantage to using this method is that it > changes that received time of the message and you also lose the mapi > properties on a message as well so you need to include extra code to make > sure these properties are set or copied as needed. Using MAPI is usually a > better option although unsupported in C# eg something like this can be > done with VBS and CDO 1.2 to copy a items from a mailbox to a public > folder and via versa > http://gsexdev.blogspot.com/2005/05/script-to-copy-public-folder-contacts.html . > > If its just one mailbox your dealing with then setting the public folder > as an alternate recipient (forwarding) for the email is the easiest way to > achieve what you want to do. > > Cheers > Glen > > "John Simpson" wrote in message > news:J4jTf.162445$B94.50112@pd7tw3no... >> Hopefully someone can help me out here, >> >> I've poked around at CDO, but still cant figure things out here. >> Basically I've got a bunch of client-side rules that move messages from >> the Inbox to a public folder. What I've been trying to do is have the >> rule run when I'm not logged in, now I've tried writing stuff in C# what >> uses IMAP, but alas... you can't copy a message to a public folder using >> IMAP with Exchange 2000. Does anyone have any code, know of any >> applications, or have any other ideas that could help me out? >> >> Thanks! >> > >