index > Team Foundation Server - Work Item Tracking > Getting Email body part from an email using pop3 adapter

Getting Email body part from an email using pop3 adapter


VenkateshBabu
See http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=802572&SiteID=1


Yogita Manghnani (MSFT)
Yogita Manghnani
Thank you very much Yogita Manghnani.. the post was really very useful for me..
But now, iam getting an error if i use custom pipeline as the link provided by you suggests.

My actual problem is, i have to get both the subject and body part of the email. If i want to retrieve subject alone then in my receive location i can set mime type to true,body part index=0 and use the property pop3.subject. but i could not able to get the body part.

So i went for custom pipeline approach, wherein i should set mime type to false in receive location and use mime decoder in the pipeline.
So in my orchestration i had to construct a message which includes the following code in mesage assignment..
temp=Microsoft.XLANGs.Pipeline.XLANGPipelineManager.ExecuteReceivePipeline
(typeof(EmailReceivePipeline),oXmessage);

In expression shape:

temp.MoveNext();
construct msgBody
{
msgBody=null;
temp.GetCurrent(msgBody);
}

But now i am getting this error:
'Microsoft.XLANGs.BaseTypes.XLANGMessage' must be Xml serializable to be a message part type'.....

Can anyone help me out in this..

Regards,
Venkat


VenkateshBabu
reply 3

You can use google to search for other answers

 

More Articles

·Changes are not shown in the Form
·Assign Work Item on Check-Out
·How to delete previously imported items from a GlobalList
·Cannot Open Microsoft Project
·WorkItem API problem: Cannot update Field Completed Work programa...
·Status of a linked work item
·I would like to make a fount end browser for work items
·Make a new field depending on "Assigned To"
·Scheduling with VSTS and MS Project
·Grouping Query Clauses
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

·View history in MS Excel
·Work Item Tracking Custom Controls
·TFS VersionControl SQL transaction Log S¡­
·Apply column options to multiple queries
·Error TFS30170
·Customizing Project Alerts
·How can I add a work item whose type is ¡­
·'Custom' parameters in queries
·Creating a Visual Studio Add-in for &quo¡­
·How can I know who's link to my WI??
·Inbox like query ?
·MS Project/TFS work items won't move whe¡­
·Question about events service
·Get all changesets number that linked to¡­
·Rules with multi-level picklist.

Hot Articles

·Getting the server names cached on the l¡­
·Refresh on the TeamFoundationServer obje¡­
·Organizing Projects into Products or Cus¡­
·Set new field - Owner inside of WI and p¡­
·Automate "Add solution to Source co¡­
·The Work Items node has a Red x
·Custom work item editor
·Removing a work item
·Status of a linked work item
·Error - Object reference not set to an i¡­
·Task "WITs" from Group "W¡­
·Related items
·Check in action in work items
·Strange Problem --- SQL Server 2005 and ¡­
·Work Item object model - problem with ed¡­

Recommend Articles

·Global Lists & Default Values
·TFS Work Item WebPart Authentication Fai¡­
·I am have a problem with getting TFS to ¡­
·WorkItemStore null reference
·Customizing the trigger of the workitem ¡­
·Migrating work items and setting the &qu¡­
·WorkItemChangedEvent doesn't retrieve &q¡­
·New TFS integration: Mindjet Requirement¡­
·Deleting Work Items
·Getting Email body part from an email us¡­
·Customizing Team Explorer
·Work Item Queries limitations
·Linking work items
·link work-items with other work-items , ¡­
·Can't browse work items