Results 1 to 5 of 5

Thread: Gmail IMAP BODY.PEEK

  1. #1

    Default Gmail IMAP BODY.PEEK

    Hi,

    I am using <int-mail:inbound-channel-adapter /> to access GMAIL with IMAP. The setting should-mark-messages-as-read="false" is not working as gmail always marks messages as read. When i enabled debug in mail properties i saw that spring integration is using BODY to fetch messages instead of BODY.PEEK. How can i do a PEEK?

    As it is required by gmail, see below link:

    http://www.google.com/support/forum/...e17bcbfd&hl=en

    Thanks

  2. #2
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

    Could you please open up a JIRA ticket here: https://jira.springsource.org
    In the meantime you can use IMAP IDLE channel adapter. Works well with Google and its event driven instead of polling.
    Code:
    <int-mail:imap-idle-channel-adapter id="customAdapter"
    	store-uri="imaps://${user}:${password}@imap.gmail.com/INBOX"
    	channel="receiveChannel"
    	should-mark-messages-as-read="false"		
    	java-mail-properties="javaMailProperties"/>

  3. #3
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

    There is a bug on our side. Should be fixed tonight.
    Here is the JIRA i've created https://jira.springsource.org/browse/INT-1824

    However you can still use IMAP IDLE adapter

  4. #4

    Default

    Thanks.

    But i was using GMAIL only for testing purposes, i ve to use IBM Domino which currently does not support IMAP IDLE.

  5. #5
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

    How sad
    Thanks for reporting it anyway. The good thing is that it is fixed for those servers that do support it.
    Cheers

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •