added grep -a --text to imapd log -- fix binary file error