Generate close links from acc_newmail table now instead of having them
hard-coded.