[ 
https://issues.apache.org/jira/browse/CAMEL-16690?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christos Gkoros updated CAMEL-16690:
------------------------------------
    Description: 
The messages List operation returns a list of messages, however, although the 
Gmail API support adding a query ("q") to the request, the camel 
endpoint/component does not, while the option is available in Camel Google Mail 
Stream.

f.e.

!image-2021-06-06-16-26-56-992.png!

 

  was:
In pom.xml file, API is restricted to getProfile only:

[https://github.com/apache/camel/blob/master/components/camel-google-mail/pom.xml#L169-L175]

But there are two other methods that are useful : watch and stop.

See here:
[https://developers.google.com/gmail/api/v1/reference/users/watch]

I've attached a patch to fix.


> Add the q (Query) parameter to messages/list operation
> ------------------------------------------------------
>
>                 Key: CAMEL-16690
>                 URL: https://issues.apache.org/jira/browse/CAMEL-16690
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-google-mail
>    Affects Versions: 3.0.1, 3.1.0, 3.2.0
>            Reporter: Christos Gkoros
>            Priority: Minor
>             Fix For: 3.4.0
>
>         Attachments: image-2021-06-06-16-26-56-992.png
>
>
> The messages List operation returns a list of messages, however, although the 
> Gmail API support adding a query ("q") to the request, the camel 
> endpoint/component does not, while the option is available in Camel Google 
> Mail Stream.
> f.e.
> !image-2021-06-06-16-26-56-992.png!
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to