[ 
https://issues.apache.org/jira/browse/JAMES-322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17044212#comment-17044212
 ] 

Rashid Mahmood commented on JAMES-322:
--------------------------------------

I dont think Error handling described in 
[http://james.apache.org/server/config-mailetcontainer.html] would work here, 
MailDispatcher used in LocalDelivery.service() method is catching exceptions 
for every Recepient (makes sense so that we can try to store mail for every 
Recepient), so LocalDelivery.service() would not throw any exception
{code:java}
 private List<MailAddress> deliver(Mail mail, MimeMessage message) {
        List<MailAddress> errors = new ArrayList<>();
        for (MailAddress recipient : mail.getRecipients()) {
            try {
                Map<String, List<String>> savedHeaders = saveHeaders(mail, 
recipient);                addSpecificHeadersForRecipient(mail, message, 
recipient);
                mailStore.storeMail(recipient, mail);
                
                restoreHeaders(mail.getMessage(), savedHeaders);
            } catch (Exception ex) {
                LOGGER.error("Error while storing mail.", ex);
                errors.add(recipient);
            }
        }
        return errors;
    }
{code}

> please support  Delivery Status Notifcations as per rfc3461
> -----------------------------------------------------------
>
>                 Key: JAMES-322
>                 URL: https://issues.apache.org/jira/browse/JAMES-322
>             Project: James Server
>          Issue Type: New Feature
>          Components: SMTPServer
>    Affects Versions: 2.2.0, 2.3.0
>         Environment: any
>            Reporter: Ralf Hauser
>            Assignee: Stefano Bagnara
>            Priority: Major
>             Fix For: Trunk
>
>
> http://www.ietf.org/rfc/rfc3461.txt



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to