port hacks.mozilla.org newsletter form from php for Bug 815908