protected void setMessage(Message messageToSend) throws ParserException, MimeException { this.message = messageToSend; this.to = Sets.newHashSet(convertAddressListToRistretoAddresses(message.getTo())); this.cc = Sets.newHashSet(convertAddressListToRistretoAddresses(message.getCc())); this.cci = Sets.newHashSet(convertAddressListToRistretoAddresses(message.getBcc())); filterHeaders(message.getHeader()); lookForInvitation(message); this.hasFromField = false; this.mimeData = serializeMimeData().toByteArray(); }
/** @see org.apache.james.jdkim.api.Headers#getFields() */ public List<String> getFields() { List<Field> res = message.getHeader().getFields(); return convertFields(res); }
/** @see org.apache.james.jdkim.api.Headers#getFields(java.lang.String) */ public List<String> getFields(final String name) { return convertFields(message.getHeader().getFields(name)); }