camel-google-mail-source-kafka-connector source configuration
Connector Description: Receive data from Google Mail.
When using camel-google-mail-source-kafka-connector as source make sure to use the following Maven dependency to have support for the connector:
<dependency>
<groupId>org.apache.camel.kafkaconnector</groupId>
<artifactId>camel-google-mail-source-kafka-connector</artifactId>
<version>x.x.x</version>
<!-- use the same version as your Camel Kafka connector version -->
</dependency>
To use this source connector in Kafka connect you’ll need to set the following connector.class
connector.class=org.apache.camel.kafkaconnector.googlemailsource.CamelGooglemailsourceSourceConnector
The camel-google-mail-source source connector supports 10 options, which are listed below.
Name | Description | Default | Priority |
---|---|---|---|
Required An index for the google mail endpoint. |
HIGH |
||
Required Client ID of the gmail application. |
HIGH |
||
Required Client Secret of the gmail application. |
HIGH |
||
Required OAuth 2 access token for google mail application. This typically expires after an hour so refreshToken is recommended for long term usage. |
HIGH |
||
Required OAuth 2 refresh token for google mail application. Using this, the Google Calendar component can obtain a new accessToken whenever the current one expires - a necessity if the application is long-lived. |
HIGH |
||
The number of milliseconds before the next poll. |
500 |
MEDIUM |
|
Required Google Mail application name. |
HIGH |
||
Mark the message as read once it has been consumed. |
true |
MEDIUM |
|
Comma separated list of labels to take into account Example: inbox. |
MEDIUM |
||
The query to execute on gmail box Example: is:unread -category:(promotions OR social). |
"is:unread" |
MEDIUM |
The camel-google-mail-source source connector has no converters out of the box.
The camel-google-mail-source source connector has no transforms out of the box.
The camel-google-mail-source source connector has no aggregation strategies out of the box.