You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2018/06/13 09:19:52 UTC

[camel] branch master updated: Added example to google-mail-stream doc

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new f009e3f  Added example to google-mail-stream doc
f009e3f is described below

commit f009e3fc9b2daaec70402d76e02ee7b406099eb1
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Jun 13 11:19:08 2018 +0200

    Added example to google-mail-stream doc
---
 .../src/main/docs/google-mail-stream-component.adoc              | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/components/camel-google-mail/src/main/docs/google-mail-stream-component.adoc b/components/camel-google-mail/src/main/docs/google-mail-stream-component.adoc
index 05d1aee..954510a 100644
--- a/components/camel-google-mail/src/main/docs/google-mail-stream-component.adoc
+++ b/components/camel-google-mail/src/main/docs/google-mail-stream-component.adoc
@@ -120,4 +120,13 @@ with the following path and query parameters:
 
 The consumer will poll by default with the query "is:unread" and maxResults equals to 10.
 
+For example
+
+[source,java]
+---------------------------------------------------------
+from("google-mail-stream://test?markAsRead=true&delay=5000&maxResults=5&labels=GitHub,Apache").to("mock:result");
+---------------------------------------------------------
+
+This route will consume unread messages with labels Github and Apache and it will mark the messages as read.
+
    

-- 
To stop receiving notification emails like this one, please contact
acosentino@apache.org.