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.

Building Thunderbird

I got my Thunderbird build on my laptop last weekend. This time, the process went little smoother than last time I built FireFox. I disabled my Avira antivirus and ZoneAlarm firewall which caused downloading and compiling problem last time. This was what I had in my .mozconfig

mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/objdir-tb-debug
mk_add_options MOZ_CO_PROJECT=mail
ac_add_options --enable-application=mail
ac_add_options --enable-debug
ac_add_options --disable-optimize
ac_add_options --enable-calendar
ac_add_options --with-windows-version=600

After one hour of compilation, thunderbird finally was built.



However there was an error when I opened the thunderbird



I just click ignore to keep the program alive because I needed to finish my Thunderbird Lab first.