Giter Site home page Giter Site logo

flink-connector-email's People

Contributors

airblader avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

flink-connector-email's Issues

Add useful functions

We could expose some hardcoded functions in the catalog, eg to find some header, address formatting, ...

Flink 1.14

  • Replace SubRowData
  • Config enums implement DescribedEnum

Provide table metadata

We should think about what metadata we might be able to provide, things coming to mind would be message count / unread message count.

Support HTML

Maybe we can do this through a content-type metadata and then use that?

IMAP Catalog

  • Tables = Folders
  • What are databases? Or can we just have only the default database and disallow create/alter/delete?

Checkpointing for the IMAP connector

Some thoughts:

  • We need to respect the UIDValidity to be aware of folders being deleted and re-created. See e.g. this.
  • The synchronization block probably needs to be moved as we need to synchronize internal state updates, too.

Mapping of addresses is incorrect

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.

Catalog connection can close

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.