MCPcopy Create free account
hub / github.com/M66B/FairEmail / getReplyTo

Method getReplyTo

app/src/main/java/com/sun/mail/imap/IMAPMessage.java:382–397  ·  view source on GitHub ↗

Get the ReplyTo addresses.

()

Source from the content-addressed store, hash-verified

380 * Get the ReplyTo addresses.
381 */
382 @Override
383 public Address[] getReplyTo() throws MessagingException {
384 checkExpunged();
385 if (bodyLoaded)
386 return super.getReplyTo();
387 loadEnvelope();
388 /*
389 * The IMAP spec requires that the Reply-To field never be
390 * null, but at least Exchange 2007 fails to fill it in in
391 * some cases. Use the same fallback strategy used by
392 * MimeMessage.
393 */
394 if (envelope.replyTo == null || envelope.replyTo.length == 0)
395 return getFrom();
396 return aaclone(envelope.replyTo);
397 }
398
399 @Override
400 public void setReplyTo(Address[] addresses) throws MessagingException {

Callers

nothing calls this directly

Calls 4

checkExpungedMethod · 0.95
loadEnvelopeMethod · 0.95
getFromMethod · 0.95
aacloneMethod · 0.95

Tested by

no test coverage detected