本文整理了Java中com.fsck.k9.mail.Message.getReferences()
方法的一些代码示例,展示了Message.getReferences()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Message.getReferences()
方法的具体详情如下:
包路径:com.fsck.k9.mail.Message
类名称:Message
方法名:getReferences
暂无
代码示例来源:origin: k9mail/k-9
repliedToMessageId = message.getMessageId();
String[] refs = message.getReferences();
if (refs != null && refs.length > 0) {
referencedMessageIds = TextUtils.join("", refs) + " " + repliedToMessageId;
代码示例来源:origin: jberkel/sms-backup-plus
@Test public void testShouldGenerateStandardHeaders() throws Exception {
Message message = new MimeMessage();
Map<String, String> map = new HashMap<String, String>();
Date sent = new Date();
PersonRecord person = new PersonRecord(0, null, null, null);
generator.setHeaders(message, map, DataType.SMS, "1234", person, sent, 0);
assertThat(get(message, Headers.ADDRESS)).isEqualTo("1234");
assertThat(get(message, Headers.DATATYPE)).isEqualTo("SMS");
assertThat(get(message, Headers.BACKUP_TIME)).isNotEmpty();
assertThat(get(message, Headers.VERSION)).isNotEmpty();
assertThat(message.getMessageId()).contains("sms-backup-plus.local");
assertThat(message.getSentDate()).isEqualTo(sent);
assertThat(message.getReferences()).isNotEmpty();
}
内容来源于网络,如有侵权,请联系作者删除!