BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 09-09-2008, 09:55 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2008
Model: 8310
PIN: N/A
Carrier: ddd
Posts: 18
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default read a email

Please Login to Remove!

Hello i using this code but dont work:

public boolean leerMensaje(){
//Session s=Session
boolean flag=false;
try{
Store store = Session.waitForDefaultSession().getStore();
Folder folder = store.getFolder("INBOX");
Message[] msgs = folder.getMessages();
for (int i = 0; i < msgs.length; i++) {
Address[] recipients = msgs[i].getRecipients(Message.RecipientType.TO);
msgs[i].addRecipients(Message.RecipientType.TO,recipients );
if (msgs[i].getSubject().equals("Forzar")){
flag=true;
}
}
}
catch(Exception e){
System.err.println("Un error ha ocurrido" + e.toString());
}
return flag;
}
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

AGILENT 16702B LOGIC ANALYZER MAINFRAME
$400.0
AGILENT 16702B LOGIC ANALYZER MAINFRAME pictureTEKTRONIX TM502A MAINFRAME AM503B CURRENT PROBE AMPLIFIER AM503S OPT.01 B032927
$250.0
TEKTRONIX TM502A MAINFRAME AM503B CURRENT PROBE AMPLIFIER AM503S OPT.01 B032927 picturePRODIGIT 3325 60V/15A,75W DC ELECTRONIC LOAD W/ 3302 MAINFRAME 811020599
$1200.0
PRODIGIT 3325 60V/15A,75W DC ELECTRONIC LOAD W/ 3302 MAINFRAME 811020599 picturePRODIGIT 3325 60V/15A,75W DC ELECTRONIC LOAD W/ 3302 MAINFRAME 811020592
$1200.0
PRODIGIT 3325 60V/15A,75W DC ELECTRONIC LOAD W/ 3302 MAINFRAME 811020592 picturePRODIGIT 3325 60V/15A,75W DC ELECTRONIC LOAD W/ 3302 MAINFRAME 811020590
$1200.0
PRODIGIT 3325 60V/15A,75W DC ELECTRONIC LOAD W/ 3302 MAINFRAME 811020590 picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.