GMail POP3 problem: Not getting messages with sender "me"

HI guys,
I have an account called [email protected] , I successfully sent mails to the same using javamail.In this messages,sender is marked as "me".
Now I want to read all the messages in inbox,including the messages sent by same account itself.(messages with "me" sender).
But I notices that javamail doesnt read any messages which the sender is "me".
Is there a solution for this?
thanks in advance,
umanga
Edited by: virtualumanga on Jun 6, 2008 7:09 PM
Edited by: virtualumanga on Jun 6, 2008 7:10 PM

Ok.Heres what happens.
When I send emails to the same account using gmail webbase application , those mails (which the sender is "me") are read from my Java-POP3 code.
But when I send mail using my Java-SMTP code , and try to retrieve them using same Java-POP3 program,those mails are not read.
Here is my temp account that I am using
user : [email protected]
password: umanga123
You can see there are 3 mails (please dont delete them) , which were sent using my Java-SMTP code.And one mail which is,sent from my yahoo account.
Below Is the java-POP3 code that I am reading my messages.You can run them your self and see that the messages with "me" and not reading,only the message from yahoo is reading.
You can test following code without any modifications..
Please help,
thanks in advance.
public class MailGet {
     public static void main(String args[]) throws Exception
          String host="pop.gmail.com";
          String user="fhb.test";
          String pwd="umanga123";
          //String from="[email protected]";
          //String to="umanga@quicksilver";
          Properties props=new Properties();
          props.put("mail.pop3.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
          props.put("mail.pop3.socketFactory.fallback", "false");
          props.put("mail.pop3.port", "995");
          props.put("mail.pop3.socketFactory.port", "995");
          //FileInputStream fis=new FileInputStream("/home/umanga/pop.prop");
          //props.load(fis);
          Session session=Session.getDefaultInstance(props,
                    null);
     try {     
          Store store=session.getStore("pop3s");
          store.connect(host,user,pwd);
          Folder folder=store.getDefaultFolder().getFolder("Inbox");
          folder.open(Folder.READ_WRITE);
         System.out.println("Getting messages");
          Message msg[]=folder.getMessages();
         System.out.println(folder.getMessageCount()+" "+folder.getUnreadMessageCount());
         for(int i=0;i<msg.length;i++)
              System.out.println("Subject: "+msg.getSubject() );          
     folder.close(true);
     } catch (Exception e) {e.printStackTrace(); }     
Edited by: virtualumanga on Jun 7, 2008 4:45 AM
Edited by: virtualumanga on Jun 7, 2008 4:46 AM
Edited by: virtualumanga on Jun 7, 2008 5:21 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • File not getting picked with Sender Adapter

    Hello Experts,
    i have configured file sender adapter which is polling configured directory every 60 sec. But i could see file not getting picked up. when looked into Communication channel monitoring i could see following error:
    Putting message into send queue failed, due to: com.sap.aii.af.ra.ms.api.DuplicateMessageException : Message ID aa2ec9a0-44b3-11dc-9c5b-0003baa19669(OUTBOUND) already exists in database: com.sap.sql.DuplicateKeyException: ORA-00001: unique constraint (SAPDX1DB.SYS_C00120924) violated.
    is this due to adapter cache. we are on SP20.
    has anybody faced this problem earlier?
    Thanks in advance.
    Regards
    Rajeev

    Hello
    actually there was small problem in file generation and hence it was failing in message mapping which is resolved. but still that problem is there when it is attempting to delete the file. hence it is not able to delete that file.
    can we manually clear the send queues or should we refresh CPA cache?
    Thanks
    Rajeev

  • Anyone having problem with iphone getting not delivered message after sending picture and it really is getting delivered to recipient.

    Anyone having problem with iphone getting a not delivered message after sending pic and it really is getting delivered to recipient.

    Same problem here with and I've done everything shy of a total reset which I also find unacceptable. This problem exists on all iMessage platforms (iPhone, iPad, and Mac) so I don't see how restoring my iPhone would help the problem.

  • So with iMessage, i am not getting messages on my 4S, only on my MacBook Pro.  I don't want this.  I only want texts sent to my phone.  HELP!

    so with iMessage, i am not getting messages on my 4S, only on my MacBook Pro.  I don't want this.  I only want texts sent to my phone.  HELP!

    did that.  now getting no messages on anything.  opened up messages on the Mac and saw i had been sent many that never showed up on my phone.
    I tried sending a text with iMessage turned off and while it said delivered, doesn't look like it was ever seen.

  • I know many have this issue but i can't find a solution to the problem. i get message saying insuffisiant disk space in the volume iPhoto library and i have plenty of space available. i have the new macbook pro with retina display.

    I know many have this issue but i can't find a solution to the problem. i get message saying insuffisiant disk space in the volume iPhoto library and i have plenty of space available. i have the new macbook pro with retina display. i have never seen this message before and i have 2 other macbooks and have had many other also. i am assuming this is a problem with the new macbook retina. does anyone know the exact fix to this issue? i have seen many sugestions to try to fix this issue but none have solved the issue for anyone that i can find in the Apple Support Community. thank for looking into this in advance.
    ******A true apple fan********

    Actually your suggestions are the ones that i have tried. i have seen that you have tried to help others with this issue and the only one that i could find that said they found the problem said that it was an ilife update issue and it fixed it and i have no available updates. i know it has to do with something in photo stream because it happens when i create a new library and it is loading the photos but i get the message before i reach the maximum 1000 photos. so i've tried updating, new library(first backing up photos and then deleting them from iPhoto), reinstalling OSX many times, running disc utilities. I called Apple the first day i had this issue and i was the first person to call them for support with the retina display and i actually had it escalated to a senior advisor and we thought we fixed the problem but we did not. i am pretty fluent in dealing with troubleshooting these type of issues and this is the first time i'm reaching out to the community. i figured now that the retina has been out some time now that there would be an obvious answer to this issue. thanks for the quick reply.
    Bebers5

  • IOS diagnostics DOESNT work on my ipad 2. i get message with 99206 and when i enter it says ticket not valid

    iOS diagnostics DOESNT work on my ipad 2. i get message with 99206 and when i enter it says ticket not valid why send to me if it isnt valid ?
    trying to find answer for gamecenter not working.

    APN is a network identifier for mobile device
    http://en.wikipedia.org/wiki/Access_Point_Name

  • Display problems in Mail messages with image attachment

    Issue: Seeing intermittent display problems in Mail messages with image attachments
    Annoyance level: minor, but Apple techs need to pass it along
    Details: Regardless of mail client sending to iPhone (Outlook, OWA, Yahoo, Gmail) there are intermittent and what appear to be random occurrances of the pic being half rendered and/or the pic never loading (followed by message saying it can't be retrieved from server). In some instances the picture then appears fully rendered without a problem. Note: Image sizes varied from 14KB to 450KB

    Hi,
    I'm not familiar with C#, but if possible try the following:
    1. Removing all thead and tbody tags from the body of the message.
    2. Changing all inline CSS to embedded CSS.
    I've seen a user said the message stopped showing up after making the changes.
    If the issue persists, please note, since Outlook 2007, Outlook opens the HTML Email and converts it to Microsoft Word format before displaying it to the user. What happens during this process is that many CSS attributes and HTML support is completely removed.
    Some of the most notable absences are background-image, and padding and margin support. Hardly can we do much about this, so the message "If there are problems with how this email is displayed, click here to view it in a web browser" is actually
    a good workaround when we face this problem.
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • I'm trying to download songs that was transferred via Carbonite, not getting message that states "Unable to check for available downloads, iTunes is temporally unavailable"

    I'm trying to download songs that was transferred via Carbonite, not getting message that states "Unable to check for available downloads, iTunes is temporally unavailable".  What do I do?  Any suggestions??

    Same problem, I have a season pass for Mad Men and suddenly cannot download, says iTunes is temporarily unavailable. Problem occurred before I updated to the new iTunes and afterwards, on two different computers. Here is what Apple had to say:
    "I have verified that the iTunes Store is functioning and accepting connections, which indicates that the issue is related to your internet connection, local network, or your local computer itself. This article outlines some of the likely culprits:
    http://support.apple.com/kb/TS1368
    Apple Discussions are another source of information about iTunes, where everyone from new users to professionals can interact and share their knowledge and experiences. You may find another user with the same operating system or ISP that may be able to help resolve this issue. You can find the iTunes discussions group at:
    http://discussions.apple.com/category.jspa?categoryID=149
    If you are still unable to connect to the iTunes Store or receive this error, you will need to call our AppleCare technical support team. A representative will be able to tell you about Apple's complimentary and fee-based support options and can help you determine which option might be most helpful in this case. To find the appropriate phone number, please visit:
    http://www.apple.com/support/contact/phone_contacts.html"
    so far, no luck.

  • Sales orders from CRM are not getting blocked with credit check

    Hi All
    I have configured ECC in such a way that , if cutomer does not have enough creditlimt, then those sales order will get blocked. Our orders will come from CRM, and some times some orders are not getting blocked with credit check even though the customer does not have credit limit. And at the same time some orders are blocked with credit check...what are all the things that should be checked to diagnose the problem.
    Thanks in advance for looking into this

    Please check if you have any custom code/user exit in ECC which uses transaction code (VA01 , VA02 or VA05 etc) prior to invoking credit checks. 
    Orders created via CRM will not have transaction code set (SY-TCODE).

  • I am using windows 7 and itunes 11.7 my i phone 5s is not getting synced with my laptop it keeps showing backing up  please help i need to put music in my phone?

    i am using windows 7 and itunes 11.7 my i phone 5s is not getting synced with my laptop it keeps showing backing up  please help i need to put music ?

    Hi,
    Have you managed to solve this problem? if yes, please highlight how you solved it...i'm facing same problem with my new Iphone 5S but udner Windows, thanks.

  • Jsf page not getting refreshed with updated values?

    Hi All,
    - managed-bean - session scope.
    - On a request, Even though, I am updating the bean's properties(values), my Jsf page is not getting refreshed with updated values as it is displaying the older values.
    Can anybody throw some light?
    Thanks in advance.
    - Sri

    Please try to give us more information, follow BalusC suggestion.
    For this moment I only can say you that the more common cause to this problem (in my expirence) is that you have problems with your conversion/validate phase.

  • Dispute case does not get updated with subsequent partial payment

    Hi Experts
    I am now still testing the Dispute management .. but it's my first time to see that some times created dispute case does not get updated with the payment posted against the invoice which the dispute case has been raised .. when i trying to add open item to the current dispute case i face this Error..
    Process step 004: Change not possible, process step 003 missing
    Message no. UDM_MSG037
    Diagnosis
    The dispute case is to be changed by process step 004 from accounting. However, there is at least one process (for example, clearing transaction from payment or credit memo) that was performed before the current step and that has not yet updated the dispute case. The changes to the dispute case must be carried out in the correct order.
    System Response
    The dispute case could not be changed.
    Procedure
    In an asynchronous change to dispute cases using IDoc, make sure that all IDocs of the previous process have been posted. Then you can carry out the required action (for example, post the current IDoc from process step 004 or include further items). The immediate previous process step is 003.
    Your kind feed back is highly appreciated..
    Regards
    Mahmoud EL Nady

    Hi
    Thanks for straight forward solutions its now working properly after run the program.. thanks too much..
    also do i need to run this program periodically or once i notice that one dispute case it not getting updated?
    Regards
    Mahmoud El Nady

  • Data not getting bind with cursor

    Hi,
    Database: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit
    OS: Windows Server 2003
    Consider following procedure:
    Proc P1() as
    cursor c(in_par varchar2) is select distinct col1, col2 from Table1 where col3 = in_par;
    begin
    for rec_c in c('X') loop
    end loop;
    exception
    end;
    Problem: In most of the execution, the value 'X' passed in cursor c get bind with col3 in where clause and get the desired result. However, in some cases, the value 'X' does not get bind with col3 in where clause. I don't know the steps to re-produce the issue, but it occurs once in a while.
    On querying v$sql_bind_capture, i get 'NULL' in value_string whenever this problem occurs. Otherwise, I get 'X' in v$sql_bind_capture. No exception is thrown anytime.
    What may cause miss of binding constant literal 'X' to cursor?

    Have not seen this error before - PL/SQL not binding SQL statements containing PL/SQL variables, correctly. What at times happen is no bind at all due to name collision. Using the same name for a PL/SQL variable as a SQL column in the SQL statement and scope being such that with name resolution, the SQL column gets preference. This of course does not seem to be the case here.
    What could be happening is that a null variable is being passed as the bind value.
    You can also have a look at the Metalink/support.oracle.com for any notes or bugs on this behaviour. Knee-jerk reaction from my side that this is too a common issue to be an actual PL/SQL bug... (would have reared its head a long time ago)
    In cases like this I like to make sanity checks - reduce the problem to its bare basics with a test case and see if that works. Then gradually increase its complexity and see when it brakes, if at all.

  • Can not get message to work om iPad, Can not get message to work om iPad

    Can not get message to work on iPad

    Please be much more specific. What exactly happens when you try to send a message?

  • What do I do if I Switched to an android phone but Im not getting messages from apple users because of the I messages. I have already turned off my I messages on my old phone.

    I Switched to an android phone but Im not getting messages from people with I phones because of the I messages. I have already turned off my I messages on my old phone.

    http://support.apple.com/kb/ts5185

Maybe you are looking for

  • Want to lock objects in a particular devlopment class

    Hi Experts, I have a scenario where we are moving certain objects to a new development class - 'NEW_DEVCLS", and we have to make sure that these objects are not allowed to be edited.. That is, it should throw a lock or not authorised message to devel

  • Clips jumbled & not cronological upon import

    Hello all - I am brand new to iMovie, I have iMove '11, v9.0.9.  I just did my first import from my Sony DCR-DVD203, using the USB cable.  When the import window came up, each of the clips appeared in the cronological order in whch they were original

  • Help!  "Alert: No Internet Connection found" after most recent auto update!

    I am on a MacBook Pro running Mac OS X 10.6.8.  I connect over a wireless router and cable modem usually and do the same with a few other devices in the household.  After the most recent update I was met with an airport alert: No Internet Connection

  • Empty cylinders return to the supplier

    Currently I am purchasing NITROGEN GAS for my manufacturing plant. Now I want to return empty cylinders of NITROGEN GAS to the supplier. What is the best possible way in SAP ? Pls. help me out.

  • IPod 4th gen won't update!

    okay so I've read a few discussions from people who have the same problem as me! its so annoying now, I've been trying to update my iPod to the new iOS 5 update but it refuses to update! It finishes downloading the update then says an error has occur