本文整理了Java中com.fsck.k9.mail.Message.getMessageId()
方法的一些代码示例,展示了Message.getMessageId()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Message.getMessageId()
方法的具体详情如下:
包路径:com.fsck.k9.mail.Message
类名称:Message
方法名:getMessageId
暂无
代码示例来源:origin: k9mail/k-9
private void processMessageToForward(MessageViewInfo messageViewInfo, boolean asAttachment) throws MessagingException {
Message message = messageViewInfo.message;
String subject = messageViewInfo.subject;
if (subject != null && !subject.toLowerCase(Locale.US).startsWith("fwd:")) {
subjectView.setText("Fwd: " + subject);
} else {
subjectView.setText(subject);
}
// "Be Like Thunderbird" - on forwarded messages, set the message ID
// of the forwarded message in the references and the reply to. TB
// only includes ID of the message being forwarded in the reference,
// even if there are multiple references.
if (!TextUtils.isEmpty(message.getMessageId())) {
repliedToMessageId = message.getMessageId();
referencedMessageIds = repliedToMessageId;
} else {
Timber.d("could not get Message-ID.");
}
// Quote the message and setup the UI.
if (asAttachment) {
attachmentPresenter.processMessageToForwardAsAttachment(messageViewInfo);
} else {
quotedMessagePresenter.processMessageToForward(messageViewInfo);
attachmentPresenter.processMessageToForward(messageViewInfo);
}
}
代码示例来源:origin: k9mail/k-9
recipientPresenter.initFromReplyToMessage(message, isReplyAll);
if (message.getMessageId() != null && message.getMessageId().length() > 0) {
repliedToMessageId = message.getMessageId();
代码示例来源:origin: k9mail/k-9
long parentId = -1;
String messageId = message.getMessageId();
代码示例来源:origin: k9mail/k-9
cv.put("empty", 0);
String messageId = message.getMessageId();
if (messageId != null) {
cv.put("message_id", messageId);
代码示例来源:origin: k9mail/k-9
String messageId = message.getMessageId();
if (messageId != null) {
cv.put("message_id", messageId);
代码示例来源: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();
}
内容来源于网络,如有侵权,请联系作者删除!