This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Windson Yang
Recipients Dain Dwarf, Windson Yang, barry, bortzmeyer, cnicodeme, jpic, kal.sze, msapiro, ned.deily, nicoe, r.david.murray, vstinner, xtreak
Date 2019-05-03.01:45:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I found the issue located in

elif self.field[self.pos] in '.@':
    # email address is just an addrspec
    # this isn't very efficient since we start over
    self.pos = oldpos
    self.commentlist = oldcl
    addrspec = self.getaddrspec()
    returnlist = [(SPACE.join(self.commentlist), addrspec)]

The parseaddr function runs a for in loop over the input string, when it meets '.@' it will do something. That is why when the input string is '' will return ('', ''). One possible solution will be to check the string in the reverse order then we can always get the last '@' in the string.
Date User Action Args
2019-05-03 01:45:21Windson Yangsetrecipients: + Windson Yang, barry, vstinner, msapiro, ned.deily, r.david.murray, nicoe, kal.sze, xtreak, cnicodeme, bortzmeyer, jpic, Dain Dwarf
2019-05-03 01:45:21Windson Yangsetmessageid: <>
2019-05-03 01:45:21Windson Yanglinkissue34155 messages
2019-05-03 01:45:21Windson Yangcreate