Closed hdknr closed 6 years ago
def from_header(self):
label, address = self.sender.split(' ')
label = Header(label).encode('ISO-2022-JP')
label = label.replace('\n', '') # newline を除く
return f"{label} <{address}>"