lib: use first line as title, if title not present
cli: fix re-send