Hi,

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

This code throws an error: *Message does not exist*

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

*<CFIMAP ACTION="READMAIL"*
*        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="CLOSE"*
*        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
Message-ID: 
<[email protected]>
Subject: =?UTF-8?Q?Conhe=C3=A7a_a_Coisinha_de_Menina?=
MIME-Version: 1.0
List-Unsubscribe: <mailto:[email protected]?subject=94573730|51877>
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.

Reply via email to