關於產品InboundMailHandler。如何從InboundMailHandler中僅提取電子郵件地址?
class MailHandle(InboundMailHandler):
def receive(self, mail_message):
mail_message.sender may contained "John Bolton <[email protected]>". How can i extract "[email protected]" from it?
雖然也許比一個正則表達式更優雅,這不符合RFC 2822 – 2012-11-10 05:39:05
兼容的,他並沒有要求RFC遵守AFAIK。這就是爲什麼我甚至不打擾重新。 –