Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Email not fetching most recent email...

Featured Replies

Hello, I have integrated the email plugin with my solution and the email fetching was working great, but now I don't seem to be able to fetch my most recent emails...

I am accessing a gmail account via imap and the message browse portal is definitely set to date order descending (newest first)

Any ideas anyone?

Also what's the significance of telling the fetch script how many messages to fetch? as it now appears to have fetched more messages than there are in my inbox, according to gmail's count of the messages in my inbox.

One of the main reasons I've seen people need the amount-specific fetch is in situations where a group of people get divvied up e-mails from the same bulk inbox.

Is only the first e-mail unread? It could be that you have it fetching only read e-mails.

  • 4 weeks later...

When working with IMAP I recommend that you pass the last message ID as a parameter is your emailreadmessages function call. Setting a number of messages to skip or passing a message stops you from dowloading the full contents of your mailbox every time you get your messages. You can see an example of how to call and pass this parameter in the documentation of the emailreadmessages function in the documentation.html which comes with the plugin or online.

  • 7 months later...

hi, i think we are having a similar issue. we'll get a few messages, then try to fetch messages later it doesn't get the newest. we use google apps, have a general email address for site inquiries etc. using google apps settings, it replies to each email that it was received -- but then we never log into that account to check the messages. when you look at the messages in google apps, they appear Unread. we want the messages to come into our database, where we will process them.

based on jesse's comment above, using the "Fetch" script in the starter solution, i commented out lines of EmailReadMessages, like this:

EmailReadMessages(

"mailbox=" & accnt_MBOX__browse::name ;

// "readonly=false" ;

// "max=" & Account::batchSize ;

"skip=" & Count(MessageBrowse::_pk_MsgID) ;

"attachments=false" ;

"progress=true"

)

but still not quite working?

PS if we Move a message in our database from INBOX to another folder, do we need to "tell" the Google Apps account? we don't really care if messages in the Google Apps account get put in folders -- just wondering if that could be messing this up.

About an hour after I changed the code based on this thread, it started getting new mail consistently. Not sure why it didn't right away but it seems to be working!

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.