That's a very good guess, but to be sure you would need to READMAIL on a box containing only the presumed bad message (on the remote possibility that adjacent messages were not the actual cause - not terminated or initiated correctly for example).

I've been using OpenBD 3.0 to run IMAP folder processing code (on bounced mail) for a year or more now, and it's had little problem with the hundreds of thousands of emails that it's parsed to date. That would imply that the issue is that single rogue message, something in your code, or a difference in CFIMAP code between our versions.

If you're getting a typical OpenBD error, I would think that there would be a nice long stack trace in the logs - which could hint at whether or not it's an aws jar or the mail jar that's blowing up.

Do you know the party or MTA administrator at the source of this message? Perhaps they could generate another one to mine as a test.

Al Holden


On 8/26/2014 4:06 PM, Rogerio Pereira wrote:
Hi,

I have a problem with a CFIMAP call to my Imap server.

This code throws an error: Message does not exist

<CFIMAP ACTION=""
        SERVICE="IMAP"
        CONNECTION="test"
        SERVER="#URL.Server#"
        USERNAME="#URL.Email#"
        PASSWORD="#URL.Pwd#">

<CFIMAP ACTION=""
        CONNECTION="test"
        FOLDER="#URL.Folder#"
        MESSAGEID="#URL.MsgId#"
        ATTACHMENTSURI=""
        NAME="query_result">

        <cfif #IMAP.SUCCEEDED# is "false">
                <cfset QueryResult = QueryNew("Error")>
                <cfset temp = QueryAddRow(QueryResult)>
                <cfset temp = #QuerySetCell(QueryResult,"Error",IMAP)#>
        <cfelse>
                <cfset QueryResult = #query_result#>
        </cfif>

<CFIMAP ACTION=""
        CONNECTION="test">

The mailbox has 5500 messages, but only one throws this error.

In order to debug it I listed the messages in the mailbox, instead of reading them (READMAIL). 

I noticed that the affected message contains a value in the "date" field which is not a valid date, but a structure of type "java.util.Calendar", containing 2 keys (Timezone and Time).

I was expecting something like "{ts '2014-08-25 12:09:49'}", but I get the structure.

I guess the READMAIL method fails because of the bad formatting in the date field.

The message header follows:

Received: from localhost (localhost [127.0.0.1])
by yyyyyy (Postfix) with ESMTP id 7ED4A42D7D
for <xxxxxx>; Mon, 25 Aug 2014 11:12:36 -0300 (BRT)
X-Virus-Scanned: Debian amavisd-new at yyyyyy
X-Spam-Flag: NO
X-Spam-Score: 4.346
X-Spam-Level: ****
X-Spam-Status: No, score=4.346 required=5 tests=[BAYES_99=3.5,
DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001,
MIME_HTML_ONLY=0.723, MIME_HTML_ONLY_MULTI=0.001, MPART_ALT_DIFF=0.79,
RP_MATCHES_RCVD=-0.668, SPF_PASS=-0.001] autolearn=no
Received: from yyyyyy ([127.0.0.1])
by localhost (yyyyyy [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id zHm_7KJmit1y for <xxxxxx>;
Mon, 25 Aug 2014 11:12:27 -0300 (BRT)
Received: from mta25.gexsamen.com (mta25.gexsamen.com [177.184.8.25])
by yyyyyy (Postfix) with ESMTP id A90EF42D8B
for <xxxxxx>; Mon, 25 Aug 2014 11:11:57 -0300 (BRT)
Received: from mx.gexsamen.com (mx.gexsamen.com [177.184.8.2])
by mx.gexsamen.com (Postfix) with ESMTP id 400281811F9
for <xxxxxx>; Mon, 25 Aug 2014 11:10:33 -0300 (BRT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
t=1408975833;
s=default; d=gexsamen.com;
h=Date:From:Sender:To:Message-ID:Subject:MIME-Version:Content-Type:List-Unsubscribe;
bh=GTaSxoKuKFhOzSF8bUr40dIEj3MHQNy2dOZeKLokPpM=;
b=pywtboDUZ9ivnJFXKrknf6olGaqFEBbInNOT4E1RPp7EvfdLEIWKN3djwWIyBnRM
nM//DR0xi8FfNRhuZmbifZd+kT/eMDh1gEIw18huALj5u4+vbA2xdqbQjUJ3FjarPhQ
4W6mcw9OzKChuL+giSGb0caZyJTQgjAzpuRpHMG8=
Date: Mon, 25 Aug 2014 11:10:33 -0300 (BRT)
From: "Andare S.A." <[email protected]>
Sender: "Andare S.A." <[email protected]>
To: xxxxxx
Subject: =?UTF-8?Q?Conhe=C3=A7a_a_Coisinha_de_Menina?=
MIME-Version: 1.0
Precedence: bulk
X-Bounce-Control: contato.id=94573730 envio.id=51877
Return-Path: [email protected]
Content-Type: multipart/alternative;
boundary="----=_Part_30578_2067034395.1408975833224"
Content-Disposition: inline
X-Antivirus: avast! (VPS 140826-1, 26/08/2014), Inbound message
X-Antivirus-Status: Clean


Any ideas? Is it a mail.jar problem? Or OpenBD bug?

Thanks in advance.

Rogerio


--
--
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