import re; R = re.compile("^Subject: (.*)", re.IGNORECASE); M = R.search(line) if M: subject = M.group(1) ----------------------------------------------------------------------------- Copyright 1997-2024 Jeffrey Friedl