removing the extra plugins since they are not necessary.

This commit is contained in:
rvsathe
2021-05-19 17:41:38 +05:30
parent 8d140fbc03
commit 32643a90e7
2 changed files with 46 additions and 91 deletions

View File

@@ -40,7 +40,7 @@ public class DownloadEmailAttachments {
List<String> attachments = new ArrayList<String>();
if (message.getContentType()
.contains("multipart")) {
attachments = downloadEmailMessages(message);
attachments = downloadAttachments(message);
}
System.out.println("Message #" + (i + 1) + ":");
@@ -53,7 +53,7 @@ public class DownloadEmailAttachments {
store.close();
}
public List<String> downloadEmailMessages(Message message) throws IOException, MessagingException {
public List<String> downloadAttachments(Message message) throws IOException, MessagingException {
List<String> downloadedAttachments = new ArrayList<String>();
Multipart multiPart = (Multipart) message.getContent();
int numberOfParts = multiPart.getCount();