client: handle duplicate uids in listen mode
fix a bug where an array is spliced in wrong order
mail plugin over socket.io