Robert Collins Posted May 18, 2008 Posted May 18, 2008 I recently started using this plug-in and have sucessfully setup fm to send emails. I also want to use a scheduled script on Fm Server 9 to check every 5 mins for incoming email. I have had a look at the examples in the documentation with the plug in but it always pulls down the same emails over and over , not marking them as read. I am using: Set Variable $$import ; Value:EmailReadMessages ("mailbox=INBOX" ; "to=my_email_address" ; "readonly=false" ; "viewed=false" ) and after using a few Set Field comands to get the info in the fields i am using: Set Variable [$result ; Value:EmailMessageSetFlag ( "read" ) to mark them as read so that they don't get pulled in again Can anybody see where I am going wrong? Any help would be appreciated
shmert Posted May 19, 2008 Posted May 19, 2008 Robert, Are the messages still showing up as unread on the server after this? Also, are you using IMAP or POP to retrieve messages? After you call EmailSetMessageFlag, what is the value of $result? If it's "ERROR", call EmailLastError to get the error text.
Robert Collins Posted May 19, 2008 Author Posted May 19, 2008 thanks for the reply, I am assuming that they staying unread which is why the same emails keep coming in .I am using a POP type account.As for the the error message, I will try calling the error and report back. I would show you my script but I can't find an easy way of copying it from FM and pasting it here. thanks
Robert Collins Posted May 22, 2008 Author Posted May 22, 2008 I have changed the script to call an error via custom dialog and using a client (beacause FM server won't show Custom Dialog) but there are no errors. This is most fustrating
Jesse Barnum Posted May 28, 2008 Posted May 28, 2008 Robert, I just posted a new version of the email plugin that has a new 'report a bug' button in the plugin preferences screen. Please try your script in FileMaker client, and if it is till not working, use that button to report it. This will send us all of the config info and the log file so that we can try to troubleshoot.
LaRetta Posted May 28, 2008 Posted May 28, 2008 This will send us all of the config info and the log file so that we can try to troubleshoot. This is a great idea, Jesse, thank you!
Robert Collins Posted August 1, 2008 Author Posted August 1, 2008 Just to update you , I downloaded the latest version of the plugin and the problem seems to have gone! thanks
Recommended Posts
This topic is 6026 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