com.fsck.k9.mail.Message.getInternalDate()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(223)

本文整理了Java中com.fsck.k9.mail.Message.getInternalDate()方法的一些代码示例,展示了Message.getInternalDate()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Message.getInternalDate()方法的具体详情如下:
包路径:com.fsck.k9.mail.Message
类名称:Message
方法名:getInternalDate

Message.getInternalDate介绍

暂无

代码示例

代码示例来源:origin: k9mail/k-9

public boolean olderThan(Date earliestDate) {
  if (earliestDate == null) {
    return false;
  }
  Date myDate = getSentDate();
  if (myDate == null) {
    myDate = getInternalDate();
  }
  return myDate != null && myDate.before(earliestDate);
}

代码示例来源:origin: k9mail/k-9

@Nullable
private Bundle createGossipUpdateBundle(Message message, MimeBodyPart decryptedPart) {
  List<String> gossipAcceptedAddresses = getGossipAcceptedAddresses(message);
  if (gossipAcceptedAddresses.isEmpty()) {
    return null;
  }
  List<AutocryptGossipHeader> autocryptGossipHeaders =
      autocryptGossipHeaderParser.getAllAutocryptGossipHeaders(decryptedPart);
  if (autocryptGossipHeaders.isEmpty()) {
    return null;
  }
  Date messageDate = message.getSentDate();
  Date internalDate = message.getInternalDate();
  Date effectiveDate = messageDate.before(internalDate) ? messageDate : internalDate;
  return createGossipUpdateBundle(gossipAcceptedAddresses, autocryptGossipHeaders, effectiveDate);
}

代码示例来源:origin: k9mail/k-9

public boolean addAutocryptPeerUpdateToIntentIfPresent(Message currentMessage, Intent intent) {
  AutocryptHeader autocryptHeader = autocryptHeaderParser.getValidAutocryptHeader(currentMessage);
  if (autocryptHeader == null) {
    return false;
  }
  String messageFromAddress = currentMessage.getFrom()[0].getAddress();
  if (!autocryptHeader.addr.equalsIgnoreCase(messageFromAddress)) {
    return false;
  }
  Date messageDate = currentMessage.getSentDate();
  Date internalDate = currentMessage.getInternalDate();
  Date effectiveDate = messageDate.before(internalDate) ? messageDate : internalDate;
  AutocryptPeerUpdate data = AutocryptPeerUpdate.create(
      autocryptHeader.keyData, effectiveDate, autocryptHeader.isPreferEncryptMutual);
  intent.putExtra(OpenPgpApi.EXTRA_AUTOCRYPT_PEER_ID, messageFromAddress);
  intent.putExtra(OpenPgpApi.EXTRA_AUTOCRYPT_PEER_UPDATE, data);
  return true;
}

代码示例来源:origin: k9mail/k-9

cv.put("reply_to_list", Address.pack(message.getReplyTo()));
cv.put("attachment_count", attachmentCount);
cv.put("internal_date", message.getInternalDate() == null
    ? System.currentTimeMillis() : message.getInternalDate().getTime());
cv.put("mime_type", message.getMimeType());
cv.put("empty", 0);

相关文章