System.err.println ("Error: bad outbox spec in " +spec); System.err.println ("Bad outbox spec ignored");
log.error ("Bad outbox spec: " +spec+ " (ignored)");
  public MailBox[] parseOutboxes (String outboxesProp)  {    if (outboxesProp == null) return null;    Vector out = new Vector();     int MaxBoxes = 1;  // FIXED to 1 for now, perhaps forever    //  Parse the outbox specs (separated by semicolons)    for (int i=0; i<MaxBoxes; i++)    {      StringTokenizer specs = new StringTokenizer (outboxesProp, ";");      if (specs.hasMoreTokens())      {        String spec = specs.nextToken();        StringTokenizer st = new StringTokenizer (spec, ",");        while (st.hasMoreTokens())         {          String protocol = st.nextToken();          //  SMTP outboxes            //          //  Format: smtp,host,port,replyTo,cc,bcc;...;... (general)          //          smtp,host,port,-,-,-                  (typical)          if (protocol.equals ("smtp"))          {            try            {              String host = getFQDN (nextParm (st));              String port = nextParm (st);              MailBox mbox = new MailBox (protocol, host, port);              String replyTo = nextParm (st);              String cc = nextParm (st);              String bcc = nextParm (st);              if (replyTo != null || cc != null || bcc != null)              {                MailMessageHeader hdr = new MailMessageHeader (null, replyTo, null, cc, bcc, null);                mbox.setBoxHeader (hdr);              }              out.add (mbox);            }            catch (Exception e)            {              System.err.println ("Error: bad outbox spec in " +spec);              System.err.println ("Bad outbox spec ignored");            }          }          else break;        }      }      else break;    }    //  Create the outboxes array and return it    if (out.size() > 0)      {      outboxes = (MailBox[]) out.toArray (new MailBox[out.size()]);      return outboxes;    }    else    {      System.err.println ("Error: No outboxes defined in " +outboxesProp);      return null;    }  }