Retrieval of e-mail

The Blackberry 7520 I own erases my e-mail. Could you tell me how I can get it to retrieve the e-mail it erased and to stop erasing e-mail?

OK...so here's how we will proceed:
Configuration items:
- You only access this troublesome email from your BB -- you do not access it from Outlook, some WebMail interface, etc.
Issue:
- You see, on your BB, that emails are vanishing from this account without your intervention.
Cause/Resolution Possibilities:
1) Your device may be low on memory...see this article to determine if that is true:
http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=KB15345&sliceId=SAL_Pub...
And, if it is true, see these articles for information to aid the situation:
http://www.blackberryforums.com/general-blackberry-discussion/112029-losing-call-logs-sms-emails-opt...
http://www.blackberryforums.com/general-blackberry-discussion/116396-managing-your-bb-memory-lost-ca...
http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=KB14320&sliceId=SAL_Pub...
http://www.blackberry.com/btsc/dynamickc.do?externalId=KB14213&sliceId=SAL_Public&command=show&forwa...
2) Your device may be configured to delete items automatically. Check this setting...with any message list displayed:
BBKey > Options > General Options
The last entry on the bottom of this screen..."Keep Messages"...set as desired
3) Your email provider may auto-expire and delete old emails. Contact them for assistance.
Hopefully something there will be helpful.
Good luck!
Occam's Razor nearly always applies when troubleshooting technology issues!
If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
Join our BBM Channels
BSCF General Channel
PIN: C0001B7B4   Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA   Display/Scan Bar Code

