Added JSON mail retreival and spam filtering