minor optimization to mail import