Results 1 to 6 of 6
Like Tree1Likes
  • 1 Post By SurfMan

Thread: How to leave a copy of e-mail on the server by use pop3 in Java Mail

  1. #1
    aby
    aby is offline Member
    Join Date
    Mar 2014
    Posts
    4
    Rep Power
    0

    Default How to leave a copy of e-mail on the server by use pop3 in Java Mail

    Hi,

    I am reading mail by using pop3 in java mail. In outlook I found we can leave the copy of mail in server side after reading. Shall we do that process in java mail ?

    Thanks,
    Aby

  2. #2
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    947
    Rep Power
    2

    Default Re: How to leave a copy of e-mail on the server by use pop3 in Java Mail

    If I remember correctly, pop3 mail is only deleted when the "delete" command is given. Outlook does that for you, but when cooking your own mail-client, you should do that yourselves. Or do not delete, if you want to leave a copy.
    gimbal2 likes this.
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

  3. #3
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,030
    Rep Power
    6

    Default Re: How to leave a copy of e-mail on the server by use pop3 in Java Mail

    Exactly right. It would be quite bad if data would be deleted only by fetching it.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  4. #4
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    947
    Rep Power
    2

    Default Re: How to leave a copy of e-mail on the server by use pop3 in Java Mail

    Quote Originally Posted by gimbal2 View Post
    Exactly right. It would be quite bad if data would be deleted only by fetching it.
    In poster's defense, the POP3 protocol *could* be implemented in a way that once a mail has been successfully retrieved, the server itself issues a delete command. But I don't think any server rolls that way.
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

  5. #5
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,535
    Blog Entries
    7
    Rep Power
    20

    Default Re: How to leave a copy of e-mail on the server by use pop3 in Java Mail

    Quote Originally Posted by SurfMan View Post
    In poster's defense, the POP3 protocol *could* be implemented in a way that once a mail has been successfully retrieved, the server itself issues a delete command. But I don't think any server rolls that way.
    If the server doesn't claim to be pop3 compliant, it could do what it wants; it could even spread your email messages all over the world after painting them pink ...

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  6. #6
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,030
    Rep Power
    6

    Default Re: How to leave a copy of e-mail on the server by use pop3 in Java Mail

    Quote Originally Posted by JosAH View Post
    If the server doesn't claim to be pop3 compliant, it could do what it wants; it could even spread your email messages all over the world after painting them pink ...
    It can do that even when it claims to be pop3 compliant ;) It would just be lying then.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Similar Threads

  1. Mail reading issue using pop3 in java mailing
    By aby in forum Advanced Java
    Replies: 6
    Last Post: 03-18-2014, 09:15 AM
  2. Replies: 1
    Last Post: 05-18-2011, 02:08 AM
  3. Replies: 2
    Last Post: 06-04-2009, 01:42 PM
  4. Replies: 2
    Last Post: 05-05-2008, 06:01 AM
  5. java mail server
    By krismedia in forum New To Java
    Replies: 2
    Last Post: 01-23-2008, 04:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •