class SetMimeHeader extends GenericMailet {

    @Override
    public void init() throws MessagingException {
        headerName = getInitParameter("name");
        headerValue = getInitParameter("value");
        
        if (Strings.isNullOrEmpty(headerName) || Strings.isNullOrEmpty(headerValue)) {
            throw new MessagingException("Please configure a name and a value");
        }
    }

}