Thread: Should I retry some commands during a POP3 session? Read more: Should I retry some c

  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    3

    Should I retry some commands during a POP3 session? Read more: Should I retry some c

    Hello,

    I'm writing a peer2mail client. To connect to the mailboxes I use pop3 protocol. I'm connecting to a pop3 server and downloading some mails using commands like:
    - USER
    - PASS
    - STAT
    - TOP
    - RETR

    I want the program to be as reliable as possible. I'd like to ask you then, if I should retry sending some commands in case of their failure. If so, which of them and how many times? Should I retry the connection to pop3server itself?

    Thank you in advance for your effort,
    Michael.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Start by looking at the error response that comes back.

    Password incorrect should not be retried at all, unless you want an automated way of locking yourself out with too many attempts.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. bytes lost with partial read in UDP
    By mynickmynick in forum Networking/Device Communication
    Replies: 3
    Last Post: 03-31-2009, 02:06 AM
  2. "sorting news" assignment
    By prljavibluzer in forum C Programming
    Replies: 7
    Last Post: 02-06-2008, 06:45 AM
  3. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  4. read from file commands???
    By jeeva in forum Linux Programming
    Replies: 2
    Last Post: 01-19-2002, 01:45 AM
  5. Serial Communications in C
    By ExDigit in forum Windows Programming
    Replies: 7
    Last Post: 01-09-2002, 10:52 AM