123.4. 消费者
消费者默认轮询,查询 "is:unread" 和 maxResults 等于 10。
例如:
from("google-mail-stream://test?markAsRead=true&delay=5000&maxResults=5&labels=GitHub,Apache").to("mock:result");
from("google-mail-stream://test?markAsRead=true&delay=5000&maxResults=5&labels=GitHub,Apache").to("mock:result");
此路由将使用带有标签 Github 和 Apache 的未读取消息,它会将消息标记为 read。