javamail getcontent() dosn't work : this makes me crazy.
I can't see the contents of the message.
The application exploits in the getcontent() method.
Please, tell me what's wrong with my code ??
sorry my english. TIA

here is the code

            @Override
            protected Void doInBackground(Void... params) {
            	
       	      	try {
                    //create properties field
                    Properties properties = new Properties();
    
                    properties.put("mail.pop3.host", "255.255.255.255");
                    properties.put("mail.pop3.port", "110");
                    properties.put("mail.pop3.starttls.enable", "false");
                    Session emailSession = Session.getDefaultInstance(properties);
                
                    //create the POP3 store object and connect with the pop server
                    Store store = emailSession.getStore("pop3");
    
                    store.connect("255.255.255.255", "popo@midominio.com", "ok");
    
                    //create the folder object and open it
                    Folder emailFolder = store.getFolder("INBOX");
                    emailFolder.open(Folder.READ_WRITE);
 
                    Message[] messages = emailFolder.getMessages();
                    
                    for (int i = 0, n = messages.length; i < n; i++) {
                        
                    Message message = messages[i];
                    
    
                    //here is the killer line	
                 		Multipart mp = (Multipart) message.getContent();
        	
                    }
    
                    emailFolder.close(false);
                    store.close();                
                    } catch (NoSuchProviderException e) {
                    } catch (MessagingException e) {
                    } catch (Exception e) {
                    }
    
               return null;
            }