home *** CD-ROM | disk | FTP | other *** search
/ PDA Software Library / pdasoftwarelib.iso / PSION / COMMS / PSIONMAI / PMFULLSO / SUNMAIL / TALKTOPO.H < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-06  |  775 b   |  36 lines

  1. /* defines file for talking to the pop program and libs */
  2. #define POPCONF ".talktopoprc"
  3. #define POPNAME "pop-3"
  4. #define PROTNAME "tcp"
  5. #define POPSERVER "astir"
  6.  
  7. #define USERCMD "USER"
  8. #define PASSCMD "PASS"
  9. #define LISTCMD "LIST"
  10. #define RETRCMD "RETR"
  11. #define DELECMD "DELE"
  12. #define QUITCMD "QUIT"
  13. #define READY "."
  14. #define BADCHAR '-'
  15. #define OKCHAR '+'
  16.  
  17. /* standard defines */
  18. #define TRUE 1
  19. #define FALSE 0
  20.  
  21. /* error codes */
  22. #define NETERR -1
  23. #define NETOK -2
  24. #define GOODCMD 1
  25. #define BADCMD 0
  26. #define BADFILE BADCMD
  27.  
  28. /* sizes and stuff */
  29. #define MAXLINE 1024
  30. #define MAXSIZE 2048 /* max size of an email to get */
  31. #define MAXCOUNT 10 /* get 10 emails */
  32.  
  33. /* skeleton for generating file names */
  34. #define INSKELETON "in%03d.msg"
  35.  
  36.