• Post Reply Bookmark Topic Watch Topic
  • New Topic

JavaMail is too verbose

 
Tomas Nilson
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey!

I have the following code:

Message[] messages = folder.getMessages();
FetchProfile fp = new FetchProfile();
fp.add(FetchProfile.Item.ENVELOPE);
fp.add(FetchProfile.Item.FLAGS);
fp.add("X-Mailer");
folder.fetch(messages, fp);

and when I run folder.fetch(messages, fp);
it outputs a lot of text to the console. Is there any way to turn this off?

Thanks, Tom
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I presume this is because you have enabled SMTP debugging (via the "mail.debug" property).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!