• Post Reply Bookmark Topic Watch Topic
  • New Topic

How To Block Out Of Office Messages

 
senthil jaya
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

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
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!