/**
  * Add MimeMessage to deliver it.
  *
  * @param msg MimeMessage to deliver.
  * @throws MessagingException If delivery add failed.
  */
 protected void add(MimeMessage msg) throws MessagingException {
   if (!deliveryManager.isAlive()) {
     deliveryManager.start();
   }
   deliveryManager.add(msg);
 }
 public void shutdown() {
   deliveryManager.shutdown();
 }
 public void start() {
   if (!deliveryManager.isAlive()) {
     deliveryManager.start();
   }
 }
 /**
  * Remove an email from delivery.
  *
  * @param mailid Unique Aspirin ID of this email.
  * @throws MessagingException If removing failed.
  */
 public void remove(String mailid) throws MessagingException {
   deliveryManager.remove(mailid);
 }