How to detect if the message sent or received

Hello

I need to detect if an e-mail message is sent. I tried folder listener do and tried messagefolder.getFolderType () is Folder.SENT, but it does not work as I am unable to find.

How to get it?

Concerning

Good point.  I should have told check the status.  Just to explain, here is an example of method that should delete when the message is transmitted.

public void changed (MessageEvent e) {}

try {}
Message m = e.getMessage ();
If (m.getStatus () == Message.Status.TX_SENT) {}
Delete this...
File f = m.getFolder ();
f.deleteMessage (m);
MessageToDelete.deleteMessageToDeleteForMessage (m);
}
} catch (Exception ex) {}
Depending on your application

}
}

Tags: BlackBerry Developers

Similar Questions

  • How can I get the messages appear when sent even if my phone is locked. I only get messages across when I activate the phone

    How can I get the messages appear when sent even if my phone is locked. I only get messages across when I activate the phone

    Settings > Notifications > Messages > display on the lock screen

  • How to detect if the page is a reload or not?

    I have a form in the cfm page if the user submits the form, I don't want to go to another page. I want to reload the page and I'll capture all values and send the data in this way. However, I need to hide the form once the user submits the form. So, how I detect if the page is a reload (after is submitted) or it's the first time it is been charged?

    You can manage only two ways.  One, add a hidden field to the form that passes a value, then check if the value exists in the URL/FORM variables (if it exists, the page is reloaded by sending the form - if it does exist, it's the first load of the page).

    Perhaps a better approach would be to manage the form via an AJAX request is sent, and then hide the form if the AJAX request is successful.  This all is possible using JavaScript.  The advantage is that the user leaves the page never actually or it recharges.

  • How can I get the message from thunderbird to stop coming when I opened my email?

    How can I get the message from thunderbird to stop coming when I opened my email?

    Press the alt key to make the call of menu bar
    Select Tools-Options-general
    Disabled the Start Page

  • How can I disable the message ' exit page / stay on the page.

    How can I disable the message ' exit page / stay on the page "Please explain step by step so if he is inserting java script.

    Thank you

    Install this Greasemonkey script should help: https://userscripts.org/scripts/show/23865

    (Note that this might break some sites, and is not approved/controlled by Mozilla in any way shape.)

  • How can I clear the message thatI is not the latest version?

    Upgrade to v.6.0.1 but always opens in http://www.mozilla.org/en-US/firefox/4.0.1/firstrun/.

    How can I clear the message that this is not the latest version?

    I uninstalled and reinstalled from new download but the message remains displayed. Problem is that on a user account on my laptop - the other is up-to-date with no error message.

    See the following for a few suggestions:

  • How do I close the message of faces by programming

    Hi all
    I'm working on Jdeveloper 11.1.1.5 and I show faces messages conditionally in my form on key press F4. :-
    The idcomp is the component of Id that I'm passing javascript on key press F4.

    {} public void displayMessage (entry from list < ErrorDetail >)
    bussLogic (input);
    List < ClassB > classBList = getDescBasedOnId (idcomp);
    for (ClassB classB: classBList) {}

    FacesMessage fm = new FacesMessage (classB.getErrorDescription ());
    fm.setSeverity (FacesMessage.SEVERITY_ERROR);

    FacesContext context = FacesContext.getCurrentInstance ();
    context.addMessage (null, fm);

    }
    Now, I have to close the message press F8 key. I am able to show the error on the F4, but how do I close the message of faces? Is there a method to achieve this?
    Please suggest!
    Thank you.

    "The use of JavaScript to clear validation error messages" on page 14 of http://www.oracle.com/technetwork/developer-tools/adf/learnmore/nov2010-otn-harvest-190744.pdf

    Timo

  • Outlook express 6 sends multiple copies of the message to each receiver

    When I send e mali, recipients get multiple copies of the mail, may seem that if mail is sent to two people, they receive 2 copies, 3 people 3 copies and so on

    I suggest you post a much more complete description of your problem (including the types of e-mail accounts, how you select the recipient, how do you send the message) to the correct group. This is not a group OE. It is:http://social.answers.microsoft.com/Forums/en-US/xpnetwork/threads Russ Valentine

  • I have 2 phones on my ID Apple how can I keep the two devices to receive the same iMessages?

    I have 2 phones on my ID Apple how can I keep the two devices to receive the same iMessages?

    How to use several devices iPhone, iPad or iPod with a computer

    Using more an iDevice on the same computer

    This mainly applies to couples who add another device and don't want their electronic mail, messages, etc. being duplicated on both devices. To start reading: How to use several iPhone, iPad or iPod devices with one computer. You must create a login separate Apple and password for anyone who will use the new iDevice. See Apple - my Apple ID and frequently asked questions about the Apple ID. The easiest way is to do it on the computer using iTunes: iTunes - how to set up an Apple ID iTunes.

    On the computer, create a new user account for the person with the new iDevice. This is the user account always uses this person. He or she will no longer use the other user account. This way the person will have a separate iTunes library. Note When finished, do not 'share' apps under a single Apple ID. Each of you must buy your own applications under your own Apple ID. When you decide to divide like this you will have to buy new applications they want to use.

    First, transfer the new devices to a new account as well as all your data.  Save pictures of flow picture you want to keep for your camera (unless they are already in the camera roll) by opening your Photos app, tap Albums icon at the bottom. Now press the album My Photo Stream; Press Select; tap the photo you want to select. tap the share (box with the face up arrow) in the lower left corner icon; in the film, and then click Save.

    If you synchronize notes with iCloud, you want to keep, you must open each of your notes and email it to yourself. Later, you can copy and paste the text into the new notes created in your new account.

    Tap Settings > iCloud > remove account (removes it only from this device, not iCloud; the person who maintains the current account is not affected) provide the password to disable find my phone and choose to keep on my iDevice when prompted.  Sign in with another Apple ID to create your new account. Choose merge to download your data.

    Once you are on separate accounts, you can each go to icloud.com and remove data from the other person to your account.

    The above was created by the user randers4. Changes were made to improve the readability and the syntax.

  • I have 5 "MY BACKUP" folder on my drive C in 2008. How can I remove the old ones. Receiver error MSG "Access denied" when you try.

    I have 5 "MY BACKUP" folder on my drive C in 2008. How can I remove the old ones. Receiver error MSG "Access denied" when you try.

    Hi PJG_918,
     
    To resolve this problem, you must turn off Simple file sharing and then take over the folder.
     
    Here is an article that will explain the procedure to the same thing:
     
  • How do to retrieve the message not sent wrong email address

    I need to change the address of electronic mail for a message not sent - how can I retrieve the original e-mail so I can change the bad e e-mail address and or copy the letter sent

    It is impossible not to have an Outbox.

  • BlackBerry smartphone how to stop SMS Text Messages sent to appear in the Inbox?

    I got this setting before, but now I don't remember how I did it.

    How can I stop a message for each message sent, I send?

    Hello!

    Seprate on the TEXT of Messages with the messages app open (the list of messages displayed), press the BB button and select Options. Then select General Options. It is near the bottom of the first section-'SMS and email Inboxes' change to 'separate '.

    To hide sent Messages... same screen... just above the separation of the boxes.

  • How do I see the message I sent a file?

    When I send files, the screen comes up with regard to whom you send the file to and has a box to send a message... after it was sent, you can view this message?

    Hi rscac,

    If you click on the "eye" on the far right of the file tab files sent to https://cloud.acrobat.com/and click on transfer, you can see the message that you entered.

    Best,

    Sara

  • How can I view my messages sent unified

    How can I show all my sent messages that appear in folders separated as a unified under SENT list?

    IIRC, you must first select an appropriate folder to hold a saved search. Mine are all in local folders.

    I rarely use unified myself and I didn't notice any problems with the envoys. I will check later when I have Thunderbird in front of me. I don't see why it shouldn't be offered under unified view. One of your sent records have custom names, such as "sent items"?

  • USB-6525 NiDaqmx how to detect where the device interrupts the communication

    This could be considered a more generic question for NiDaqmx, but I write a custom control for internal use with the USB-6525 and possibly other devices of i/o using c#.  I use DigitalChangeDetectionEvent to warn me when an entry has changed and everything seems to work very well.  In an effort to be complete, I decided to unplug the USB cable and see the result and found that no error has been detected until I tried a writing output.  This is not acceptable because under normal conditions abstraction entry begins a process that will change output - given that admission never happens, the system is basically hung.

    I tried many things and have spent more time on what I want to admit so I would like to hear suggestions on how to address this problem.  Here are my attempts that I am not satisfied:

    (1) periodically switch (pulse) output that allows to detect the problem, but I may not be an available exit, so this isn't a good situation.

    (2) periodically trying to read the input byte with the same entry workflow, this does not work because I believe that the other player is still active with the DigitalChangeDetectionEvent.

    (3) attempted to take the message of Windows to change hardware, but seems too complex.

    (4) I read on the guard dog, but not sure that it is available on the box USB-6525.  So before I start with this I'd hear rather suggestions of others with more experience.

    Any suggestions please?

    THX, Ed

    Hi IntegroEd,

    Those are all very innovative way to potentially address the problem, and I'm sorry you haven't seen success with them.  Fortunately, the typical way to capture a break between a device of data acquisition and monitoring system is indeed a timer, and the 6525 has the innate ability to use the feature, as seen on page 5 of the user manual.  I suggest you go that route, if another user does not post a peripheral solution specific to your case.  This is a documentation on the implementation of the monitoring-

    http://www.NI.com/product-documentation/14616/en/

Maybe you are looking for

  • Reset security to iCloud

    Hi, I live in Tashkent and I have an iCloud account that has no emergency @mail but I need to reset my forgotten questions. Some of you reset them or add my @mail help @mail? I can't call you, but if you can do somethig that'd be great :) Thank you.

  • I need to reconfigure the network wireless repeated now

    I need to reconfigure the network wireless repeated now.  Internet connection drops and I re - check the box 'use windows to configure wireless network. "  Why this keep happening?

  • Creating and previewing mode do not match.

    Hello, I am very new to Muse (Googling always do that some tools) and I'm running into a couple of questions.That's what I see in Design view, I saw the site on my tablet, but it looks like this...Any ideas?Thank you, dear.

  • Quitting suddenly frequent Lightroom?

    Why my lightroom suddenly ends unexpectedly. Very annoying

  • SQL script to query the entire database?

    HelloI have column names, I need to figure out what array these column names in the database.In dev and prod table names are different. I need to understand what is the name of the table with some columns in prod that exsits in dev. Any help is appre