Google Mail

Google Mail

Scheme: google-mail

Represents a GoogleMail endpoint.

Name Kind Type Required Deprecated Default Value Enum Values Description
apiName path org.apache.camel.component.google.mail.internal.GoogleMailApiName true false THREADS
MESSAGES
ATTACHMENTS
LABELS
HISTORY
DRAFTS
USERS
What kind of operation to perform
methodName path java.lang.String true false create
delete
get
getProfile
gmailImport
insert
list
modify
patch
send
trash
untrash
update
What sub operation to use for the selected operation
scopes parameter java.util.List false Specifies the level of permissions you want a mail application to have to a user account. See https://developers.google.com/gmail/api/auth/scopes for more info.
clientId parameter java.lang.String false Client ID of the mail application
clientSecret parameter java.lang.String false Client secret of the mail application
accessToken parameter java.lang.String false OAuth 2 access token. This typically expires after an hour so refreshToken is recommended for long term usage.
refreshToken parameter java.lang.String false OAuth 2 refresh token. Using this, the Google Calendar component can obtain a new accessToken whenever the current one expires - a necessity if the application is long-lived.
applicationName parameter java.lang.String false Google mail application name. Example would be "camel-google-mail/1.0"
inBody parameter java.lang.String false Sets the name of a parameter to be passed in the exchange In Body
exchangePattern parameter org.apache.camel.ExchangePattern false InOnly InOnly
RobustInOnly
InOut
InOptionalOut
OutOnly
RobustOutOnly
OutIn
OutOptionalIn
Sets the default exchange pattern when creating an exchange
synchronous parameter boolean false false Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported).

google-mail consumer

The GoogleMail consumer.