Exemple #1
0
  @Override
  public Date getSentDate() {
    if (mSentDate == null) {
      try {
        DateTimeField field =
            (DateTimeField)
                DefaultFieldParser.parse(
                    "Date: " + MimeUtility.unfoldAndDecode(getFirstHeader("Date")));
        mSentDate = field.getDate();
      } catch (Exception e) {

      }
    }
    return mSentDate;
  }
Exemple #2
0
 /** Returns the unfolded, decoded value of the Subject header. */
 @Override
 public String getSubject() {
   return MimeUtility.unfoldAndDecode(getFirstHeader("Subject"), this);
 }