private void setSentDate ( final Email emailWithData , final MimeMessage msgToSet ) throws MessagingException { Date date = emailWithData . sentDate ( ) ; if ( date == null ) { date = new Date ( ) ; } msgToSet . setSentDate ( date ) ; }
Sets sent date in msgToSet with sent date from emailWithData .