Set programmatically to message Inbox as read...

Hi all

I'm developing an application where I still messages e-mail from specific senders to come me. I access these persistent emails in my application and approve or dismiss the action on these mails through my application. In both cases (approve and reject), I send mails where I got that email.

But I would like to mail in my E-mail Blackberry Inbox as READ when I approve/reject that mail in my application. I managed to find the mail from the Inbox which I approved or rejected my app but when I put this mail as read that mail from the Inbox is not be marked as read...

I get emails from Inbox as follows table...

Records of file [] = store.list (file.

INBOX);

File inboxFolder.

inboxFolder = files [0];

Message messages [] =null;

try {

messages = inboxFolder.getMessages ();

}

catch (MessagingException e1) {

Generative TODO catch block

E1. PrintStackTrace();

}

and when I mark the message as read of ' mail '... How can mark it as read of the Inbox folder.

for (int i = 0; i)<>

String receiveddateTime = dateFormat.format (messages [i] .getReceivedDate ());

       if (receiveddateTime.equals (messageDTO.getDateTime ()) & messages [i] .getSubject () .equals (messageDTO.getSubject ())) {

messages [i] .setStatus (Message.Status.

TX_READ, Message.Status.RX_ERROR);

}

}

read and not above mail code of 'messages' as points of Inbox...

Thanking you in anticipation...

Shivdattam

Hi all

The solution, I worked myself...

Instead of storing messages in a table and their definition as open, I directly put messages as read as follows...

Inbox is the Inbox of the store...

for

(int i = 0; i)<>

Date of receipt of string = dateFormat.format (inbox.getMessages ([i]) .getReceivedDate ());

if (inbox.getMessages () [i] .getFrom () .getAddr () .equals (messageDTO.getFromAddr ()) & receivedDate.equals (messageDTO.getDateTime ())) {

inbox.getMessages ([i] .setFlag (Message.Flag.)

OPEN,true);

Break;

}

}

Thank you all...

Shivdatta

Tags: BlackBerry Developers

