Any Java library for address extraction from emails? [closed]
We don’t allow questions seeking recommendations for books, tools, software l开发者_StackOverflow中文版ibraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this questionI'm looking for an Java open-source library which is able to extract address information from a (German) email (signature). The library should find
- name
- street
- city, city code/postal code
- tel/fax
address-parser.com is an commercial product, but a free (albeit simple) library would be great.
stackoverflow.com/questions/16413/parse-usable-street-address-city-state-zip-from-a-string is asking for something similar, but my problem is broader because the address information is hidden in a complete email. And there isn't a solution either...
Any ideas?
well you just use javamail to get the parts that compose the email until you find the one containing the signature (there might be more than one, for example one text/plain and another text/html inside a multipart/alternative, but the address will be the same in both), and then apply the solution given in the question you mention
精彩评论