Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: Tue, 29 Apr 2008 12:19:31 -0700,    group: microsoft.public.exchange.development        back       


Move Item from Inbox to Draft or some temp folder, Change Status   
Hello,

Using Exchange 2007, WebServices

I would like to move an email item from the inbox to the draft folder or 
some tempItem

I would like to change the status of an email item in the Inbox to like 
"Flag Completed"

I just can not find sample code.  The Programming Model is confusing...

any links or specific code to what I need is greatly appreciated.

Thank You,

LVP
date: Tue, 29 Apr 2008 12:19:31 -0700   author:   LVP

Re: Move Item from Inbox to Draft or some temp folder, Change Status   
You might want to have a look at 
http://groups.google.com.au/group/microsoft.public.exchange.development/browse_thread/thread/b31bda50451a770c/df5a3c2d6fb5313a 
this moves mail from the inbox to a spam folder is the subject is prefix 
with SPAM:

To change the status of an item you need to use an updateitem request 
something simular to 
http://msdn.microsoft.com/en-us/library/aa493909(EXCHG.80).aspx but you will 
need to modify the PR_FLAG_STATUS 0x10900003 mapi property which controls 
the Flags. You may also need to set the text that's associated with the flag 
using the 
http://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-000000000046}/8530001E 
named property.

There is a lot more information in the Exchange SDK on EWS which you can 
download from https://msdn.microsoft.com/exchange you may also want to 
consider buy a book such as 
http://www.microsoft.com/MSPress/books/10724.aspx which goes into a lot more 
detail.

Rgds
Glen

"LVP"  wrote in message 
news:uNBP03iqIHA.4476@TK2MSFTNGP04.phx.gbl...
> Hello,
>
> Using Exchange 2007, WebServices
>
> I would like to move an email item from the inbox to the draft folder or 
> some tempItem
>
> I would like to change the status of an email item in the Inbox to like 
> "Flag Completed"
>
> I just can not find sample code.  The Programming Model is confusing...
>
> any links or specific code to what I need is greatly appreciated.
>
> Thank You,
>
> LVP
>
>
>
date: Wed, 30 Apr 2008 13:11:19 +1000   author:   Glen Scales [MVP]

Re: Move Item from Inbox to Draft or some temp folder, Change Status   
Glen,

already figured out moving emails from inbox to deletedItems folder after 
few ours of googleing.

Your link and code was  helpful in finding a user defined folder and not 
only distinguished folders,  did not test yet to see how it works and if so.

Updating the contact link helps but sill I have many things to figure out on 
how to update the status of an item ( email item ).
Not sure if the status of any item is stored on the server or just the 
client.
Like Mark email as "Read", "Completed" etc..

The following link does not work at all
 http://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-000000000046}/8530001ERest of links lead to sea of info, I am lost.over all, Thank you very much for taking the time to help me out.Thanks again, I learned from you,LVP"Glen Scales [MVP]"  wrote in messagenews:Of0Bf$mqIHA.672@TK2MSFTNGP02.phx.gbl...> You might want to have a look athttp://groups.google.com.au/group/microsoft.public.exchange.development/browse_thread/thread/b31bda50451a770c/df5a3c2d6fb5313a this moves mail from theinbox to a spam folder is the subject is prefix with SPAM:>> To change the status of an item you need to use an updateitem requestsomething simular tohttp://msdn.microsoft.com/en-us/library/aa493909(EXCHG.80).aspx but you willneed to modify the PR_FLAG_STATUS 0x10900003 mapi property which controlsthe Flags. You may also need to set the text that's associated with the flagusing thehttp://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-000000000046}/8530001E named property.>> There is a lot more information in the Exchange SDK on EWS which you candownload from https://msdn.microsoft.com/exchange you may also want toconsider buy a book such ashttp://www.microsoft.com/MSPress/books/10724.aspx which goes into a lot moredetail.>> Rgds> Glen>> "LVP"  wrote in messagenews:uNBP03iqIHA.4476@TK2MSFTNGP04.phx.gbl...>> Hello,>>>> Using Exchange 2007, WebServices>>>> I would like to move an email item from the inbox to the draft folder orsome tempItem>>>> I would like to change the status of an email item in the Inbox to like"Flag Completed">>>> I just can not find sample code.  The Programming Model is confusing...>>>> any links or specific code to what I need is greatly appreciated.>>>> Thank You,>>>> LVP>>>>>>>>
