Example #1
0
 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();
 }
Example #2
0
 /** @see org.apache.james.jdkim.api.Headers#getFields() */
 public List<String> getFields() {
   List<Field> res = message.getHeader().getFields();
   return convertFields(res);
 }
Example #3
0
 /** @see org.apache.james.jdkim.api.Headers#getFields(java.lang.String) */
 public List<String> getFields(final String name) {
   return convertFields(message.getHeader().getFields(name));
 }