Problems getting mail with MailPro

Hi,

I’m experimenting with the MailPro-plugin, but I’m experiencing a few problems.

  1. I get the warning “PM MailPro.POP3Account WARN: getMessagesInBackground received wrong arguments. At least the method to call has to be provided:”, while I’m providing all arguments.
    vPop.getMessagesInBackground(0,globals.getMailMessage(),null,null,null,vDeleteMessagesFromServer,globals.getMailMaxMessage())

  2. every 2nd time I call the method I get the error: “PM MailPro.POP3Account ERROR: Error connecting to host mail.coperta.nl: javax.mail.AuthenticationFailedException: [IN-USE] Mailbox in use”
    At the end of the method the account disconnects, so I don’t understan why I get the error.

  3. randomly I receive this error at the end of the session, but I receive all messages: “PM MailPro.MessageReceiver ERROR: Background receiver: error opening folder INBO”
    Does someone knows why?

Hi,

first, please address such issues where they belong, in this case support@servoy-plugins.de

Regarding your issues:

  1. You are not passing a method reference, but you are calling your method and pass the possible results of that

vPop.getMessagesInBackground(0,globals.getMailMessage(),null,null,null,vDeleteMessagesFromServer,globals.getMailMaxMessage())

should be

vPop.getMessagesInBackground(0,globals.getMailMessage,null,…

also, the last parameter is (probably) wrong. It (optionally) expects an integer that indicates after how many messages you want the method to be called.

  1. I will have a look and see if everything is properly closed after all messages are retrieved. You say: “at the end of the method the account disconnects”. The end of what method? Because if you use getMessagesInBackground, all messages are downloaded in a seperate thread. So the only method that should close anything here is your globals.getMailMessage.

  2. Not sure. It could be because you close the account right after you start the background receiver (see 2)…

Hi Patrik,

sorry for the wrong post, I will continue the discussion by e-mail.