add email archive functions.