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

This is a discussion on Should I retry some commands during a POP3 session? Read more: Should I retry some c within the C++ Programming forums, part of the General Programming Boards category; Hello, I'm writing a peer2mail client. To connect to the mailboxes I use pop3 protocol. I'm connecting to a pop3 ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,434
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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, 05: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, 12:45 AM
  5. Serial Communications in C
    By ExDigit in forum Windows Programming
    Replies: 7
    Last Post: 01-09-2002, 09:52 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21