adapt to xibcc environment
fix email bug in type
add document to mail.yml.example