BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 11-16-2009, 04:57 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2007
Model: 8800
PIN: N/A
Carrier: Vodafone
Posts: 29
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default No messages in Inbox

Please Login to Remove!

Hello,

I'm trying to get the messages from the inbox. But the store.list() function do not give me the right folder.

I want to have "Desktop://myName/serverName/inbox"
But i only get "Desktop://myName/serverName/sent" and "draft".
the only Inbox-folder that i get is "no servicebook://inbox" and there are not my incommed E-Mails.

Here my code to look at the folders.
PHP Code:
    try
            {
                
                
Store store Session.getDefaultInstance().getStore(); 
                
Folderxxx91;xxx93; folders store.list();
                
Dialog.inform(String.valueOf(folders.length));
                for (
int i folders.length i++)
                {
                    
inboxFolder foldersxxx91;ixxx93;;
                    
Dialog.inform(inboxFolder.getFullName());
                    
Messagexxx91;xxx93; input inboxFolder.getMessages();
                    if (
input.length == 0)
                    {
Dialog.inform("leer");}
                    else
                    {
                        
Message newest inputxxx91;0xxx93;; 
            
                        
Dialog.inform(newest.getSubject());
                    }
                }
            }
            catch(
Exception e){Dialog.inform(e.toString());} 
please help me.

Martin
__________________
if you can answer in german, please answer in german
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

GE CPS6000 19" Series 2 DC 3 Track Power System INCLUDING WIRING
$295.0
GE CPS6000 1950PCS RL207 2A 1000V DIP Rectifier Diode NEW
$1.52
50PCS RL207 2A 1000V DIP Rectifier Diode NEW picture2pcs Mitsubishi ML101J25 650nm 660nm CW 100mw Red Laser Diode 5.6mm TO-18 LD
$14.6
2pcs Mitsubishi ML101J25 650nm 660nm CW 100mw Red Laser Diode 5.6mm TO-18 LD picture(10PCS) DB2J31400L DIODE SCHOTTKY 30V 30MA SMINI2 2J31400 DB2J31400
$2.78
(10PCS) DB2J31400L DIODE SCHOTTKY 30V 30MA SMINI2 2J31400 DB2J31400 picture(1PCS) 6CWQ03FN DIODE SCHOTTKY 30V 3.5A D-PAK 6 6C
$2.57
(1PCS) 6CWQ03FN DIODE SCHOTTKY 30V 3.5A D-PAK 6 6C picture






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