def strip_quotes(self, text): """ Strip quotes from message by Nicolas Mendoza """ body = [] for line in text.splitlines(): if line.startswith(self.EMAIL_QUOTE): continue body.append(line) return ('\n'.join(body))