I have a java program that sends group announcements to many people.In some cases as most of them are out of office i get many out of office messages as a result of which the mail box becomes full. Can anyone help me out as to how i can block these out of office messages.
Thanking you in advance
posted 9 years ago
Welcome to JavaRanch.
Since those messages generally have some common format (e.g., "out of office" or something similar in the subject), you can write a bit of JavaMail code that periodically connects to the mailbox and deletes all messages that match this format.