date: Wed, 30 Apr 2008 08:29:19 -0700   author:   LVP

Re: Move Item from Inbox to Draft or some temp folder, Change Status   
That was a named property not a URL (they kind of look the same) 
FollowupFlags and MessageFlags (Read Status ect) are two different 
properties i suggest getting hold of a Mapi editor like Outlookspy or 
MFCmapi and you can view all the Mapi properties yourself this is great tool 
for doing development.

To mark a message Read you need to use something like

            ExtendedPropertyType sfSentFlag = new ExtendedPropertyType();
            PathToExtendedFieldType epExPath = new 
PathToExtendedFieldType();
            epExPath.PropertyTag = "0x0E07";
            epExPath.PropertyType = MapiPropertyTypeType.Integer;
            sfSentFlag.ExtendedFieldURI = epExPath;
            sfSentFlag.Item = "1";

cheers
Glen




"LVP"  wrote in message 
news:e%23552btqIHA.4884@TK2MSFTNGP06.phx.gbl...
> Glen,
>
> already figured out moving emails from inbox to deletedItems folder after 
> few ours of googleing.
>
> Your link and code was  helpful in finding a user defined folder and not 
> only distinguished folders,  did not test yet to see how it works and if 
> so.
>
> Updating the contact link helps but sill I have many things to figure out 
> on how to update the status of an item ( email item ).
> Not sure if the status of any item is stored on the server or just the 
> client.
> Like Mark email as "Read", "Completed" etc..
>
> The following link does not work at all
> http://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-000000000046}/8530001ERest 
> of links lead to sea of info, I am lost.over all, Thank you very much for 
> taking the time to help me out.Thanks again, I learned from you,LVP"Glen 
> Scales [MVP]"  wrote in 
> messagenews:Of0Bf$mqIHA.672@TK2MSFTNGP02.phx.gbl...> You might want to 
> have a look 
> athttp://groups.google.com.au/group/microsoft.public.exchange.development/browse_thread/thread/b31bda50451a770c/df5a3c2d6fb5313a 
> this moves mail from theinbox to a spam folder is the subject is prefix 
> with SPAM:>> To change the status of an item you need to use an updateitem 
> requestsomething simular 
> tohttp://msdn.microsoft.com/en-us/library/aa493909(EXCHG.80).aspx but you 
> willneed to modify the PR_FLAG_STATUS 0x10900003 mapi property which 
> controlsthe Flags. You may also need to set the text that's associated 
> with the flagusing 
> thehttp://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-000000000046}/8530001E 
> named property.>> There is a lot more information in the Exchange SDK on 
> EWS which you candownload from https://msdn.microsoft.com/exchange you may 
> also want toconsider buy a book such 
> ashttp://www.microsoft.com/MSPress/books/10724.aspx which goes into a lot 
> moredetail.>> Rgds> Glen>> "LVP"  wrote in 
> messagenews:uNBP03iqIHA.4476@TK2MSFTNGP04.phx.gbl...>> Hello,>>>> Using 
> Exchange 2007, WebServices>>>> I would like to move an email item from the 
> inbox to the draft folder orsome tempItem>>>> I would like to change the 
> status of an email item in the Inbox to like"Flag Completed">>>> I just 
> can not find sample code.  The Programming Model is confusing...>>>> any 
> links or specific code to what I need is greatly appreciated.>>>> Thank 
> You,>>>> LVP>>>>>>>>
>
date: Thu, 1 May 2008 15:15:50 +1000   author:   Glen Scales [MVP]

