Mail fetching Stopped when processing a mail with Invalid From Address
Trace :
- [13:18:44:385]|[04-17-2023]|[com.manageengine.servicedesk.mail.core.ProcessMailMessage]|[INFO]|[185]: com.adventnet.servicedesk.mailutils : setFromAddress()|
- [13:18:44:385]|[04-17-2023]|[com.manageengine.servicedesk.mail.core.ProcessMailMessage]|[SEVERE]|[185]: Exception in getting fromAddress......so setting Not Provided by default|
- [13:18:44:385]|[04-17-2023]|[SYSERR]|[INFO]|[185]: javax.mail.internet.AddressException: Local address contains control or whitespace in string ``Spam Report''|
- [13:18:44:385]|[04-17-2023]|[SYSERR]|[INFO]|[185]: at javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java:1365)|
Root Cause:
- Invalid mail address sent by mail sender. In most of the cases, this kind of mails are sent from customer mail sending tools or mail failure notifications say bounce mail, server error etc. When parsing the from address and gives us null value. converting tolowercase without handling null check give raise to an exception, which in turn stops the mail fetching schedule.
WorkAround :
- IncomingMail.setFromAddress throws NullPointerException when processsing such from address values. A temporary workaround is given to the customer to ignore Exception in the attached fjar . However, with that fix, the requester of the request is set as "Not Provided" (An user is created with the display name as "Not Provided"). This issue is fixed and a meaningul name will be fetched (if available in mail details) in 14304 Build.
- Issue ID : SD-110562
Fjar Details :
Build compatibility : 14101 - 14103, 14202
How to Apply the fjar?
- Download the attached fjar file.
- place it inside the fixes directory at <servicedeskplus_home>.
- Restart the servicedeskplus application server.
New to ADSelfService Plus?
Related Articles
Mail Fetching - Error while processing attachment and inline image.
Issue During the process of fetching emails, attachments are dropped as a result of the presence of directory traversal characters. Furthermore, an issue arises when processing inline images, this particular error related to inline images results in ...
Fix: Mail fetching stops due to invalid characters in the attachment name
Issue: Mail fetching being stopped due to invalid characters "?" , ":" in the filename. In this case, the eml file's subject contains ":" character and so, while uploading the .eml as attachment, error is thrown (Only in windows server) Trace: ...
Mail Fetching: Inline Images Dropping Due to Invalid Extension
Issue: The inline image's file name from the email doesn't contain the extension. Example: filename = sys_attachment.dosys_id=5bb0751c8303b5dc96a238226daad371 As a result, the inline image gets stripped during the mail fetching process. The sender of ...
Mail fetching Stops processing of emails from unknown requester caused the whole mail_fetching service to stop. (workaround available) - 10500
This is applicable from the builds - 10500 - 10503 Mail fetching stops processing of emails from unknown requester caused the whole mail_fetching service to stop. Steps to recreate: #Set Add Unknown User As - Unapproved Users #Set Provide login ...
Mail fetching - deleted flag issue
This message will be thrown, when you have provided a shared mailbox. The concept here is, SDP MSP reads the mail from the configured mailbox and adds it as a request. During the time, if some other application fetches the mail from the same mailbox ...