BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 05-10-2007, 01:56 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: May 2007
Location: berlin, germany
Model: 8310
PIN: N/A
Carrier: vodafone
Posts: 163
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default delete an email

Please Login to Remove!

Hiho,
it's me again ;)
How can I delete an email-message? I read the contents of the mail, an after that i want to delete the message:
Code:
Message inMsg = msgs[i2]; // retrieve the first message
                        // Address[] recipients = inMsg.getRecipients(Message.RecipientType.TO);
                        //Date sent = inMsg.getSentDate();
                        Address from = inMsg.getFrom();
                        String subject = inMsg.getSubject();
                        String txt = inMsg.getBodyText();
                        System.out.println(from+" | "+subject+" | "+txt);
how can i delete that one?

thanks hibbert

Last edited by hibbert : 05-10-2007 at 08:43 AM.
Offline  
Old 05-11-2007, 02:24 AM   #2 (permalink)
Thumbs Must Hurt
 
Join Date: May 2007
Location: berlin, germany
Model: 8310
PIN: N/A
Carrier: vodafone
Posts: 163
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
i found the comment removeMessage(), but how must i use it? I have no idea...
I searched google, here,... but no results...

hibbert
Offline  
Old 05-11-2007, 04:25 AM   #3 (permalink)
Thumbs Must Hurt
 
Join Date: May 2007
Location: berlin, germany
Model: 8310
PIN: N/A
Carrier: vodafone
Posts: 163
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

ok i just finde the one line i need
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





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