Similar Messages

  • Mail program is retrieving every e-mail from the server every time I open it.

    Each time I open my mail, it retrieves every e-mail that is on the server.  I know that the problem is not with Comcast, because I downloaded Thunderbird and it works just fine.  Once a message has been retrieved, it does not retrieve it again.
    My iMac is Version 10.6.8.
    Thank you,
    Nancy

    To find out if it's system wide or user specific, try this...
    Open System Preferences>Accounts, unlock the lock, click on the little plus icon, make a new admin account, log out & into the new account.
    Setup one mail account for a test.
    Does Mail work in the new account?

  • Outlook 2011 for Mac stops retrieving new e-mail

    I have both Outlook 2011 for Mac and Apple Mac tied to the same Gmail account via IMAP. After a few hours, Outlook stops retrieving new e-mail while Apple Mail continues retrieving new e-mail with no problem. I've already deleted the Gmail account from Outlook and recreated it. What could be causing this? Should Microsoft Office 2011 for Mac be re-installed? Does Outlook 2011 create a log during the e-mail send/receive process that I can review?

    Hi,
    Any good news from the Mac Forum?
    Thanks,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Simon Wu
    TechNet Community Support

  • Mail 4.5 not retrieving catch-all mail from Pop Server.

    I use email fowarding for a domain (hosted at Godaddy) to forward to my verizon email account. For example: [email protected], [email protected], and [email protected] are forwarded to [email protected]  The Mail 4.5 client on my MacBook Pro (OSX 10.6.8) retrieves all this forwarded email correctly from the Verizon Pop3 server.
    I also have one of the domain email aliases setup as a catch-all account. For example [email protected] is configured as the catch all. Mail addressed to [email protected] is also retrieved from the Pop3 server correctly.
    But any mail directed to the catch-all account because the email address is invalid such as [email protected] is not retrieved by Mail 4.5 client.
    The 'catch-all' email is being forwarded correctly to my Verizon Pop server. If I log in to Verizon Webmail I can see the forwarded 'catch-all' emails in the Webmail Inbox. Also if I use Outlook 2010 on my PC to retrieve my Pop mail, it correctly brings down the 'catch-all' email.
    It certainly appears like something internal to Apple Mail is filtering the 'catch-all' email and not retrieving it from the Pop3 Server.
    If you can understand what I'm trying to report - can you help me figure out what is wrong?

    I now do want to catch all email as it has become my lives work to report spam.
    So I figured out an easier way to catch all email using simply the serveradmin command-line tool (this only takes email that would otherwise bounce):
    sudo serveradmin settings mail:imap:lmtp_luser_relay_enabled = yes
    sudo serveradmin settings mail:imap:lmtp_luser_relay = catchallusername
    sudo postfix reload

  • TS1702 I am unable to retrieve my Daily Mail Newspaper (iPad edition) in the Newsstand. I have already deleted and attempted to reinstate it but am now told this is no longer available, however I know this is not the case!

    I am unable to retrieve my Daily Mail Newspaper (iPad edition) after deleting the icon as the daily edition was not appearing. I finally found it only to be told this is no longer available however I have a subscription vaild till 2013 which I am currently unable to use ! Ay ideas as to how to download , retrieve this successfully. I have rebooted etc made all the usual attempts..please help ASAP

    I am unable to retrieve my Daily Mail Newspaper (iPad edition) after deleting the icon as the daily edition was not appearing. I finally found it only to be told this is no longer available however I have a subscription vaild till 2013 which I am currently unable to use ! Ay ideas as to how to download , retrieve this successfully. I have rebooted etc made all the usual attempts..please help ASAP

  • Retrieve 7 bit mail

    my code is a very normal retrieve mail from the sample demo from javamail 1.4....
    i have trouble to retrieve 7 bit mail...
    pls provide me a solution.....
    Message from yahoo.com.
    Unable to deliver message to the following address(es).
    <[email protected]>:
    This user doesn't have a yahoo.com account ([email protected]) [0]
    <[email protected]>:
    This user doesn't have a yahoo.com account ([email protected]) [0]
    --- Original message follows.
    X-Originating-IP: [202.190.203.15]
    Return-Path: <[email protected]>
    Authentication-Results: mta307.mail.mud.yahoo.com  from=emi-solutions.biz; domainkeys=neutral (no sig)
    Received: from 202.190.203.15  (EHLO emg-mrk04.localdns.com) (202.190.203.15)
      by mta307.mail.mud.yahoo.com with SMTP; Tue, 10 Apr 2007 18:51:44 -0700
    Received: from emi-sap ([218.208.222.212])
            by emg-mrk04.localdns.com (@Net Mail v3.60a) with ASMTP id QFK76541;
            Wed, 11 Apr 2007 09:51:41 +0800
    Message-ID: <26960868.1176256269906.JavaMail.SAPServiceN01@emi-sap>
    Date: Wed, 11 Apr 2007 09:51:09 +0800 (SGT)
    From: [email protected]
    To: [email protected], [email protected]
    Subject: 2 mail same host yahoo
    Mime-Version: 1.0
    Content-Type: text/plain
    Content-Transfer-Encoding: 7bit
    2 mail same host yahoo
    *** MESSAGE TRUNCATED ***
    public void dumpPart(Part p, PrintWriter out, InMailBean inMailBean, Collection detailCol,InvalidMailAck invalidMailAck) throws Exception {
              Util util = new Util();
              InMailDetailsBean inMailDetailsBean = new InMailDetailsBean();
              System.err.println("In dumpPart");
              if (p instanceof Message)
                   dumpEnvelope((Message)p, out, inMailBean,invalidMailAck);
              /** Dump input stream ..
              InputStream is = p.getInputStream();
              // If "is" is not already buffered, wrap a BufferedInputStream
              // around it.
              if (!(is instanceof BufferedInputStream))
                   is = new BufferedInputStream(is);
              int c;
              while ((c = is.read()) != -1)
                   System.out.write(c);
              String ct = p.getContentType();
              try {
                   //out.println("<P>" + "CONTENT-TYPE: " + (new ContentType(p.getContentType())).toString()+ "</P>");
                   out.println("<P>" + "CONTENT-TYPE: " + (new ContentType(ct)).toString()+ "</P>");
              } catch (ParseException pex) {
                   //System.err.println("BAD CONTENT-TYPE: " + p.getContentType());
                   System.err.println("BAD CONTENT-TYPE: " + ct);
              String filename = p.getFileName();
              if (filename != null){
                   out.println("<P>" + "FILENAME:" + filename + "</P>");
                   System.err.println("FILENAME: " + filename);
                   inMailDetailsBean.setAttachmentId(util.getUniqueId());
                   inMailDetailsBean.setEmailId(inMailBean.getEmailId());
                   inMailDetailsBean.setAttachmentName(getNewFileName(filename));     
               * Using isMimeType to determine the content type avoids
               * fetching the actual content data until we need it.
              if (p.isMimeType("text/plain")) {
                   System.err.println("**** plain text ****");
                   out.println("<P>" + "This is plain text"+ "</P>");
                   out.println("<P>" + "---------------------------"+ "</P>");
                   //if (!showStructure && !saveAttachments)
                   String strContent=(String)p.getContent();
                   System.err.println("strContent :" +strContent);
                   out.println("<P>" + strContent + "</P>");
                   String newContent=replace(strContent);
                   System.err.println("newContent:" +newContent);
                   out.println("<P>" + newContent + "</P>");
                   String[] arrResult=parseMailAddress(strContent);
                   String strInvalidAdd="";
                   for(int i=0;i<arrResult.length;i++){
                        out.println("<p> Invalid Address :<b>" +arrResult.toString() +"</b></p>");
                        System.err.println("InvAdd:" +arrResult[i].toString());
                        strInvalidAdd+=arrResult[i].toString();
                        System.err.println("strInvalidAdd: " +strInvalidAdd);
                   System.err.println("strInvalidAdd 2: " +strInvalidAdd);
                   invalidMailAck.setInvalidAddress(strInvalidAdd);
                   arrInvalidMail.add(invalidMailAck); //after dump envelope that add sender subject , we add invalid address
                   System.err.println("Invalid address:" +strInvalidAdd);
                   //out.println("<P>" + (String)p.getContent() + "</P>"); //added by won to eliminate <> () from invalid address
                   //added by won
                   //start
                   Object o = p.getContent();
                   if (o instanceof String) {
                        String str = (String)o;
                        inMailBean.setMessage(str.getBytes());
                        out.println("<P>" + "This is a string"+ "</P>");
                        out.println("<P>" + "---------------------------"+ "</P>");
                        out.println("<P>" + str + "</P>"); //added by won to eliminate <> () from invalid address
                   }else{
                        String str="";
                        inMailBean.setMessage(str.getBytes());
                   //end
              }else if(p.isMimeType("multipart/report")){   //p.isMimeType("multipart/report") ||p.isMimeType("message/delivery-status");
                   deliveryStatusFailed=true;
              //add by won to handle delivery status
              System.err.println("This is a Multipart Report");
              System.err.println("---------------------------");
              out.println("<p>" +"This is a Multipart Report"+"<p>");
              out.println("<p>" +"---------------------------"+"<p>");
              System.err.println("content type:" +p.getContentType());
              Multipart mp = (Multipart)p.getContent();
              level++;
              System.err.println("before level:" + level);
              int count = mp.getCount();
              System.err.println("count:" + count);
              for (int i = 0; i < count; i++)
                   //*************commented out by won ****************************************************
                   dumpPart(mp.getBodyPart(i), out, inMailBean, detailCol,invalidMailAck);
                   //dumpPart2(mp.getBodyPart(i), out, inMailBean, detailCol);
                   level--;
              System.err.println("after level:" + level);
              Object o=p.getContent();                                   
              if(o instanceof MultipartReport){
                   MultipartReport mr = (MultipartReport)p.getContent();
                   System.err.println("cast multipart/report");
                                       level++;
                                       System.err.println("Report Text");
                                       try {
                                            String t = mr.getText();
                                            if (t == null)
                                                 System.err.println("NULL");
                                            //else if (showStructure)
                                            // System.err.println("Size: " + t.length());
                                            else
                                                 System.err.println(t);
                                       } catch (MessagingException ex) {
                                            System.err.println(ex.toString());
                                       System.err.println("Delivery Status");
                                       DeliveryStatus ds = mr.getDeliveryStatus();
                                       if (ds == null)
                                            System.err.println("NULL");
                                       else
                                            System.err.println(ds.toString());
                                       MimeMessage rm = mr.getReturnedMessage();
                                       if (rm != null) {
                                            if (rm instanceof MessageHeaders) {
                                                 System.err.println("Returned Message Headers");
                                                 System.err.println("---------------------------");
                                                 level++;
                                                 System.err.println("before level:" + level);
                                                 dumpEnvelope(rm,out, inMailBean,invalidMailAck);
                                                 level--;
                                            } else {
                                                 System.err.println("Returned Message");
                                                 System.err.println("---------------------------");
                                                 level++;
                                                 dumpPart(rm,out, inMailBean, detailCol,invalidMailAck);
                                                 //dumpPart(rm);
                                                 level--;
                                       level--;
                        }else{
                             System.err.println("content type:" +p.getContentType());
              } else if (p.isMimeType("multipart/*")) {
                   System.err.println("**** multipart ****");
                   out.println("<P>" + "This is a Multipart"+ "</P>");
                   out.println("<P>" + "---------------------------"+ "</P>");
                   Multipart mp = (Multipart)p.getContent();
                   level++;
                   System.err.println("before level:" + level);
                   int count = mp.getCount();
                   System.err.println("count:" + count);
                   for (int i = 0; i < count; i++)
                        dumpPart(mp.getBodyPart(i), out, inMailBean, detailCol,invalidMailAck);
                   level--;
                   System.err.println("after level:" + level);
              } else if (p.isMimeType("message/rfc822")) {
                   System.err.println("**** Nested Message ****");
                   out.println("<P>" + "This is a Nested Message"+ "</P>");
                   out.println("<P>" + "---------------------------"+ "</P>");
                   level++;
                   System.err.println("before level:" + level);
                   dumpPart((Part)p.getContent(), out, inMailBean, detailCol,invalidMailAck);
                   level--;
                   System.err.println("after level:" + level);
              }else {
                   //if (!showStructure && !saveAttachments) {
                   * If we actually want to see the data, and it's not a
                   * MIME type we know, fetch it and check its Java type.
                   Object o = p.getContent();
                   if (o instanceof String) {
                        String str = (String)o;
                        inMailBean.setMessage(str.getBytes());
                        out.println("<P>" + "This is a string"+ "</P>");
                        out.println("<P>" + "---------------------------"+ "</P>");
                        out.println("<P>" + str + "</P>");
                   } else if (o instanceof InputStream) {
                        //remark out by won
                        //inMailBean.setMessage(convertInputStreamToByteArray((InputStream)o));
                        out.println("<P>" + "This is just an input stream"+ "</P>");
                        out.println("<P>" + "---------------------------"+ "</P>");
                   //     InputStream is = (InputStream)o;
                   //     int c;
                   //     while ((c = is.read()) != -1)
                   //          out.write(c);
                   } else {
                        //remark out by won
                        //inMailBean.setMessage(o.toString().getBytes());
                        out.println("<P>" + "This is an unknown type"+ "</P>");
                        out.println("<P>" + "---------------------------"+ "</P>");
                        //out.println("<P>" + o.toString()+ "</P>");
              * If we're saving attachments, write out anything that
              * looks like an attachment into an appropriately named
              * file. Don't overwrite existing files to prevent
              * mistakes.
              InputStream is = null;
              if (saveAttachments && level != 0 && !p.isMimeType("multipart/*")) {
                   String disp = p.getDisposition();
                   // many mailers don't include a Content-Disposition
                   if (disp == null || disp.equalsIgnoreCase(Part.ATTACHMENT)) {
                        if (filename == null){
                             filename = "Attachment" + attnum++;
                             System.err.println("Saving attachment to file " + filename);
                        }else{
                             try {
                                  File f = new File(filename);
                                  //if (f.exists()){
                                       //     XXX - could try a series of names
                                  //     throw new IOException("file exists");     
                                  is = ((MimeBodyPart)p).getInputStream();
                                  //TODO save f to the blob
                                  //byte[] fileBytes = new byte[is.available()];
    //                              Read in the bytes
                                  //int offset = 0;
                                  //int numRead = 0;
                                  //while ( (offset < fileBytes.length)&&((numRead=is.read(fileBytes, offset, fileBytes.length-offset)) >= 0) ) {
                             //          offset += numRead;
                                  // if(f.length()>0){
                                  //     fileBytes = new byte[(int)f.length()];     
                                  // }else{
                                  //     fileBytes = new byte[]{1};      
                                  inMailDetailsBean.setAttachment(convertInputStreamToByteArray(is));
                                  detailCol.add(inMailDetailsBean);
                             } catch (IOException ex) {
                                  System.err.println("Failed to save attachment: " + ex);
                             System.err.println("------------------------------------------");
    public void dumpEnvelope(Message m, PrintWriter out, InMailBean inMailBean,InvalidMailAck invalidMailAck) throws Exception {
              Util util = new Util();
              System.err.println("In dumpEnvelope");
              out.println("<P>" + "This is the message envelope"+ "</P>");
              out.println("<P>" + "---------------------------"+ "</P>");
              Address[] a;
              // FROM
              if ((a = m.getFrom()) != null) {
                   for (int j = 0; j < a.length; j++){
                        out.println("<P>" + "FROM:<b> " + a[j].toString()+ "</b></P>");
                        inMailBean.setSender(a[j].toString().trim());
                        invalidMailAck.setSender(a[j].toString().trim());
              // TO
              if ((a = m.getRecipients(Message.RecipientType.TO)) != null) {
                   for (int j = 0; j < a.length; j++) {
                        out.println("<P>" + "TO:<b> " + a[j].toString()+ "</b></P>");
                        //inMailBean.setReceipient(a[j].toString()); //TODO getting fr configuration
                   /*     InternetAddress ia = (InternetAddress)a[j];
                        if (ia.isGroup()) {
                             InternetAddress[] aa = ia.getGroup(false);
                             for (int k = 0; k < aa.length; k++)
                             System.err.println(" GROUP: " + aa[k].toString());
              // SUBJECT
              out.println("<P>" + "SUBJECT:<b> " + m.getSubject()+ "</b></P>");
              inMailBean.setSubject(m.getSubject().trim());
              invalidMailAck.setSubject(m.getSubject().trim());
              out.println("<P>" + "Desc: " + m.getDescription()+ "</P>");
              //out.println("<P>" + "Header: " + m.getHeader("Disposition-Notification-To").toString()+ "</P>");
              // DATE
              Date d = m.getSentDate();
              inMailBean.setDateReceive(util.convertDateToStringFormat(d));
              inMailBean.setDateIn(util.convertDateToStringFormat(new Date()));
              inMailBean.setDateAck(inMailBean.getDateIn());
              //if(deliveryStatusFailed==true){
              //     inMailBean.setAckDelivery(util.getNotAckDelivery());
              //}else{
              //     inMailBean.setAckDelivery(util.getAckDelivery());
              inMailBean.setAckDelivery(util.getAckDelivery());
              inMailBean.setTimeReceive(util.convertStringToLongDateFormat(inMailBean.getDateReceive()));
              inMailBean.setTimeIn(util.convertStringToLongDateFormat(inMailBean.getDateIn()));
              inMailBean.setTimeAck(inMailBean.getTimeIn());
              //out.println("<P>" + "SendDate: " +(d != null ? util.convertDateToStringFormat(d) : "UNKNOWN")+ "</P>");
              out.println("<P>" + "SendDate: " +(d != null ? d.toString() : "UNKNOWN")+ "</P>");
              // FLAGS
              Flags flags = m.getFlags();
              StringBuffer sb = new StringBuffer();
              Flags.Flag[] sf = flags.getSystemFlags(); // get the system flags
              boolean first = true;
              for (int i = 0; i < sf.length; i++) {  //check the message flag
                   String s;
                   Flags.Flag f = sf[i];
                   if (f == Flags.Flag.ANSWERED)
                   s = "\\Answered";
                   else if (f == Flags.Flag.DELETED)
                   s = "\\Deleted";
                   else if (f == Flags.Flag.DRAFT)
                   s = "\\Draft";
                   else if (f == Flags.Flag.FLAGGED)
                   s = "\\Flagged";
                   else if (f == Flags.Flag.RECENT)
                   s = "\\Recent";
                   else if (f == Flags.Flag.SEEN)
                   s = "\\Seen";
                   else
                        continue;     // skip it
                   if (first)
                        first = false;
                   else
                        sb.append(' ');
                   sb.append(s);
              String[] uf = flags.getUserFlags(); // get the user flag strings
              for (int i = 0; i < uf.length; i++) {
                   if (first)
                        first = false;
                   else
                        sb.append(' ');
                   sb.append(uf[i]);
              out.println("<P>" + "FLAGS: " + sb.toString()+ "</P>");
              // X-MAILER
              String[] hdrs = m.getHeader("X-Mailer");
              if (hdrs != null)
                   out.println("<P>" +"X-Mailer: " + hdrs[0]+ "</P>");
              else
                   out.println("<P>" +"X-Mailer NOT available"+ "</P>");
    Message was edited by:
    yzmewon

    You have an awfully large amount of code there. Often it is a good idea to write a small program to test out some feature you are having a problem with. Then when you have it working, incorporate the correct code into your large program.
    Besides, people will not read large badly-formatted programs here anyway.

  • I forgot Asked Questions safety and I want to be retrieved via e-mail

    I forgot Asked Questions safety and I want to be retrieved via e-mail account

    Hello there, resoooon.
    The following Knowledge Base article goes over what to do if you don't remember your security questions:
    Apple ID: All about Apple ID security questions
    http://support.apple.com/kb/HT5665
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • How do i retrieve my icloud mail ID password. It is not matching my current Apple ID password

    How do i retrieve my icloud mail ID password. It is not matching my current Apple ID password

    See the quote below from http://www.apple.com/support/appleid/
    An Apple ID is the login you use for just about everything you do with Apple, including using iCloud to store your content, downloading apps from the App Store, and buying songs, movies, and TV shows from the iTunes Store.
    If you are using a second Apple ID for iCloud you would recover the password in the same way: If you forgot your Apple ID password - Apple Support

  • I set up an apple ID with an invalid e-mail address, how can I change it because I can't retrieve the e-mail to complete the account process

    I set up an Apple ID with an invalid e-mail address, how can I change the e-mail address without completing the process of creating the ID cause I can't retrieve the e-mail to complete the process.

    Try changing the email address using https://appleid.apple.com/
    If you can't change it with that site, you'll have to create a new account.

  • HT201365 Since updating my iphone and adding icloud, I can no longer retrieve my yahoo mail.  I've already exhausted all options in the settings menu on my iphone.  What next?  Thanks!

    Since updating my iphone and adding icloud, I can no longer retrieve my yahoo mail.  I've already exhausted all options in the settings menu on my iphone.  What next?  Thanks!

    I just want to be able to USE iCloud on my phone
    To do that, you don't go to iCloud.com on your iPhone. You use the apps that all your iCloud data is synced into, such as Mail, Contacts, Calendars, Notes, Reminders, Safari (for bookmarks), Photos (for Photostream) etc.

  • HT4759 How to retrieve my e mails on I cloud?

    How do I retrieve my e mails from my me acct in I cloud?

    Delete the existing iCloud account on your phone, then setup a new iCloud account with your new Apple ID. Also, Settings>Store...tap the ID shown...sign out...now sign back in with your new ID.  You will see Delete Account on you phone under iCloud Account. 

  • I deleted an e-mail from my iCloud account from my iPhone and cleared the trash. I accidentally deleted an e-mail from my college containing a string of 3 e-mails which are very important. Is there anyway to retrieve the e-mail from the Apple server?

    I deleted an e-mail from my iCloud account from my iPhone and cleared the trash. I accidentally deleted an e-mail from my college containing a string of 3 e-mails which are very important. Is there anyway to retrieve the e-mail from the Apple server?

    My question is similar:  I deleted email folders in my mail app on iPhone 4 and it deleted the folders on all my other devices--literally THOUSANDS of emails!  I went to iCloud to recover them and can't find them.  HELP PLEASE!

  • How we retrieve the sent mails , drafts from mail

    I have a problem with retrieving sent mails, drafts and all other from mail.
    I am succeded in retrieving mails from inbox. please give me code for that
    this my code for retrieving inbox from mail.
    <%@page import="java.util.*,java.io.*,javax.mail.*,javax.mail.internet.*,javax.mail.search.*,javax.activation.*"%>
         <TABLE align="center">
         <tr>
         <td>
    <%
    String host = "pop.gmail.com";
              HttpSession hs=request.getSession(true);
    final String user=(String)hs.getValue("usid");
    final String password=(String)hs.getValue("pwd");
         String subjectSubstringToSearch = "";     
    try {
                        Properties props=new Properties();
                   props.setProperty("mail.pop3.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
    props.setProperty("mail.pop3.socketFactory.fallback", "false");
    props.setProperty("mail.pop3.port", "995");
    props.setProperty("mail.pop3.socketFactory.port", "995");
    Session session1 = Session.getInstance(props,new javax.mail.Authenticator() {
    protected PasswordAuthentication getPasswordAuthentication() {
    return new PasswordAuthentication(user,password);
    Store store = session1.getStore("pop3");
    store.connect(host, user, password);
    Folder fldr = store.getFolder("INBOX");
    fldr.open(Folder.READ_WRITE);
    int count = fldr.getMessageCount();
    out.println(count + " total messages");
                        %>
                        </td>
                        </tr>
                        </table>
                        <br>
                        <table border="1">
                        <%
    for(int i = 1; i <= count; i++) {
    Message m = fldr.getMessage(i);
                             %>
                        <tr>
                             <%
    Date date = m.getSentDate();
    Address [] from = m.getFrom();
    String subj = m.getSubject();
    String mimeType = m.getContentType();
                             %>
    <td size="35"><%out.print(date);%></td>
    <td size="35">     <%out.print(from[0]);%></td>
    <td size="35"><%out.print(subj);%></td>
    <%}%>
                        </tr>
                        <tr>
                        <td>
                        <%
    String pattern = subjectSubstringToSearch;
    SubjectTerm st = new SubjectTerm(pattern);
    Message [] found = fldr.search(st);
    out.println(found.length +
    " messages matched Subject pattern \"" +
    pattern + "\"");
    for (int i = 0; i < found.length; i++) {
    Message m = found;
    Date date = m.getSentDate();
    Address [] from = m.getFrom();
    String subj = m.getSubject();
    String mimeType = m.getContentType();
    out.println(date + "\t" + from[0] + "\t" +
    subj + "\t");
                             %>
                             </td>
                             <tr>
                             <td>
                             <%
                             out.println(mimeType);
    %>
                             </td>
                        <td>
                             <%
    Object o = m.getContent();
    if (o instanceof String) {
    out.println("**This is a String Message**");
    out.println((String)o);
    else if (o instanceof Multipart) {
    out.print("**This is a Multipart Message. ");
    Multipart mp = (Multipart)o;
    int count3 = mp.getCount();
                                  %>
                             </td>
                        <td>
                             <%
    out.println("It has " + count3 +" BodyParts in it**");
    for (int j = 0; j < count3; j++) {
    BodyPart b = mp.getBodyPart(j);
    String mimeType2 = b.getContentType();
                                       %>
                             </td>
                        <td>
                             <%
    out.println( "BodyPart " + (j + 1) +" is of MimeType " + mimeType);
    %>
                             </td>
                        <td>
                             <%
    Object o2 = b.getContent();
    if (o2 instanceof String) {
    out.println("**This is a String BodyPart**");
    out.println((String)o2);
    else if (o2 instanceof Multipart) {
                                            %>
                             </td>
                        <td>
                             <%
    out.print(
    "**This BodyPart is a nested Multipart. ");
    Multipart mp2 = (Multipart)o2;
    int count2 = mp2.getCount();
                                            %>
                             </td>
                        <td>
                             <%
    out.println("It has " + count2 +"further BodyParts in it**");
    else if (o2 instanceof InputStream) {
                                            %>
                             </td>
                        <td>
                             <%
    out.println("**This is an InputStream BodyPart**");
    else if (o instanceof InputStream) {
                                  %>
                             </td>
                        <td>
                             <%
    out.println("**This is an InputStream message**");
    InputStream is = (InputStream)o;
    int c;
    while ((c = is.read()) != -1) {
                                       %>
                             </td>
                        <td>
                             <%
    out.write(c);
    fldr.close(true);
    store.close();
    catch (MessagingException mex) {
    mex.printStackTrace();
    catch (IOException ioex) {
    ioex.printStackTrace();
    %>
    </td>
    </tr>
    </table>

    Ramesh,
    To paraphrase [url http://asktom.oracle.com]Tom Kyte, "holy unreadable code, Batman!"
    Code is much more readable if you put "[ code ]" and "[ /code ]" (without the spaces and quotes) around your code samples.
    Seems to me this would be a function of how the email server you are connecting to works - perhaps there is a folder called "Sent Items" or "Drafts" that you can use in this line (note the code tags ;) :
    Folder fldr = store.getFolder("INBOX");Not sure if this is possible via POP, but it is in IMAP. Hint: use google and search for:
    javax.mail "sent items"
    you'll get some helpful information. Nothing to do with JDeveloper here.
    John

  • How do I retrieve answers  E-mail, which now sends him not me

    How do I retrieve answers
    E-mail, which now sends him not me

    Apple ID security issues -
    Call Apple Care for your country and ask for the Account Security Team. They can assist you with your issue.
    http://support.apple.com/kb/HT5699

  • Cannot retrieve email from Mail account on iCloud

    SInce Tuesday, Sept 11th I have been unable to retrieve my messages on my iCloud mail account.  Mail doesn't work on my MacBook Pro or any of my devices (iphone or ipad).  When I try to log on to iCloud I can see my calendar and contacts, however I cannot access my mail.  When I ran Connection Doctor I get the following message:
    "Trying to log in to this iCloud IMAP account failed.  Verify that the username and password are correct.  Also verify that the server supports Apple Token authentication.  If it does not, choose an appropriate authentication setting in the Advanced tab of the Account preferences."
    Mail continues to place this email account in an offline position moments after I click to take it online.
    I've read some reports of others having this problem occur on Tuesday as well.  Is this an iCloud issue?  Please advise.

    You can try deleting the account on your iphone and setting it up again.

Maybe you are looking for