sbphoto01 Posted September 29, 2011 Posted September 29, 2011 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.
epeeler Posted October 3, 2011 Posted October 3, 2011 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.
Smef Posted November 1, 2011 Posted November 1, 2011 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.
hollyheadhunter Posted June 18, 2012 Posted June 18, 2012 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?
hollyheadhunter Posted June 18, 2012 Posted June 18, 2012 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.
hollyheadhunter Posted June 19, 2012 Posted June 19, 2012 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!
Recommended Posts
This topic is 4897 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now