def learn(self, msg, learnas):
if not isinstance(learnas, types.StringTypes):<EOL><INDENT>raise SpamCError('<STR_LIT>')<EOL><DEDENT>if learnas.lower() == '<STR_LIT>':<EOL><INDENT>resp = self.tell(msg, '<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>resp = self.tell(msg, '<STR_LIT>', learnas)<EOL><DEDENT>return resp<EOL>
Learn message as spam/ham or forget