public List getHeader(String name) throws SieveMailException {
try {
String[] headers = getMessage().getHeader(name);
return (headers == null ? new ArrayList(0) : Arrays.asList(headers));
} catch (MessagingException ex) {
throw new SieveMailException(ex);
}
}