Re: Move Item from Inbox to Draft or some temp folder, Change Status   
Thank you Glen you been great help.

LVP

"Glen Scales [MVP]"  wrote in message 
news:uV2Bup0qIHA.1736@TK2MSFTNGP04.phx.gbl...
> That was a named property not a URL (they kind of look the same) 
> FollowupFlags and MessageFlags (Read Status ect) are two different 
> properties i suggest getting hold of a Mapi editor like Outlookspy or 
> MFCmapi and you can view all the Mapi properties yourself this is great 
> tool for doing development.
>
> To mark a message Read you need to use something like
>
>            ExtendedPropertyType sfSentFlag = new ExtendedPropertyType();
>            PathToExtendedFieldType epExPath = new 
> PathToExtendedFieldType();
>            epExPath.PropertyTag = "0x0E07";
>            epExPath.PropertyType = MapiPropertyTypeType.Integer;
>            sfSentFlag.ExtendedFieldURI = epExPath;
>            sfSentFlag.Item = "1";
>
> cheers
> Glen
>
>
>
>
> "LVP"  wrote in message 
> news:e%23552btqIHA.4884@TK2MSFTNGP06.phx.gbl...
>> Glen,
>>
>> already figured out moving emails from inbox to deletedItems folder after 
>> few ours of googleing.
>>
>> Your link and code was  helpful in finding a user defined folder and not 
>> only distinguished folders,  did not test yet to see how it works and if 
>> so.
>>
>> Updating the contact link helps but sill I have many things to figure out 
>> on how to update the status of an item ( email item ).
>> Not sure if the status of any item is stored on the server or just the 
>> client.
>> Like Mark email as "Read", "Completed" etc..
>>
>> The following link does not work at all
>> http://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-000000000046}/8530001ERest 
>> of links lead to sea of info, I am lost.over all, Thank you very much for 
>> taking the time to help me out.Thanks again, I learned from you,LVP"Glen 
>> Scales [MVP]"  wrote in 
>> messagenews:Of0Bf$mqIHA.672@TK2MSFTNGP02.phx.gbl...> You might want to 
>> have a look 
>> athttp://groups.google.com.au/group/microsoft.public.exchange.development/browse_thread/thread/b31bda50451a770c/df5a3c2d6fb5313a 
>> this moves mail from theinbox to a spam folder is the subject is prefix 
>> with SPAM:>> To change the status of an item you need to use an 
>> updateitem requestsomething simular 
>> tohttp://msdn.microsoft.com/en-us/library/aa493909(EXCHG.80).aspx but you 
>> willneed to modify the PR_FLAG_STATUS 0x10900003 mapi property which 
>> controlsthe Flags. You may also need to set the text that's associated 
>> with the flagusing 
>> thehttp://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-000000000046}/8530001E 
>> named property.>> There is a lot more information in the Exchange SDK on 
>> EWS which you candownload from https://msdn.microsoft.com/exchange you 
>> may also want toconsider buy a book such 
>> ashttp://www.microsoft.com/MSPress/books/10724.aspx which goes into a lot 
>> moredetail.>> Rgds> Glen>> "LVP"  wrote in 
>> messagenews:uNBP03iqIHA.4476@TK2MSFTNGP04.phx.gbl...>> Hello,>>>> Using 
>> Exchange 2007, WebServices>>>> I would like to move an email item from 
>> the inbox to the draft folder orsome tempItem>>>> I would like to change 
>> the status of an email item in the Inbox to like"Flag Completed">>>> I 
>> just can not find sample code.  The Programming Model is confusing...>>>> 
>> any links or specific code to what I need is greatly appreciated.>>>> 
>> Thank You,>>>> LVP>>>>>>>>
>>
>
>
date: Tue, 6 May 2008 16:48:35 -0700   author:   LVP

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us