即时摘要,但它不是邮件的完整总结,请有人告诉如何获得它
我的编码:
//Logging in Gmail server to get data
objClient.Credentials = new System.Net.NetworkCredential("xxx@gmail.com", "password");
//reading data and converting to string
response = Encoding.UTF8.GetString(objClient.DownloadData(@"https://mail.google.com/mail/feed/atom"));
response = response.Replace(
@"<feed version=""0.3"" xmlns=""http://purl.org/atom/ns#"">", @"<feed>");
//loading into an XML so we can get information easily
doc2.LoadXml(response);
//nr of emails
string nr = doc2.SelectSingleNode(@"/feed/fullcount").InnerText;
//Reading the title and the summary for every email
foreach (XmlNode node in doc2.SelectNodes(@"/feed/entry"))
{
title = node.SelectSingleNode("title").InnerText;
summary = node.SelectSingleNode("summary").InnerText;
}