How to Get serverID from LongID in EASHi guys,<br/> <br/> I am searching exchange server for mails using free text as query the response i get is longId and other fields... but what i really want is serverId of the mail is there any way to get the search result as serverId or is there anyway i can get serverId from longId.... as my requirement is serverid only not the body, subject or any other fields<br/> <br/> Regards,<br/> Manjunath<br/> __________________________________________________________________________________________________<br/> <a title="http://www.ceveni.com/" href="http://www.ceveni.com/" title="http://www.ceveni.com/">http://www.ceveni.com/</a>© 2009 Microsoft Corporation. All rights reserved.Mon, 26 Oct 2009 06:11:23 Z4f0c3caf-9fb1-4b81-864b-c0227d1cde2fhttp://social.msdn.microsoft.com/Forums/en-US/os_exchangeprotocols/thread/4f0c3caf-9fb1-4b81-864b-c0227d1cde2f#4f0c3caf-9fb1-4b81-864b-c0227d1cde2fhttp://social.msdn.microsoft.com/Forums/en-US/os_exchangeprotocols/thread/4f0c3caf-9fb1-4b81-864b-c0227d1cde2f#4f0c3caf-9fb1-4b81-864b-c0227d1cde2fEas coderhttp://social.msdn.microsoft.com/Profile/en-US/?user=Eas%20coderHow to Get serverID from LongID in EASHi guys,<br/> <br/> I am searching exchange server for mails using free text as query the response i get is longId and other fields... but what i really want is serverId of the mail is there any way to get the search result as serverId or is there anyway i can get serverId from longId.... as my requirement is serverid only not the body, subject or any other fields<br/> <br/> Regards,<br/> Manjunath<br/> __________________________________________________________________________________________________<br/> <a title="http://www.ceveni.com/" href="http://www.ceveni.com/" title="http://www.ceveni.com/">http://www.ceveni.com/</a>Thu, 28 May 2009 07:18:17 Z2009-05-28T07:19:27Zhttp://social.msdn.microsoft.com/Forums/en-US/os_exchangeprotocols/thread/4f0c3caf-9fb1-4b81-864b-c0227d1cde2f#a30647a3-c275-47dd-bae1-bbd3fb97e5bdhttp://social.msdn.microsoft.com/Forums/en-US/os_exchangeprotocols/thread/4f0c3caf-9fb1-4b81-864b-c0227d1cde2f#a30647a3-c275-47dd-bae1-bbd3fb97e5bdTom Devey - MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Tom%20Devey%20-%20MSFTHow to Get serverID from LongID in EAS<span style="font-family:Calibri;font-size:small"><span style="font-family:'Verdana','sans-serif';color:black"> <p class=MsoNormal style="margin:0in 0in 12pt"><span style="font-family:'Verdana','sans-serif';color:black;font-size:10pt">Hi Manjunath,</span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-family:'Verdana','sans-serif';color:black;font-size:10pt">This forum is for the technical discussion covering the Microsoft Exchange Server protocols documentation that can <span style=""> </span>be found <a href="http://msdn.microsoft.com/en-us/library/cc307725.aspx"><span style="color:#0033cc">here</span></a>. <span style=""> </span>The protocol documentation provides detailed technical specifications for Microsoft proprietary protocols used by Microsoft Exchange Server to communicate with other Microsoft products.  If you have specific questions related to the Microsoft Exchange Server protocol documentation then this is the place that we can help.</span></p> <p style="background:white"><span style="font-family:'Verdana','sans-serif';color:#080808;font-size:10pt">If your questions is specific to Exchange Server development there is a helpful technical community on the Microsoft TechNet that is focused on Exchange Server development found </span><span style="font-family:'Verdana','sans-serif';color:black;font-size:10pt"><a href="http://social.technet.microsoft.com/forums/en-US/exchangesvrdevelopment/threads/"><span style="color:#0033cc">here</span></a></span><span style="font-family:'Verdana','sans-serif';color:#080808;font-size:10pt">. <span style=""> </span>The forum covers topics such as Exchange Web Services (EWS), WebDAV, APIs, application conversion and general application development against Exchange Server.</span></p> <p style="background:white"><span style="font-family:'Verdana','sans-serif';color:black;font-size:10pt">When posting to this forum or the Exchange Development Forum it would be helpful to provide background information about your environment and proposed solution such as:</span></p> <p class=MsoNormal style="text-indent:-0.25in;margin:0in 0in 0pt 48pt;background:white;tab-stops:list 1.0in"><span style="font-family:Symbol;color:black;font-size:10pt"><span style="">·<span style="font:7pt &quot;Times New Roman&quot;">         </span></span></span><span style="font-family:'Verdana','sans-serif';color:black;font-size:10pt">Exchange Server version. </span></p> <p class=MsoNormal style="text-indent:-0.25in;margin:0in 0in 0pt 48pt;background:white;tab-stops:list 1.0in"><span style="font-family:Symbol;color:black;font-size:10pt"><span style="">·<span style="font:7pt &quot;Times New Roman&quot;">         </span></span></span><span style="font-family:'Verdana','sans-serif';color:black;font-size:10pt">Programming language used to develop your solution. </span></p> <p class=MsoNormal style="text-indent:-0.25in;margin:0in 0in 0pt 48pt;background:white;tab-stops:list 1.0in"><span style="font-family:Symbol;color:black;font-size:10pt"><span style="">·<span style="font:7pt &quot;Times New Roman&quot;">         </span></span></span><span style="font-family:'Verdana','sans-serif';color:black;font-size:10pt">Description of your Exchange topology.</span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-family:'Verdana','sans-serif';color:black;font-size:10pt"><br/>This would better enable other developers on the forum to help you with your questions.<br/></span></p> </span></span><hr class="sig">Developer ConsultantThu, 28 May 2009 17:04:08 Z2009-05-28T17:04:08Zhttp://social.msdn.microsoft.com/Forums/en-US/os_exchangeprotocols/thread/4f0c3caf-9fb1-4b81-864b-c0227d1cde2f#d527c501-38ad-42b7-b664-07d20f5a37dbhttp://social.msdn.microsoft.com/Forums/en-US/os_exchangeprotocols/thread/4f0c3caf-9fb1-4b81-864b-c0227d1cde2f#d527c501-38ad-42b7-b664-07d20f5a37dbTom Devey - MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Tom%20Devey%20-%20MSFTHow to Get serverID from LongID in EAS<p>Hi Manjunath,<br/><br/>Sorry I missed the reference to Exchange ActiveSync (EAS) in the title.  I have contacted Dominic Salemno who will be investigating your question and will be following up with you. </p><hr class="sig">Developer ConsultantThu, 28 May 2009 17:46:29 Z2009-05-28T17:46:29Zhttp://social.msdn.microsoft.com/Forums/en-US/os_exchangeprotocols/thread/4f0c3caf-9fb1-4b81-864b-c0227d1cde2f#ec094bc4-1ca2-451e-b0cb-5fe83962b87ahttp://social.msdn.microsoft.com/Forums/en-US/os_exchangeprotocols/thread/4f0c3caf-9fb1-4b81-864b-c0227d1cde2f#ec094bc4-1ca2-451e-b0cb-5fe83962b87aEas coderhttp://social.msdn.microsoft.com/Profile/en-US/?user=Eas%20coderHow to Get serverID from LongID in EASGuys any solution?<br/>Mon, 01 Jun 2009 05:13:05 Z2009-06-01T05:13:05Zhttp://social.msdn.microsoft.com/Forums/en-US/os_exchangeprotocols/thread/4f0c3caf-9fb1-4b81-864b-c0227d1cde2f#d8aa998e-b95f-4703-8f32-919249ca6ce2http://social.msdn.microsoft.com/Forums/en-US/os_exchangeprotocols/thread/4f0c3caf-9fb1-4b81-864b-c0227d1cde2f#d8aa998e-b95f-4703-8f32-919249ca6ce2Dominic Salemno MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Dominic%20Salemno%20MSFTHow to Get serverID from LongID in EAS<p>Manjunath,<br/><br/>We are still investigating this and will be following up with you as things progress.<br/><br/><strong>Dominic Salemno<br/>Senior Support Escalation Engineer<br/></strong></p>Thu, 04 Jun 2009 14:29:46 Z2009-06-04T14:29:46Zhttp://social.msdn.microsoft.com/Forums/en-US/os_exchangeprotocols/thread/4f0c3caf-9fb1-4b81-864b-c0227d1cde2f#79f87e9f-dd70-481f-8c70-4bddde19c62ehttp://social.msdn.microsoft.com/Forums/en-US/os_exchangeprotocols/thread/4f0c3caf-9fb1-4b81-864b-c0227d1cde2f#79f87e9f-dd70-481f-8c70-4bddde19c62eDominic Salemno MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Dominic%20Salemno%20MSFTHow to Get serverID from LongID in EASManjunath,<br/><br/>Could you provide any more information or some samples to clarify what you are asking?<br/><br/><strong>Dominic Salemno<br/>Senior Support Escalation Engineer<br/></strong>Tue, 16 Jun 2009 17:04:28 Z2009-06-16T17:04:28Zhttp://social.msdn.microsoft.com/Forums/en-US/os_exchangeprotocols/thread/4f0c3caf-9fb1-4b81-864b-c0227d1cde2f#cfdf52fb-c1a8-4f8a-a663-af82146567bahttp://social.msdn.microsoft.com/Forums/en-US/os_exchangeprotocols/thread/4f0c3caf-9fb1-4b81-864b-c0227d1cde2f#cfdf52fb-c1a8-4f8a-a663-af82146567baDominic Salemno MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Dominic%20Salemno%20MSFTHow to Get serverID from LongID in EASManjunath,<br/><br/>I need more information to proceed with answering your question. I will archive the previous information provided until you can provide some examples or more clarifying information.<br/><br/><strong>Dominic Salemno<br/>Senior Support Escalation Engineer<br/></strong>Mon, 22 Jun 2009 13:56:45 Z2009-06-22T13:56:45Zhttp://social.msdn.microsoft.com/Forums/en-US/os_exchangeprotocols/thread/4f0c3caf-9fb1-4b81-864b-c0227d1cde2f#3abf0899-4856-4c33-9c16-a26dea7a6327http://social.msdn.microsoft.com/Forums/en-US/os_exchangeprotocols/thread/4f0c3caf-9fb1-4b81-864b-c0227d1cde2f#3abf0899-4856-4c33-9c16-a26dea7a6327SubodhKumarhttp://social.msdn.microsoft.com/Profile/en-US/?user=SubodhKumarHow to Get serverID from LongID in EASHi Dominic,<br/> <br/> I am Manjunath's colleague and will be folowing up this query loop from now onwards.<br/> <br/> Let me clarify the doubt once again. <br/> <br/> We have Thunderbird as email client, We have configured exchagne account into Thunderbird.<br/> <br/> There is an option( in Thunderbird) to search a mail in exchange server. Suppose you put some string say &quot;Dominic&quot; either in TO,CC,BCC ,FROM,BODY  fields  of search window of Thunderbird.<br/> <br/> It will send that search request to exchange server through proxy server( which we have developed, we are mapping IMAP requests coming from Thunderbird to Exchane active sync request).<br/> <br/> Exchange server  will search the mails containing the string&quot;Dominic&quot; and it will send the ID's of those emails. <br/> The Id's will be LONGIDs' like this &quot;asfafhsfas985239242424lkfksfs8325nefafsaf9052l5nwkfnwsr903252lnwkfs982534klsfakslfksafalfaaf&quot;.<br/> <br/> Once I get this LONGID from exchange server , I need to convert it to SERVER ID which will be in numeric format.<br/> Once I will convert it to Server Id, then I can easily find out the mail which is having this server Id.<br/> <br/> We want to convert this LONG ID to SERVER ID.<br/> <br/> Please provide your support on this.<br/> <br/> Regards,<br/> Subodh<br/> <br/> <br/> <br/>Wed, 08 Jul 2009 11:30:32 Z2009-07-08T11:30:32Zhttp://social.msdn.microsoft.com/Forums/en-US/os_exchangeprotocols/thread/4f0c3caf-9fb1-4b81-864b-c0227d1cde2f#5c737619-ab81-43a8-a26e-839f1ccd4196http://social.msdn.microsoft.com/Forums/en-US/os_exchangeprotocols/thread/4f0c3caf-9fb1-4b81-864b-c0227d1cde2f#5c737619-ab81-43a8-a26e-839f1ccd4196Dominic Salemno MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Dominic%20Salemno%20MSFTHow to Get serverID from LongID in EASHi Subodh,<br/><br/>I am investigating this issue with the most recent information provided.<br/><br/><strong>Dominic Salemno<br/>Senior Support Escalation Engineer<br/></strong>Sat, 11 Jul 2009 18:52:41 Z2009-07-11T18:52:41Zhttp://social.msdn.microsoft.com/Forums/en-US/os_exchangeprotocols/thread/4f0c3caf-9fb1-4b81-864b-c0227d1cde2f#03efe469-0238-4819-82ee-ec2b4271657dhttp://social.msdn.microsoft.com/Forums/en-US/os_exchangeprotocols/thread/4f0c3caf-9fb1-4b81-864b-c0227d1cde2f#03efe469-0238-4819-82ee-ec2b4271657dDominic Salemno MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Dominic%20Salemno%20MSFTHow to Get serverID from LongID in EASHi Subodh,<br/><br/>I am still investigating this issue, I will update you as things progress.<br/><br/><strong>Dominic Salemno<br/>Senior Support Escalation Engineer<br/></strong>Wed, 05 Aug 2009 18:32:15 Z2009-08-05T18:32:15Zhttp://social.msdn.microsoft.com/Forums/en-US/os_exchangeprotocols/thread/4f0c3caf-9fb1-4b81-864b-c0227d1cde2f#41c3ddfa-bb9e-4cd9-8b4b-c900d3a3e867http://social.msdn.microsoft.com/Forums/en-US/os_exchangeprotocols/thread/4f0c3caf-9fb1-4b81-864b-c0227d1cde2f#41c3ddfa-bb9e-4cd9-8b4b-c900d3a3e867Dominic Salemno MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Dominic%20Salemno%20MSFTHow to Get serverID from LongID in EAS<p class=MsoNormal style="margin:0in 0in 0pt 0.5in"><span style="font-family:Calibri;font-size:small">Greetings </span><span style="font-family:'Verdana','sans-serif';color:black;font-size:10pt">Manjunath,</span></p> <p class=MsoNormal style="margin:0in 0in 0pt 0.5in"><span style="font-family:'Verdana','sans-serif';color:black;font-size:10pt"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt 0.5in"><span style="font-family:'Verdana','sans-serif';color:black;font-size:10pt">I have finished my investigation into this matter and this is what I have concluded:</span></p> <p class=MsoNormal style="margin:0in 0in 0pt 0.5in"><span style="font-family:Calibri;font-size:small"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt 0.5in"><span style="font-family:Calibri;font-size:small">There is no direct conversion possible from <strong>LongId</strong> to <strong>ServerId</strong>. However, you could perform a search query as outlined in <strong>[MS-ASCMD]</strong> (</span><a href="http://msdn.microsoft.com/en-us/library/dd299441.aspx"><span style="font-family:Calibri;font-size:small">http://msdn.microsoft.com/en-us/library/dd299441.aspx</span></a><span style="font-family:Calibri;font-size:small">) in <strong>Section 4.5.3</strong> to obtain the <strong>LongId</strong> of a message. Subsequently, you then could use the <strong>LongId</strong> in a <strong>Fetch</strong> operation to retrieve the message in question (Detailed in <strong>Section 4.5.3.4</strong>).</span></p> <p class=MsoNormal style="margin:0in 0in 0pt 0.5in"><span style="font-family:Calibri;font-size:small"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt 0.5in"><span style="font-family:Calibri;font-size:small">Does this information assist you?<br/><br/><strong>Dominic Salemno<br/>Senior Support Escalation Engineer<br/></strong></span></p>Thu, 06 Aug 2009 18:39:41 Z2009-08-06T18:39:41Zhttp://social.msdn.microsoft.com/Forums/en-US/os_exchangeprotocols/thread/4f0c3caf-9fb1-4b81-864b-c0227d1cde2f#9e4fc654-206f-41b1-a6b0-754108395e2dhttp://social.msdn.microsoft.com/Forums/en-US/os_exchangeprotocols/thread/4f0c3caf-9fb1-4b81-864b-c0227d1cde2f#9e4fc654-206f-41b1-a6b0-754108395e2dEas coderhttp://social.msdn.microsoft.com/Profile/en-US/?user=Eas%20coderHow to Get serverID from LongID in EASThanx for the support domnicMon, 26 Oct 2009 06:11:23 Z2009-10-26T06:11:23Z