<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-168794-9";
urchinTracker();
</script>

<rsb:info treatas="feed" description="Articles of a newsgroup">
<input name="currentgroup" default="microsoft.public.dotnet.languages.csharp"/> 
<input name="range" default="10"/> 
<input name="server" default="msnews.microsoft.com"/> 
<input name="full" description="whether or not to retrieve a full feed or partial (title only)" default="false"/>
</rsb:info>
  
<rsb:set attr="input.group" value="[currentgroup]" />  
<rsb:set attr="input.full" value="[full]" /> 
  
<rsb:call op="nntpListArticles">

	<rsb:call op="nntpGetArticle?currentarticle=[messageid]">
		<rsb:set item="_meta" attr="rss:title" value="RSS feed for [input.group]" />
		<!-- format the description -->
		<rsb:equals attr="input.full" value="true">
			<rsb:set attr="rss:description" value="From [nntp:from]<br />[nntp:date]<p />[nntp:bodytext | Replace('0D','<br>','ishex')]" />
		<rsb:else>
			<rsb:set attr="rss:description" value="From [nntp:from]<br />[nntp:date]<p />[nntp:bodytext | Truncate('1000')]..." />
		</rsb:else>
		</rsb:equals>

		<!-- provide a link to this message in google groups, also add a guid -->
		<rsb:set attr="rss:link">
		http://groups.google.com/groups?threadm=[nntp:id | Replace('<', '') | Replace('>', '') | urlencode]
		</rsb:set>		
		<rsb:set attr="rss:guid" value="[rss:link]" />
		<rsb:set attr="rss:author" value="[nntp:from]" />
		<rsb:set attr="rss:pubDate" value="[nntp:date]" />

		<!-- clear unused data for bandwidth preservation -->
		<rsb:unset attr="nntp:bodytext" />
		<rsb:unset attr="nntp:headers" />
		<rsb:unset attr="nntp:subject" />
		<rsb:unset attr="nntp:date" />
		<rsb:unset attr="nntp:from" />
		
		<!-- push this article out as an RSS item -->
		<rsb:push />
	</rsb:call>

</rsb:call>