tian-zhihui / cordysemailiocon

Automatically exported from code.google.com/p/cordysemailiocon
Apache License 2.0
0 stars 1 forks source link

Email is not processed by Email IO Connector #6

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Process the .eml (it was sent to Phillip Gussow due to the existence of 
client information)

What is the expected output? What do you see instead?
Email processed and stored on the email table.

We are facing a problem with Email IO Connector 3.1.13. For some emails, an 
error is logged saying that it was not possible to get the MessageID.

com.csc.cordys.ac.emailio.exception.InboundEmailException: Error getting the 
message id    at com.csc.cordys.ac.emailio.monitor.RuleContext. 
(RuleContext.java:105)    at 
com.csc.cordys.ac.emailio.monitor.RuleContextFactory.createRuleContext(RuleConte
xtFactory.java:29)    at 
com.csc.cordys.ac.emailio.triggerengine.TriggerEngine.handleTrigger(TriggerEngin
e.java:157)    at 
com.csc.cordys.ac.emailio.monitor.poller.EmailboxPoller.doEmailBoxPolling(Emailb
oxPoller.java:512)    at 
com.csc.cordys.ac.emailio.monitor.poller.EmailboxPoller.call(EmailboxPoller.java
:323)    at 
com.csc.cordys.ac.emailio.monitor.poller.EmailboxPoller.call(EmailboxPoller.java
:1)    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)    at 
java.util.concurrent.FutureTask.run(Unknown Source)    at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(
Unknown Source)    at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown
 Source)    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown 
Source)    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown 
Source)    at java.lang.Thread.run(Unknown Source) Caused by: 
javax.mail.MessagingException: Failed to load IMAP envelope    at 
com.sun.mail.imap.IMAPMessage.loadEnvelope(IMAPMessage.java:1196)    at 
com.sun.mail.imap.IMAPMessage.getMessageID(IMAPMessage.java:502)    at 
com.csc.cordys.ac.emailio.monitor.RuleContext. (RuleContext.java:81) ... 12 more

The only thing that I saw different was Cc property which there is an strange 
format. Below is the email header:

In-Reply-To: <CD87AFFE-6E57-44F2-8902-11613B6A1DC3@clientX.com>
X-Disclaimed: 44122
MIME-Version: 1.0
X-Mailer: Lotus Notes Release 7.0.2 September 26, 2006
Message-ID: 
<OF2B5A146C.64754535-ON83257ABB.00555A6F-83257ABB.0055B89D@clientX.com.br>
Date: Mon, 19 Nov 2012 13:36:17 -0200
Sender: joao.silva@clientX.com.br
From: support@clientX.com
To: "customer1@companyY.com" <customer1@companyY.com>
Cc: ""john.doe<""john.doe@companyY.com" <john.doe@companyY.com>, James 
Doe/CORPSUPFLL/FLL/CUSTOMER@CUSTOMERNET>
Subject: [31-00_0500-00106_ISR-2012100046477] Report - RTS - PFD#1 FAULT
X-MIMETrack: Serialize by IMAP Server on CUST02/CUSTOMER(Release 8.5.3FP1|March 
07, 2012) at
 12/04/2012 11:25:15
Content-type: text/plain; charset=UTF-8
Content-transfer-encoding: base64

I used the same email address format within Lotus Notes and it worked. However, 
in Gmail this format was not recognised. The question is, did someone face the 
same issue? Is there any workaround?

What version of the product are you using? On what operating system?
Email IO Connector 3.1.13. BOP4 CU16. Windows 2003.

Please provide any additional information below.
In addition, the email IO service container tries to process these emails every 
run, which generates huge logs with the error 
"com.csc.cordys.ac.emailio.exception.InboundEmailException: Error getting the 
message id". I'm afraid that it is affecting the environment performance.

Original issue reported on code.google.com by cesar.l...@gmail.com on 14 Dec 2012 at 1:30