public void service(Mail mail){
  try {
    MimeMessage message=mail.getMessage();
    Classifier classifier=new Classifier(message);
    String classification=classifier.getClassification();
    message.setHeader(headerName,classification);
    message.saveChanges();
  }
 catch (  javax.mail.MessagingException me) {
    log("Error classifying message: " + me.getMessage());
  }
}

public void service ( Mail mail ) { try { MimeMessage message = mail . getMessage ( ) ; Classifier classifier = new Classifier ( message ) ; String classification = classifier . getClassification ( ) ; message . setHeader ( headerName , classification ) ; message . saveChanges ( ) ; } catch ( javax . mail . MessagingException me ) { log ( "Error classifying message: " + me . getMessage ( ) ) ; } }
takes the message and adds a header to it .
