Problem in mail api to print the received date of an email

Do anyone know how to get received date of an email?I am using POP3 server.So while printing the date using getReceivedDate(), getting null pointer exception....So how to get the date?...Anyone know this using headers or something?I want a sample program in mail api of java....
Thanks in advance...

There is no logic inside the getReceivedDate() method.It's a pre-defined method i have used.I read somewhere that POP3 server won't give information about date.So it is returning NPE.And there it was suggested to use Received headers or something to get the date of a particular email.I am new to the mail api.So anyone know how to use those Received Headers to read the date of an email?

Similar Messages

  • Problem with Printing the Billing date...

    Hi Experts...
    Here im facing the problem in printing the billing date.
    The scenario is as follows.
    The posting date of Billing is 10.10.2008
      The document date of Billing is also 10.10.2008.
    At the time of printing the Billing document it is taking another date otherthan 10.10.2008,where it should be 10.10.2008.
    What modifications should i do to rectify the problem.
    Please advice.
    Regards,
    Y P.

    Prasad,
    Ask your ABAPer do debug and find out what date (Table-Field) is used in the Invoice Output program. You will know the reason and if you think that the date being used is incorrect, you can ask your ABAPer to change it to VBRK-FKDAT which is the billing date.
    Chandan

  • When I send a mail from my iPhone, it displays the mail server name to the receiver if the mail and does nog display my name or e mail address. This only since upgrading my iPhone5 to iOS7

    When I send a mail from my iPhone, it displays the mail server name to the receiver if the mail and does not display my name or e mail address. This only since upgrading my iPhone5 to iOS7. I've checked all settings etc. anyone have a solution please?

    Rectory wrote:
    Please can someone tell me how  I can change this so when I send a mail from my phone and from the IPad that it reads from me.
    You need a separate email address but you've already ruled out that solution.

  • TS3276 Unable to print e-mail messages from Mac book pro directly to my HP ink jet printer.  Can print from Word, Excel, Safari.  E-mail messages only print the date and "sent to" name.

    Unable to print e-mail messages from my Mac book pro directly to my HP ink jet printer.  Can print from Word, Excel, Safari.  E-mail messages only print the date And "sent to" name, the remainder is blank.

    If you haven't done so already, try resetting the printing system.
    Reset Printing System

  • When i send a text in iMessage the person receiving it gets it from my email address... how do i change that. and in message settings the receiving thing has my email and phone number but my phone number is gray and i can't click on it

    when i send a text in iMessage the person receiving it gets it from my email address... how do i change that. and in message settings the receiving thing has my email and phone number but my phone number is gray and i can't click on it help

    Hello Todd:
    I had this very same problem when trying to activate iMessage and Facetime on my iPad. When I signed into my account, I actually wasn't even presented with the option of a phone number - notwithstanding the fact that I was contacting others (and being reached by others) by my phone number on my iPhone. Having both the iPad and the iPhone on, I kept trying to turn off and on both iMessage and Facebook in Settings on both my iPad and iPhone, hoping that that they would eventually sync. But this proposed solution by others was unsuccessful for me.
    Then, I found out what the problem was: When my iPhone was activated, it automatically registered my phone number for contact purposes. I was using iMessage on my iPhone for quite some time without actually being signed into my Apple ID account. When another device - such as an iPad or iPod - is being used for iMessage or Facebook, you are prompted to sign into your Apple account, using your username and password. These two devices will not register your phone number as an option for contact unless your iPhone is signed into your Apple account as well. In other words: your phone number will not be synced.
    Go into your "Settings" on your iPhone and click on "Messages". Scroll down and click on "Send & Receive" (which should be followed by your phone number). On the next page, you will be able to determine whether or not your iPhone is using the Apple ID for messaging purposes. (Note: This information applies for Facetime as well.) If it is using your Apple ID for messaging, than at the top, you will see "Apple ID: <your particular e-mail account>" in Blue text. However, if you are not using your Apple ID for messaging, than you will see the words: "Use your Apple ID for message". Even though below this you will see your phone number checked as the contact source, you will want to click the tab that says, "Use your Apple ID for message". Sign into your account (just as you must sign in for iMessage on your other devices), and just choose your phone number as the "Send & Receive" contact. (The option of the e-mail will be there too, but you don't have to check it. And later on, you can delete it as an option.)
    Now that all of your devices are signed in using your Apple ID, the other devices should register your phone number as a choice. It may take a little while, however. What I did was sign out of iMessage on my iPad, and then sign in again. If the option didn't appear, I just went back and signed in again, and kept doing this until the option for the phone number appeared.
    Again, this will work for Facetime as well. The solution is to sync your iPhone account with the other devices by using your Apple ID for messaging (and Facetime) purposes.
    I hope that this works for you, Todd!   ~ Brian

  • Print the form data instead of whole page

    Hello All,
    I am having a problem in my ADF/JSF page. I just want to print the form data of my form instead of the whole page.using javascript:print() method prints the whole page.so can you help me in solving this issue. I have JDev 10.1.3 and do not want to upgrade to JDev 11g!
    Is there some java code to do so?
    Thanks,

    Hi,
    you can apply CSS to the page and use the media selector to deermine which components should appear in the print and which should not.
    Downlad the word document in http://thepeninsulasedge.com/frank_nimphius/wp-content/uploads/2008/05/OldAndLostBlogBusterTips.zip
    and have a look at page 287
    Frank

  • How to get sqlplus to print the current date/time

    From a unix command line I can type:
    prompt> date; <any_Cmd>; date
    This will result in a timestamp being output before and after the command you inserted. Is there a way to make sqlplus print the current date/time after it is done executing an sql statment. This would be useful for me to know how long it took to execute and sql statement without watching it.
    Something like:
    SQL> select * from table; date;

    u cld set the following statements in sql*plus :
    sql>set time on
    sql>set timing on
    hope this solves ur problem.

  • I have a Mac Pro using OSX 10.7.4.  When using apple mail I click on the address icon to obtain email address and nothing happens.  I've restarted both the application and the Mac but still won't open address book.  Any ideas please.

    I have a Mac Pro using OSX 10.7.4.  When using apple mail I click on the address icon to obtain email address and nothing happens.  I've restarted both the application and the Mac but still won't open address book.  Any ideas please.

    Assuming you have these accounts set up in Mail, open preferences and under Accounts tab, edit the SMTP outgoing server list. Do you have a .mac address in the list? If so, delete it.
    Are you using iCloud?
    For the troubled account, select the correct SMTP server for that account in the box and check the box to use only that server with that account.

  • How to print the image data stored in object of 'java.io.File' Class in jsp

    I have created a file object for the image file in the system temporary directory.Now I want to display it in my page. please tell,How to print the image data stored in object(in my program it is imgr) of 'java.io.File' Class in jsp

    Create a servlet which gets an InputStream of the file and writes it to the OutputStream of the response and call this servlet in `src` attribute. That's basically all.
    Here's an example which covers the most of the minimum needs: [http://balusc.blogspot.com/2007/04/imageservlet.html].

  • Printing the invoice date in the outgoing payment.

    Hi Experts,
    Please help me with this scenario.
    I need to print the invoice date and the item description and also the due date of the invoice in an outgoing payment in PLD.
    I think this can be done through wring a query in UDF through the formatted search.
    Could anyone help me with an alternate solution or a step by step procedure for writing the query.
    Your help is highly appreciated.
    Thanks,
    Hari Dharen

    Hi,
    Are you really wanting to have invoice date, item description and invoice due date or it is also including payment date and payment means ?
    Here is the query:
    SELECT distinct T1.[DocDate], T2.[Dscription],
    T1.[DocDueDate] FROM VPM2 T0  INNER
    JOIN OPCH T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN PCH1 T2 ON
    T1.DocEntry = T2.DocEntry
    Let me know if you need to know other field.
    Rgds,

  • Is list of custom headers and footers. I can't find how to change the footer to print the Long Date

    '''There should be a list of custom headers and footers.''' I can't find how to change the footer to print the '''Long Date'''. It took awhile just to find Page &PT. So I would appreciate if someone could post a list. Also if someone can answer how to print the Long Date.
    Thank you

    When you're on a call, use the volume buttons on the left side of the device.  This will then adjust the In-Call Volume.

  • API for getting the build date of development components

    Hello ,
          we are changing the format of the  <about> screen of our application. We show the version of the main development components that are the part of our application.
    For the version date of the development components, we were earlier showing the deployment date. However we now plan to change it to their build date. We need to know if there is any API to find the build date of the development components.
    Thanks alot in advance for helping!

    Hi do you want all the dates from the back date to sysdate or only the particular back date
    SQL> select sysdate from dual;
    SYSDATE
    22-JUN-09
    SQL> select sysdate-10 from dual;
    SYSDATE-1
    12-JUN-09or if you want all the back dates starting from one particular then
    SQL> select sysdate-10+level from dual
      2  connect by level<=10;
    SYSDATE-1
    13-JUN-09
    14-JUN-09
    15-JUN-09
    16-JUN-09
    17-JUN-09
    18-JUN-09
    19-JUN-09
    20-JUN-09
    21-JUN-09
    22-JUN-09
    10 rows selected.Edited by: oracle_for_dude on Jun 22, 2009 12:11 PM

  • Is there any Java Mail API to get the delivery mail status

    My requirement is to capture the delivery mail status that is being sent via my application. Is there any Java Mail API or any other way to do this.Kindly guide

    Yes, you can use the [UTL_HTTP Package|http://www.oracle.com/pls/db102/to_URL?remark=ranked&urlname=http:%2F%2Fdownload.oracle.com%2Fdocs%2Fcd%2FB19306_01%2Fappdev.102%2Fb14261%2Fpackages.htm%23sthref1930]

  • Javacomm: problem with the receive data

    Hello to all,
    I have a problem on receiving data from a serial port.
    As I figured out The port is obtained by the program I post
    here bellow..but I can't receive data.
    Do you have any hints?
    Thanks in advance.
    Mandy
    import javax.comm.*;
    import java.io.*;
    public class SerialRead extends Thread implements SerialPortEventListener
         private InputStream in;
         public SerialRead(String port)
              try
                   CommPortIdentifier id_porta;
                   id_porta = CommPortIdentifier.getPortIdentifier(port);
                   CommPort porta = id_porta.open("Read from serial porta", 200);
                   in = porta.getInputStream();
                   SerialPort porta_seriale = (SerialPort)porta;
                   porta_seriale.setSerialPortParams(9600, SerialPort.DATABITS_8,
                        SerialPort.STOPBITS_1, SerialPort.PARITY_NONE);
                   porta_seriale.addEventListener(this);
                   this.start();
              catch (NoSuchPortException ne)
                   System.out.println("The port " + port + "is not  present");
              catch (PortInUseException pe)
                   System.out.println("The port " + port + "is used by " + pe.
                        currentOwner);
              catch (UnsupportedCommOperationException ue)
                   System.out.println(
                        "The porta does not support the properties defined");
              catch (java.util.TooManyListenersException tme)
                   System.out.println(
                        "Ther can be only one owner of the port");
              catch (IOException ioe)
                   System.out.println("Error ofi IO");
         public void run()
              try
                   Thread.sleep(10000);
              catch (InterruptedException e)
         public void serialEvent(SerialPortEvent event)
              System.out.println("1");
             switch ( event.getEventType() )
                   case SerialPortEvent.BI :
                   case SerialPortEvent.OE :
                   case SerialPortEvent.FE :
                   case SerialPortEvent.PE :
                   case SerialPortEvent.CD :
                   case SerialPortEvent.CTS :
                   case SerialPortEvent.DSR :
                   case SerialPortEvent.RI :
                   case SerialPortEvent.OUTPUT_BUFFER_EMPTY :
                        break;
                   case SerialPortEvent.DATA_AVAILABLE :
                        byte[] readBuffer = new byte[20];
                        try
                             while ( in.available() > 0 )
                                  int numBytes = in.read(readBuffer);
                             System.out.println(new String(readBuffer));
                        catch (IOException e)
                        break;
         public static void main(String[] args)
             System.out.println(args[0]);
             if ( args.length < 1 )
                   System.out.println("Use java SerialRead <port name>");
              else
                   SerialRead reading = new SerialRead(args[0]);
    }

    Hi Abdul,
    Check if the data you are getting for the two fields in your data loading are correct. I think it has some illegal characters(I guess it has a trailing space). If possible try and correct it in the source system itself.
    If you are doing full load for the master data, everytime the system is going to pull these values in and throw error. One other way of avoiding it will be to maintain routines to eliminate these.
    The quickfix will be to correct it at the PSA level and load it again.
    Regards.

  • Im having problem in Mail. Sent is showing incorrect date and also not showing sent emails that have been successfully sent. Is it a virus?

    Having trouble in MAIL. Running MacOSX(10.6.8) and in MAIL the SENT both doesnt show sent messages( successfully received) and doesnt show correct date sent. Any ideas??

    Not sure about the time stamp problem, but the missing "Sent" mails problem is not uncommon. This problem is one that a lot of people have and in my opinion, I think it's a problem with Apple's mail application, nothing at the user's end.
    Does this happen only when you include an attachment or does that matter? Also, does it only happen when your outgoing message is delayed a bit? Check your junk/spam folder to see if your sent messages went in there.
    This doesn't fix anything, but you might change your e-mail settings so that all new mails are automatically sent Bcc to yourself.
    Sometimes the "missing" sent mails are not going in the right folder. I'm sure you probably already know, but in the left-hand column in MAIL, under Mailboxes, there is a second "sent" folder way at the bottom, depending on your other e-mail accounts, such as Yahoo or Gmail). Many people have discovered their missing "sent" e-mails in those.
    It is a big hassle, for sure, and has been officially reported. Users with complaints are being told that Apple's Intrusion Detection and Prevention (IDP) systems block the connection from a user's e-mail client when it attempts to store outgoing e-mails, which contain attachments, to the users'  sent folder.
    This is supposedly due to the Mac OS/Mac Mail sending non-standard or erroneous commands to the server, emulating the activity which would be generated by an attacker attempting to abuse an exploit in the IMAP server. I doubt you are doing anything wrong, so it's just a matter of waiting for them to FIX this annoying issue.

Maybe you are looking for

  • Unable to load media error when trying to play a video in Sharepoint 2013

    My team consistently gets an error when trying to play a video in SharePoint 2013. I can upload it, pick a thumbnail and save it.  When anyone else goes to the intranet site and tries to play the video, they get a media failed to load error. I have t

  • Apps - Download All Free Updates - You have already purchased this item

    I have an iPad and iPhone, and over the past few months I've noticed that iTunes keeps getting confused when trying to download app updates. So right now if I run iTunes, it shows that there are 16 updates in Apps.  I click on Apps and then click the

  • No longer able to access shared files on my pc over my network from my mac

    For months I have been able to access my shared files folder located on my pc, sharing a network with my PowerBook G4 (OS X 10.3 +). Suddenly, when I try to access the pc now, I get the spinning beachball and nothing. I can see my pc in the network,

  • For each(var mc:MovieClip ..

    I have a "for each" loop in my framescript but it seems find nothing because the code inside it isn't executed. I can see the movieclips in the debugger. for each(var mc:MovieClip in MovieClip (this)){     trace(mc.name) Any ideas what is wrong here?

  • Function module In Update Task is called more than once

    Hi experts!! I had a requirement to Create a Customer ( i will call it B) when another Customer (A)  is created (ON SAVE). I used a Badi to implement the requirement, and inside my Badi i have 2 Function Calls in Update Task. The first one to create