Similar Questions

  • How to set all the emails in Inbox to read

    I had to download all my emails from My Passport from a backup, but all the emails came with indicator like new emails. How to set all mails in the Inbox to read in time?

    Click at least an e-mail in the list, and then press command-A to select all emails in the box. Or CTRL - RIGHT click on the selection, then click on menuitem followed by clicking on the option Mark as read.

  • How can I get Windows Live Hotmail back to my page of the Inbox after reading or deleting a message?

    HOW TO GET HOTMAIL BACK TO THE PAGE OF THE INBOX AFTER READING & DELETING A MESSAGE INSTEAD OF GOING TO THE FOLLOWING E-MAIL ADDRESS, WHICH MAY BE OF THE SPAM OR DANGEROUS TO OPEN IT.  IT DOESN'T SEEM TO BE AN OPTION FOR THIS ON THE HOTMAIL PAGE.  WOULD APPRECIATE ANY HELP.  Thank you

    original title: HOTMAIL INBOX BACK

    Hello

    Answers is a peer group supported and unfortunately has no real influence on Hotmail.

    HotMail has its own Forums, so you can ask your questions there.

    Windows Live Solution Center - HotMail - HotMail Forums Solutions
    http://windowslivehelp.com/

    Hotmail - Forums
    http://windowslivehelp.com/forums.aspx?ProductID=1

    Hotmail - Solutions
    http://windowslivehelp.com/solutions.aspx?ProductID=1

    How to contact Windows Live Hotmail Support
    http://email.about.com/od/hotmailtips/Qt/et_hotmail_supp.htm

    Windows Live Hotmail Top issues and Support information
    http://support.Microsoft.com/kb/316659/en-us

    Compromised account - access unauthorized account - how to recover your account
    http://windowslivehelp.com/solution.aspx?SolutionID=6ea0c7b3-1473-4176-b03f-145b951dcb41

    Hotmail hacked? Take these steps
    http://blogs.msdn.com/b/securitytipstalk/archive/2010/07/07/Hotmail-hacked-take-these-steps.aspx

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • My Inbox messages marked as "read" retired and cannot be retrieved. Help, please!

    The scenario: I open my Windows Mail (2006) and receive incoming messages.  All messages are in bold, until this that marked as 'read' (3 seconds).  I can see all the messages, but if I move to another folder, and then return to the Inbox, a "read" messages have disappeared.  I checked the file "Deleted", but they are not in.  They seem to have disappeared in the e-mail entirely program.

    The scenario: I open my Windows Mail (2006) and receive incoming messages.  All messages are in bold, until this that marked as 'read' (3 seconds).  I can see all the messages, but if I move to another folder, and then return to the Inbox, a "read" messages have disappeared.  I checked the file "Deleted", but they are not in.  They seem to have disappeared in the e-mail entirely program.

    In - box-click > view, click View > current view (if you use Windows Mail) > show all messages

    t-4-2

  • How to set programmatically an error message for a validation of an EO rule

    Hello

    Is there a way to programmatically set an error message during the validation of an EO data?
    It seems that the EO interface API has not any method must be defined for my needs...

    Thank you

    The other option, which is the error message that you can set an expression groovy to call a method of EO.
    I documented this on my blog
    http://blogs.Oracle.com/grantronald/entry/dynamic_error_messages_from_a

    Concerning
    Grant

  • I can't open my Inbox to read e-mail messages. I am told that I must leave Messenger.

    original title: cannot open the Inbox to read email suddenly

    He says that I have to click on "Messenger". I clicked on but same screen returns. never used 'Messenger' don't know what it is or what it is supposed to do. I only need to read and send simple emails.  Help! Thank you!

    Hello

    The best place to ask your question of Windows Live is inside Windows Live help forums. Experts specialize in all things, Windows Live, and would be delighted to help you with your questions. Please choose a product below to be redirected to the appropriate community:

    Windows Live Mail

    Windows Live Hotmail

    Windows Live Messenger

    Looking for a different product to Windows Live? Visit the home page Windows Live Help for the complete list of Windows Live forums at www.windowslivehelp.com.

  • message "inbox" disappear in the blink of an eye

    Monday, May 20, 2013, 684 messages "inbox" has simply disappear from my Outlook Express email.  I would like to get these important messages and photos.  How to get back on my PC?  I'm not computer literate and will need someone to guide me through this or have access to my computer and it for me, HELP. * E-mail address is removed from the privacy * 

    While in the Inbox: view | Current view. Show all Messages is checked? If this is not the solution, you have bigger issues.
     
    *********************
     
    Two reasons the most common for what you describe is disruption of the compacting process, (never touch anything until it's finished), or bloated folders. More about that below.
     

    Why OE insists on compacting folders when I close it? :
    http://www.insideoe.com/FAQs/why.htm#compact
     
     
     
     
    Recovery methods:
     
    If you are running XP/SP3, then you should have a backup of your dbx files in the Recycle Bin (or possibly the message store), copied as bak files.
     
    To restore a folder bak on the message store folder, first find the location of the message store.
     
    Tools | Options | Maintenance | Store folder will reveal the location of your Outlook Express files. Note the location and navigate on it in Explorer Windows or, copy and paste in start | Run.
     
     
    In Windows XP, the .dbx files are by default marked as hidden. To view these files in the Solution Explorer, you must enable Show hidden files and folders under start | Control Panel | Folder options | View.
     

    Note: If you have new messages in the folder you are go restore, move them to a folder first created user, or they will be lost. They can be moved once the old posts have been restored.
     

    Close OE and in Windows Explorer, click on the dbx to the file missing or empty file, then drag it to the desktop. It can be deleted later once you have successfully restored the bak file. Minimize the message store.
     
     
    Open OE and, if the folder is missing, create a folder with the * exact * same name as the bak file you want to restore but without the .bak. For example: If the file is Saved.bak, the new folder should be named saved. Open the new folder, and then close OE. If the folder is there, but just empty, continue to the next step.
     
     
    First of all, check if there is a bak file already in the message. If there is, and you have removed the dbx file, go ahead and rename it in dbx.
     

    If it is not already in the message, open the trash and do a right-click on the file bak for the folder in question and click on restore. Open the message store up and replace the .bak by .dbx file extension. Close the message store and open OE. Messages must be in the folder.
     
     
    If messages are restored successfully, you can go ahead and delete the old dbx file that you moved to the desktop.
     
     
    If you have not then bak copies of your dbx files in the Recycle Bin:
     

    DBXpress run in extract disc Mode is the best chance to recover messages:
    http://www.oehelp.com/DBXpress/default.aspx
     
     
    And see:

    http://www.oehelp.com/OETips.aspx#4
     
     
     
     
     

    A general warning to help avoid this in the future:
     

    Do not archive mail in default OE folders. They finally are damaged. Create your own folders defined by the user for mail storage and move your mail to them. Empty the deleted items folder regularly. Keep user created folders under 300 MB, and also empty as is possible to default folders.
     

    Disable analysis in your e-mail anti-virus program. It is a redundant layer of protection that devours the CPUs, slows down sending and receiving and causes a multitude of problems such as time-outs, account setting changes and has even been responsible for the loss of messages. Your up-to-date A / V program will continue to protect you sufficiently.
     
     
     
    For more information, see:
    http://www.oehelp.com/OETips.aspx#3 
     
     
     
    And backup often.
     
     
    Outlook Express Quick Backup (OEQB Freeware)
    http://www.oehelp.com/OEBackup/default.aspx  
     
     
     

     
  • BlackBerry Smartphones showing whatsapp new message in the main message Inbox

    How can I show Whatsapp new message (ver. 2.6.2970) in the main message Inbox?

    Now I have to go directly to Whatsapp to read new messages while for the messenger bb can read/write directly from my message Inbox.

    Cool!
    I'm glad that you fixed it.
    Please solve the thread so that others can find your answer faster.
    Thank you

    Bifocals

  • Cannot delete emails, grays out screen, message Inbox Mozilla (not answer)

    System is not responding. Removal of e-mails causes aging out of the entire screen. Sometimes it is non-gris, but it doesn't always. Cannot delete emails, or does it very slowly - like minutes later. I was recently deleting emails by holding down the SHIFT key, so I can remove a lot of emails at a time. Maybe would it cause a problem? Even the attempt of X on Thunderbird causes the same message "Inbox - Mozilla (not responding)" appear in the upper left corner.
    That's happened?

    I totally disconnected and restarted. I was in safe mode (according to instructions) and then completely disconnected for you ensure that I was not stuck in safe mode.

    I still have non-response.

    Thank you for your help

    Windows Defender. I checked if some application installed McAfee or Norton, but they do not appear in the Panel.
    I have Windows Defender, it is updated.

    I have all the updates of windows 8.1 64-bit.

    Tuberculosis is 24.4.0 (says is up to date)

  • Firefox does not open, but is rather the error message "Unable to read the configuration file." He has worked in the past, but not now.

    Firefox does not open, but is rather the error message "Unable to read the configuration file." He has worked in the past, but not now.

    I REINSTALL 10 TIMES SO DON'T TELL ME THAT!
    I'm piss because I need firefox work again, so I can finish my reseaching in 5 days.


  • Medic Player will not work. C00D1 error message. Cannot read anything.

    Media Player does not work, gives message C00D1199. Cannot read file due to error. Also called whennot lights up but does not play.

    Please help me HP. My media player don't work, gives the C00D1199 error message. Cannot read file, no visual or sound event.

  • is it possible to insert a record in the list of messages inbox BB?

    Hi all

    I heard that RIM has opened a new API to allow the third-party application to insert a record into Message Inbox with an icon to see the difference.

    Is it someone knows this and tips and example would be much appreciated.

    Thanks in advance.

    If you have downloaded the JDE or plug-in in Eclipse, see the MessageListDemo. This gives you all the information you need to get started.

  • Unread message of blackBerry Smartphones when all messages have been read

    My 8830 has an unread message icon, but all messages have been read.  I even searched an unread message.  Any ideas?  It drives me crazy.

    Thank you very much!!  It worked!

  • How to set programmatically the current node in a tree view of the ADF.

    Hello

    I'm trying to understand how to set programmatically the current node in a tree view of the ADF.

    My use case example is quite simple; If we take the sample application ADF Summit where under Management Summit, we have a tree view on the left with a list of high level of the country which in turn contain a subset of customers; then, in the right pane, we the customer detail information.

    What I'm trying to achieve is a solution by which I can add a new customer, commit and then to the tree show the client newly created as the currently selected entry.

    I use a pop-up dialog box to create my new entry of the customer and everything works well in this area, and my newly created folder is saved in the database.

    I know how to force the tree to cool off, but what I can't understand is how to do so, it highlights the newly created folder.

    Any help would be much appreciated.

    Refer

    https://blogs.Oracle.com/jdevotnharvest/entry/how_to_programmatically_disclose_a

    http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/78-man-expanding-trees-treetables-354775.PDF

  • LR has started to refuse to import my photos from sd card. They appear in the display of the grid, all verified and ready to import, but I get the error messages. 'Cannot read file', (it of funny, since LR is SHOWING files full resolution), or "unable to

    Cannot import photos into LR. On my other computer, it works fine. With the help of LRCC 2015. Get the error message can't read files, or can not copy to the location.

    How can I simply wipe the slate clean and reinstall or re-import everything? I'm really happy with this, as I am now prevented from using the program.

    Can I reinstall LR and keep the catalog?

    Hello

    Please check what is the Destination defined in the right panel in the import window

    The error means the destination that you copy the files to is invalid or read-only.

    Change the Destination to another location and see if you can import

    Concerning

    Assani

Maybe you are looking for

  • Page HOME of FOLDER permissions "apply to the included items.

    Hello. It is more a question of information - I was having a weird thing happen on my Mac - and I called Apple. My photo library save size was different from that on my hard drive. After another manual run of TM, it changed. Without hesitation, the f

  • Find the Total number of test time in SequentialModel.seq

    Hi everyone, I'm trying to figure out where in the SequentialModel.seq file I can pull the "main sequence duration Test total" when running in mode 'Test DUT' or 'Single Pass '.  In what subsequence find the "total duration of the Test" for a single

  • How can I get the height of a tab in the Panel?

    Hello I designed a tab page. In the user interface editor I can adjust the height of the Panel including the tab (tabs are on top). How much vertical space is left for the tab of the usable, i.e. excluding the tab panel - worded differently, what is

  • What Adobe to purchase program

    I am interested in buying Adobe CC.  I'm always confused with what to buy - the plan of $9.99 or $19.99 plan.  I already have 6 Lightroom on my desktop Mac.  I want than photoshop.  I want also photoshop and Lightroom on my iPad pro.  Suggestions?  I

  • PF Exception CMTF iSCSI HP Blade BL620 G7

    I have the following configuration:HP c3000 enclosure with 2 PS and 4 FansHP Onboard Administrator ModuleHP KVM module1 GB Ethernet Pass-Thru Module HPHP BL620c G7 with processors Intel Xeon 28xx and 64 GB of RAMHP 320 IO Module "Accelerator"Corsair