grep: extract main search loop as searcher method
Still displayer part is in commands.grep(), the core grep logic is now
reusable. I'll revisit the displayer stuff later since it will be another
long series.
from __future__ import absolute_import, print_function
import sys
for line in sys.stdin:
if line.lower() in ("message-id: \n", "in-reply-to: \n"):
line = line[:-2]
print(line, end="")