if (debug)
if (log.isDebugEnabled())
    private final boolean sendMessage (AttributedMessage msg, MailData destAddr)    {      if (debug)       {        System.err.println ("\nOutgoingEmail: send " +MessageUtils.toString(msg));      }      boolean success = false;      try      {        //  Create email header         String localnode = replaceSpaces (MessageUtils.getFromAgentNode (msg));        String localhost = outboxes[0].getServerHost();        String remotenode = replaceSpaces (destAddr.getNodeID());        String remoteuser = destAddr.getInbox().getUsername();        String remotehost = destAddr.getInbox().getServerHost();        MailMessageHeader boxHeader = outboxes[0].getBoxHeader();        String from = "EmailStream#"+ localnode +"@"+ localhost;        String replyTo = null, cc = null, bcc = null;        if (boxHeader != null)        {          replyTo = boxHeader.getReplyTo().getMaxAddress();          cc =      boxHeader.getCc().getMaxAddress();          bcc =     boxHeader.getBcc().getMaxAddress();        }        String to = remoteuser +"@"+ remotehost;        String subject = "To: " +remotenode+ " Msg: " + MessageUtils.getMessageNumber (msg);        MailMessageHeader header = new MailMessageHeader (from, replyTo, to, cc, bcc, subject);        //  Try to send the message        messageOut.writeMsg (msg);        messageOut.sendMsg (header);        success = true;      }      catch (Exception e)      {        if (debug)         {          System.err.println ("\nOutgoingEmail: sendMessage exception: ");          e.printStackTrace();        }                success = false;      }      return success;    }