+
+ # Try to use From: from comment file if there is one.
+ # This is not very elegant...
+ match = re.match(r"\AFrom: ([^\n]+)\n\n", comments)
+ if match:
+ subst['__REJECTOR_ADDRESS__'] = match.group(1)
+ subst['__REJECT_MESSAGE__'] = '\n'.join(comments.splitlines()[2:])
+