Click here to Skip to main content
Click here to Skip to main content

RSS Technical Article

, 7 May 2007
Rate this:
Please Sign up or sign in to vote.
This document contains the detailed features of RSS and also the description of the critical bug with RSS Feed Duplication problem in Outlook 2007 and the Fix Developed by Sankha Biswas and Srinivasa Rao Ayyala Somayajula from Wipro Technologies to resolve this.

Introduction

This document details the RSS Features, usage and Critical Fix designed and Developed by 'Sankha Biswas' and 'Srinivasa Rao Ayyla Somayajula' from Wipro Technologies.

RSS Feed Duplication Problem in Outlook 2007

Whenever a RSS Feed is getting subscribed into Outlook 2007, it starts duplicating RSS Feed Items. It is a critical issue and most of the RSS Newsreaders are facing this problem. This is not observed in IE7.

Resolution/Hot Fix we developed

Ideally each RSS Feed item must have a unique Guid and Link value, otherwise Outlook 2007 will consider it as a new feed item and will start duplicating them.

We have fixed the issue by generating unique Guid and Link value for each RSS Feed Item by hashing RSS Entry Description into corresponding Hash string (hexadecimal) and using it in Guid and Link value. And as a result the problem with "RSS Feed Duplication" in Outlook 2007 has been resolved. We kept examing the fix for one week, in different machines running under different OS's and found no more duplicate feeds.

Using the code

The fix can be used world wide for any kind of RSS implementation.
A generic Class called "RSSBuilder" will take care of generating RSS Feed Items.

Hashing algorithm we developed

/// <summary>
/// Getting the Hash of the Description to generate unique Guid
/// and Link entry for each RSS Feed Item.
/// This function Fixed the Critical Issue with RSS Feed Duplication
/// in MICROSOFT OUTLOOK 2007
/// Developed By: 'Sankha Biswas' and 'Srinivasa Rao Ayyla Somayajula'
/// from Wipro Technologies
/// </summary>
/// <param name="str"></param>
/// <returns></returns>
static public string GetMd5Hash(string strDesc)
{
// Converting the string into bytes
Encoder enc = System.Text.Encoding.Unicode.GetEncoder();

// Create a buffer large enough to hold the string
byte[] unicodeText = new byte[strDesc.Length * 2];
enc.GetBytes(strDesc.ToCharArray(), 0, strDesc.Length, unicodeText, 0, true);

// Hashing...
MD5 md5 = new MD5CryptoServiceProvider();
byte[] result = md5.ComputeHash(unicodeText);

// Building the final string by converting each byte
// into hex and appending it to a StringBuilder
StringBuilder sb = new StringBuilder();
for (int i = 0; i < result.Length; i++)
{
sb.Append(result[i].ToString("X2"));
}

// returning the hash string
return sb.ToString();
}

History

We have fixed the issue with RSS Feed Duplication in OUTLOOK 2007 by generating unique Guid and Link value for each RSS Feed Item by hashing RSS Entry Description into corresponding Hash string (hexadecimal) and using it in Guid and Link value. And as a result the problem with "RSS Feed Duplication" in Outlook 2007 has been resolved. Now it's perfectly showing unique feed Items...Smile | :)

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

sankha_2025
Web Developer
United States United States
No Biography provided

Comments and Discussions

 
GeneralMuch ado about nothing! PinmemberTechieGuru10-May-07 4:33 
GeneralRe: Much ado about nothing! Pinmembersankha_202510-May-07 21:23 
AnswerRe: Much ado about nothing! PinmemberTechieGuru11-May-07 5:54 
GeneralRe: Much ado about nothing! [modified] Pinmembersankha_202513-May-07 19:14 
GeneralRe: Much ado about nothing! Pinmembersankha_202530-May-07 19:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.141223.1 | Last Updated 8 May 2007
Article Copyright 2007 by sankha_2025
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid