Tuesday, March 2, 2010

Thunderbird Lab

For my thunderbird's lab, there is a bug that automatically change text into email url incorrectly. I noticed that thunderbird would change a text into email url if it found a "." after "@" sign. So I had to find a way that search 2 or more "." after "@" in the text that made invalid emails.
I tried using array to capture ".." from the string but I failed. Thanks to Scott's post, he mentioned about build-in function Find() in mozilla repos. I tried it but it still did not work. So I started putting "printf" inside the functions. I found out that I did my incremental build in the wrong directory because some of my "printf" statements did not updated as I changed them.

Before, I did my "make" in
/comm-central/objdir-tb-debug/mozilla/netwerk/streamconv

After:
/comm-central/objdir-tb-debug/mozilla/netwerk

Now everything work as is should be when I changed some thing in the function.
Finally I got it.

No comments:

Post a Comment