A mail protocol implementaion in java