You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Andrea Cosentino (Jira)" <ji...@apache.org> on 2022/07/29 16:28:00 UTC

[jira] [Commented] (CAMEL-18326) google-mail-stream

    [ https://issues.apache.org/jira/browse/CAMEL-18326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17573052#comment-17573052 ] 

Andrea Cosentino commented on CAMEL-18326:
------------------------------------------

I think you could use any dataformat immediately after consuming and transform the body in the format you want to display or consume. There is no advantages in adding an option to choose the output, because what you would do in the component, it is what the dataformat would do immediately after consuming the message.

> google-mail-stream
> ------------------
>
>                 Key: CAMEL-18326
>                 URL: https://issues.apache.org/jira/browse/CAMEL-18326
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-google-mail-stream
>    Affects Versions: 3.16.0
>            Reporter: Jérôme GARCIA
>            Priority: Minor
>              Labels: camel-core, google
>
> Hello,
>  
> In *google-mail-stream* component, the mail body is displayed as plain text and is not easy to manipulate the data.
> The component should add the possibility to change this behavior and displayed a standardize object (JSON or other).
>  
> {code:java}
> // code placeholder
> from('google-mail-stream:index?' +
>   'applicationName={{camel-app-name}}&' +
>   'accessToken={{gmail.client.access.token}}&' +
>   'refreshToken={{gmail.client.access.refresh.token}}&' +
>   'clientId={{gmail.client.id}}&' +
>   'query=is:unread&' +
>   'clientSecret={{gmail.client.secret}}')
>   .log('${body}') {code}
>  
> What do you think?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)