<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Technology Bits and Bytes &#187; TRAC</title>
	<atom:link href="http://blogs.circlesource.com/category/trac/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.circlesource.com</link>
	<description>CircleSource Technical Talent ShowCase</description>
	<lastBuildDate>Thu, 10 Dec 2009 20:01:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Trac hack to control email notification to the Reporter</title>
		<link>http://blogs.circlesource.com/2008/09/12/trac-hack-to-control-email-notification-to-the-reporter/</link>
		<comments>http://blogs.circlesource.com/2008/09/12/trac-hack-to-control-email-notification-to-the-reporter/#comments</comments>
		<pubDate>Fri, 12 Sep 2008 11:26:13 +0000</pubDate>
		<dc:creator>satyam</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[TRAC]]></category>

		<guid isPermaLink="false">http://blogs.circlesource.com/?p=18</guid>
		<description><![CDATA[We implemented Trac with a customized workflow. In our implementation a ticket has many additional states.
Thus during its lifecycle a ticket has to go through several stages. Most of these stages are irrelevant to the reporter of the ticket. He doesnt want to be overwhelemed by email notifications for each and every change to the [...]]]></description>
			<content:encoded><![CDATA[<p>We implemented Trac with a customized workflow. In our implementation a ticket has many additional states.</p>
<p>Thus during its lifecycle a ticket has to go through several stages. Most of these stages are irrelevant to the reporter of the ticket. He doesnt want to be overwhelemed by email notifications for each and every change to the ticket. Our managers used to get complains from clients who were ticket reporters about these notifications. We needed a solution.</p>
<p>One option was to turn off the the reporter notification completely other option was to modify trac&#8217;s default behaviour. The first option was not a good one as the reporters needed some kind of notification when a ticket was created, closed or reopened.</p>
<p>I searched Trac-hacks plugin list to find out something suitable. I couldnot find anything therefore i decided to tweak the Trac myself. It was not at all difficult as Trac has a plugin architecture and I found an api which could solve my problem. I just needed to add and modify few lines.That was it our problem was solved.I named it &#8220;<strong>FlexibleReporterNotification</strong>&#8221; plugin.</p>
<p>I have posted the solution at trac-hacks site so that someone needing similar solution may find it useful. It works on Trac 0.11.</p>
<p>Plugin url :- <a class="alignleft" href="http://trac-hacks.org/wiki/FlexibleReporterNotificationPlugin" target="_blank">http://trac-hacks.org/wiki/FlexibleReporterNotificationPlugin</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.circlesource.com/2008/09/12/trac-hack-to-control-email-notification-to-the-reporter/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Email2trac configuration on windows 2003.</title>
		<link>http://blogs.circlesource.com/2008/08/04/email2trac-configuration-on-windows-2003/</link>
		<comments>http://blogs.circlesource.com/2008/08/04/email2trac-configuration-on-windows-2003/#comments</comments>
		<pubDate>Mon, 04 Aug 2008 15:16:46 +0000</pubDate>
		<dc:creator>satyam</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[TRAC]]></category>

		<guid isPermaLink="false">http://blogs.circlesource.com/?p=16</guid>
		<description><![CDATA[This post shares our experience of configuring email2trac plugin. ]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal">Trac version 0.11b1</p>
<p class="MsoNormal">OS:-Windows 2003</p>
<p class="MsoNormal">Email client: &#8211; Fetchmail</p>
<p class="MsoNormal">Email2trac version: &#8211; 0.30</p>
<p class="MsoNormal">Others: &#8211; cygwin</p>
<p class="MsoNormal">
<p class="MsoNormal">Through this blog I intend to share our experience of configuring email2trac plugin on windows 2003. We had to make few changes in the original email2trac.py file in order to get it working.</p>
<p class="MsoNormal">
<p class="MsoNormal">We configured this plugin one eventful night a couple of months back. A normal trac plugin takes around 30-40 minutes at max to configure, but this one plugin took one whole night (around 6-7 hrs.).<span> </span>We started off with downloading the plugin and following the install instructions. After completing the instruction set we tried to test the plugin, the test failed we could not create tickets from email. We revisited the instructions to figure out if we had missed out something. We had followed the instructions quite well.</p>
<p class="MsoNormal">
<p class="MsoNormal">After playing around with the configuration files and revisiting the entire setup it was time to look at the code itself (email2trac.py). It took us a couple of hours to understand the code and its flow. Few things in the code did not make sense to us therefore we commented out those added few lines of ours and email2trac was working for us. <span> </span>Following are the things we commented out from email2trac.py</p>
<p class="MsoNormal">
<p class="MsoNormal" style="-0.25in;"><!--[if !supportLists]--><span>1)<span style="normal;"> </span></span><!--[endif]-->Blacklisting section.</p>
<p class="MsoNormal" style="-0.25in;"><!--[if !supportLists]--><span>2)<span style="normal;"> </span></span><!--[endif]-->Attachment Encoding.</p>
<p class="MsoNormal" style="-0.25in;"><!--[if !supportLists]--><span>3)<span style="normal;"> </span></span><!--[endif]-->Check for syslog.</p>
<p class="MsoNormal" style="-0.25in;"><!--[if !supportLists]--><span>4)<span style="normal;"> </span></span><!--[endif]-->Normalization of the file name for the attachment.</p>
<p class="MsoNormal" style="0.25in;">
<p class="MsoNormal">
<p class="MsoNormal">Due to the commenting of the above mentioned sections attachment path was not being generated correctly. To overcome this problem we added the following lines at the end of attachments definition after fd.close (line number 1073.)</p>
<p class="MsoNormal">
<p class="MsoNormal">
<p class="MsoNormal"><span> </span><strong><span>attachmentPath = self.PROJECTPATH + &#8220;/attachments/ticket/&#8221; + str(ticket['id']) + &#8220;/&#8221; + url_filename</span></strong></p>
<p class="MsoNormal"><strong><span> </span></strong></p>
<p class="MsoNormal"><strong><span><span> </span></span></strong></p>
<p class="MsoNormal"><strong><span><span> </span>shutil.copy2 (temppath, attachmentPath)</span></strong></p>
<p class="MsoNormal">
<p class="MsoNormal">
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal">
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal" style="0.5in;">Although this fix made the email2trac functional on our trac system, we are still struggling with attachments. We are able to send in zipped files in but the MS office documents get clobbered. We are still working on this and hopefully will resolve it soon at that point I will post another blog here.</p>
<p class="MsoNormal" style="0.5in;">
<p class="MsoNormal" style="0.5in;">In my view if any one wants to implement email2trac on windows they should be willing to make their hands dirty. There is not enough documentation available for this plugin. It is still a UNIX based program which can be made to work on windows with some hacks. <strong><em>Just as in our case we broke away from the program flow to make it work for us.</em></strong></p>
<p class="MsoNormal">
<p class="MsoNormal">
<p class="MsoNormal">
<p class="MsoNormal">Following links are helpful in setting up this plugin on windows.</p>
<p class="MsoNormal">
<p class="MsoNormal"><a href="https://subtrac.sara.nl/oss/email2trac/wiki/Email2tracInstallation/Windows">https://subtrac.sara.nl/oss/email2trac/wiki/Email2tracInstallation/Windows</a></p>
<p class="MsoNormal">
<p class="MsoNormal"><a href="http://functionalelegant.blogspot.com/search/label/Trac">http://functionalelegant.blogspot.com/search/label/Trac</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.circlesource.com/2008/08/04/email2trac-configuration-on-windows-2003/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
