remove line from cmsg if no message found