Package com.elasticinbox.lmtp.server.api

Examples of com.elasticinbox.lmtp.server.api.DeliveryReturnCode


    Map<MailAddress, DeliveryReturnCode> replies = new HashMap<MailAddress, DeliveryReturnCode>();
    // Deliver to each recipient
    for (MailAddress recipient : env.getRecipients())
    {
      DeliveryReturnCode reply = DeliveryReturnCode.TEMPORARY_FAILURE; // default LMTP reply
      DeliveryAction deliveryAction = DeliveryAction.DELIVER; // default delivery action

      Mailbox mailbox = new Mailbox(recipient.toString());
      String logMsg = new StringBuilder(" ").append(mailbox.getId())
                .append(" DID").append(deliveryId).toString();
View Full Code Here


    }

    LMTPMultiResponse lmtpResponse = null;
    for (MailAddress address : replies.keySet())
    {
      DeliveryReturnCode code = replies.get(address);
      SMTPResponse response;

      switch (code) {
      case OK:
        response = new SMTPResponse(SMTPRetCode.MAIL_OK,
View Full Code Here

TOP

Related Classes of com.elasticinbox.lmtp.server.api.DeliveryReturnCode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.