Hi Rawk;

I've been using OpenBD's CFIMAP tag to do something very similar (bounce checking) - and have not seen the error you describe.

But then, my tag has a plain text SERVER attribute - not a dynamically generated one. So I would first suspect that your variable application.systemConfig.emailServerIpAddress is occasionally null or blank.

When? You could examine the timing of those errors again, and see if they are spaced anywhere near or beyond your Application's timeout setting. Could it be possible that - if this task were the first thing to "wake up" your app from a timed-out state - this variable may not exist yet (or be blank - if blank is a default in your code)?

HTH, this was just the first thing I thought of...

Al Holden

On 5/30/2014 10:27 AM, Rawk wrote:
(corrected by Al)
I have a scheduled task that runs every 5 minutes via the OpenBD scheduler.  The task itself uses the cfimap tag to grab messages out of an email box. 

This is a simplified snippet of the code that is being executed:

<cfimap action="" service="imap" connection="mailConnection" server="#application.systemConfig.emailServerIpAddress#" username="#application.systemConfig.emailServerUserName#" password="#application.systemConfig.emailServerPassword#">

<cfimap action="" connection="mailConnection" name="mail" folder="Inbox">

<cfloop query="mail">
    <cfimap action="" connection="mailConnection" folder="Inbox" messageid="#mail.id#" name="message" attachmentsuri="#application.systemConfig.attachmentRelativePath#">
    <!--- do a bunch of stuff with the message --->
</cfloop>


Now, like I said, this runs every 5 minutes.  However, every now and then (anywhere between twice per day and once per week) the cfmail "readmail" action throws the following error, "Missing the SERVER attribute."

How/why would this happen?  Why does cfimap only sometimes want a server attributes?  And if it wants a server attribute instead of a connection attribute, why isn't the "listmail" action throwing the error?

This has been going on for years in both versions OpenBD 2 and 3.  It's not a critical issue by any means, but it really makes my brain hurt trying to figure this one out.
--
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en

---
You received this message because you are subscribed to the Google Groups "Open BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

--
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en

---
You received this message because you are subscribed to the Google Groups "Open BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to