private AddressList getAddressList(String fieldName) { AddressListField field = obtainField(fieldName); return field != null? field.getAddressList() : null; }
private MailboxList getMailboxList(String fieldName) { MailboxListField field = obtainField(fieldName); return field != null ? field.getMailboxList() : null; }
private Mailbox getMailbox(String fieldName) { MailboxField field = obtainField(fieldName); return field != null ? field.getMailbox() : null; }
/** * Returns the value of the <i>Date</i> header field of this message as * <code>Date</code> object or <code>null</code> if it is not present. * * @return the date of this message. */ public Date getDate() { DateTimeField field = obtainField(FieldName.DATE); return field != null ? field.getDate() : null; }
/** * Returns the (decoded) value of the <i>Subject</i> header field of this * message or <code>null</code> if it is not present. * * @return the subject of this message. */ public String getSubject() { UnstructuredField field = obtainField(FieldName.SUBJECT); return field != null ? field.getValue() : null; }
/** * Returns the value of the <i>Message-ID</i> header field of this message * or <code>null</code> if it is not present. * * @return the identifier of this message. */ public String getMessageId() { Field field = obtainField(FieldName.MESSAGE_ID); return field != null ? field.getBody() : null; }