Get the ReplyTo addresses.
()
| 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 { |
nothing calls this directly
no test coverage detected