Abort triggers for email body processing

This commit is contained in:
Robin Ward
2013-11-20 13:29:42 -05:00
parent d09735ff46
commit 5055da76e6
4 changed files with 369 additions and 1 deletions

View File

@ -72,6 +72,13 @@ module Email
end
@body = @message.body.to_s.strip
# Certain trigger phrases that means we didn't parse correctly
@body = nil if @body =~ /Content\-Type\:/ ||
@body =~ /multipart\/alternative/ ||
@body =~ /text\/plain/
@body
end
def scrub_html(html)