updated mailq code for old clients