September 29, 201114 yr 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.
October 3, 201114 yr 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.
November 1, 201114 yr 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.
June 18, 201213 yr 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?
June 18, 201213 yr 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.
June 19, 201213 yr 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