in reply to separating every set of textline

When you see a header, redirect your output appropriately. For lines that aren't headers, simply print them.

Caution: Contents may have been coded under pressure.