*
* @param mail
* @return
*/
public static Netmail ftnMessageToNetmail(FtnMessage mail) {
Netmail netmail = new Netmail();
netmail.setAttr(mail.getAttribute());
netmail.setDate(mail.getDate());
netmail.setFromFTN(mail.getFromAddr().toString());
netmail.setFromName(mail.getFromName());
netmail.setToFTN(mail.getToAddr().toString());
netmail.setToName(mail.getToName());
netmail.setSubject(mail.getSubject());
netmail.setText(mail.getText());
return netmail;
}