tng / flink-connector-email Goto Github PK
View Code? Open in Web Editor NEWIMAP / SMTP connectors for Apache Flink®
License: Apache License 2.0
IMAP / SMTP connectors for Apache Flink®
License: Apache License 2.0
We could expose some hardcoded functions in the catalog, eg to find some header, address formatting, ...
Probably justifies renaming this repository and the project
SubRowData
DescribedEnum
We should think about what metadata we might be able to provide, things coming to mind would be message count / unread message count.
Using new MimeMessage(session, InputStream)
. Other metadata would not be allowed in this case probably. Needs investigation.
Potentially related: https://stackoverflow.com/questions/20237801/reading-from-javamail-takes-a-long-time
Maybe we can do this through a content-type metadata and then use that?
Some thoughts:
When the list is empty (which can happen for e.g. CC, BCC, …), we always return an object rather than an empty list, regardless of how the column was specified. We should handle this case explicitly.
I haven't tested that this actually causes an IndexOutOfBounds, but it should.
Using Part#writeTo
.
Exception in thread "main" org.apache.flink.table.client.SqlClientException: Unexpected exception. This is a bug. Please consider filing an issue.
at org.apache.flink.table.client.SqlClient.main(SqlClient.java:213)
Caused by: org.apache.flink.table.catalog.exceptions.CatalogException: com.github.airblader.shaded.jakarta.mail.StoreClosedException: * BYE Jakarta Mail Exception: java.net.SocketException: Socket closed
at com.github.airblader.imap.catalog.ImapCatalog.listTables(ImapCatalog.java:130)
at org.apache.flink.table.catalog.CatalogManager.listTables(CatalogManager.java:447)
at org.apache.flink.table.catalog.CatalogManager.listTables(CatalogManager.java:433)
at org.apache.flink.table.api.internal.TableEnvironmentImpl.listTables(TableEnvironmentImpl.java:560)
at org.apache.flink.table.client.gateway.local.LocalExecutor.lambda$listTables$5(LocalExecutor.java:345)
at org.apache.flink.table.client.gateway.local.ExecutionContext.wrapClassLoader(ExecutionContext.java:255)
at org.apache.flink.table.client.gateway.local.LocalExecutor.listTables(LocalExecutor.java:345)
at org.apache.flink.table.client.cli.CliClient.callShowTables(CliClient.java:460)
at org.apache.flink.table.client.cli.CliClient.callCommand(CliClient.java:289)
at java.util.Optional.ifPresent(Optional.java:159)
at org.apache.flink.table.client.cli.CliClient.open(CliClient.java:212)
at org.apache.flink.table.client.SqlClient.openCli(SqlClient.java:142)
at org.apache.flink.table.client.SqlClient.start(SqlClient.java:114)
at org.apache.flink.table.client.SqlClient.main(SqlClient.java:201)
Caused by: com.github.airblader.shaded.jakarta.mail.StoreClosedException: * BYE Jakarta Mail Exception: java.net.SocketException: Socket closed
at com.github.airblader.shaded.com.sun.mail.imap.IMAPFolder.throwClosedException(IMAPFolder.java:3708)
at com.github.airblader.shaded.com.sun.mail.imap.IMAPFolder.doCommand(IMAPFolder.java:3842)
at com.github.airblader.shaded.com.sun.mail.imap.DefaultFolder.list(DefaultFolder.java:56)
at com.github.airblader.imap.catalog.ImapCatalog.listTables(ImapCatalog.java:118)
We currently return ArrayData
of GenericRowData
. Maybe there's a better way?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.