EMLParser.create().parse(). It accepts both file or files content as an input and returns
ReceivedEmailof parsed EML message.
getNewMessageCount()method counts messages with the RECENT flags, Jodd will not (yet) find any such messages on Gmail servers (hence always returning value 0).
RFC2822AddressParserclass to parse, clean up, and extract email addresses parsing email addresses per RFC2822 syntax. It can be trusted to only provide authenticated results. This class has been successfully used on many billion real-world addresses, live in production environments, but it's not perfect yet, since the standard is quite complex. Unlike
InternetAddress, this class will preserve any RFC-2047-encoding of international characters.
geronimo-javamail_1.4_spec-1.7.1.jarand it conflicts with the Jodd Email.
content-IDcan be set separately.
Content-Disposition. Of course, setting
content-IDis required if you want to use them.