Manage messageToSave option in publish command.