Wednesday, November 7, 2007

Patching Thunderbird!

This week lab involved patching Thunderbird application for a bug. The bug did the following actions:

If u write some text in this format in new compose message in the Thunderbird application:
Does Wednesday aft. work for you?
I'll tentatively schedule for 3:30 on Wednesday.
We'll come to S@Y...where should we meet?

It will be displayed in the following manner at the receiver's end of the email in Thunderbird:

Does Wednesday aft. work for you?
I'll tentatively schedule 3:30 on Wednesday.
We'll come to S@Y...where should we meet?
So basically, what Thunderbird application is doing is that it automatically converts any text after the "@" sign followed by a "." into "Mailto:" link.

Solving this problem wasn't hard because David already pointed us out where to find the bug so we just edited the file, found the instance where "@" checks are done and change it, so that the application works without breaking and changing upper displayed text into "Mailto:" link.

Interesting lab. I was kind of thrilled with my results in the end, even though its a very simple way of completing the lab.

The patch can be found here:
http://zenit.senecac.on.ca/wiki/index.php/User:Arehman4

No comments: