moved pattern for auto genereted mail search into config