get email attatchment for POP 3 received as winmail.dat
问题 When I try to get attatchment from POP 3 mail, I am getting them as winmail.dat, not the original attached file name. How can I get the original file name? for (int i = 0; i < multipart.getCount(); i++) { BodyPart bodyPart = multipart.getBodyPart(i); if(!Part.ATTACHMENT.equalsIgnoreCase(bodyPart.getDisposition())) { //do something } else { bodyPart.getFileName(); // here only get the winmail.dat } } 回答1: This is part of the Exchange Settings, and sadly you going to need to extract the