home *** CD-ROM | disk | FTP | other *** search
/ Beijing Paradise BBS Backup / PARADISE.ISO / software / BBSDOORW / FS132_MA.ZIP / RMAIL.MAN < prev    next >
Encoding:
Text File  |  1993-05-05  |  1.9 KB  |  53 lines

  1. .se Applications
  2. .vm 1
  3. .vi 3
  4. .rl 2
  5. .da 07 May, 1993
  6. .ss rmail.exe
  7. .sa mail, uuxqt, readnews
  8.  
  9. rmail provides 3rd party support to the FSUUCP mail mechanism. While FSUUCP
  10. applications use an internally linked version of rmail, the rmail.exe
  11. application provides a command-line link to the rmail facility.
  12.  
  13. The calling convention is:
  14.  
  15. argv[1] is the recipient of the mail. A valid RFC-822 address is required
  16.     here (or the name of a local mailbox)
  17.  
  18. argv[2] is the file to read from. This should contain the text of the
  19.     message in addition to all necessary header fields.
  20.  
  21. argv[3] is the person sending the mail, if local. if there is no argv[3],
  22.     it's mail from offsite
  23.  
  24. rmail.exe will return the following codes:
  25.  
  26. #define    RMAIL_EXIT_OK            0
  27.  
  28. // Startup Errors
  29.  
  30. #define RMAIL_EXIT_ARGC            100 // Invalid number of arguments
  31. #define RMAIL_EXIT_CONFIG        101 // Unable to load FSUUCP.CFG
  32.  
  33. // Resolver Errors
  34.  
  35. #define RMAIL_EXIT_RESOLVE        102 // Unable to understand address
  36. #define RMAIL_EXIT_INVALID_SITE        103 // Cannot send to next site
  37. #define RMAIL_EXIT_NO_SMARTHOST        104 // Unable to route to smarthost
  38. #define RMAIL_EXIT_INVALID_SMARTHOST    105 // smarthost not in systems file
  39.  
  40. // RMail errors
  41.  
  42. #define RMAIL_EXIT_NO_SEQ        106 // Cannot generate sequence
  43. #define RMAIL_EXIT_NO_SEQ_FILE        107 // unable to create seq file
  44. #define RMAIL_EXIT_OPEN_TEMP        108 // unable to open temp file
  45. #define RMAIL_EXIT_APPEND_MBOX        109 // unable to append/create mailbox
  46. #define RMAIL_EXIT_XFILE_CREATE        110 // unable to create X data file
  47. #define RMAIL_EXIT_XFILE_CLOSE        111 // unable to close X data file
  48. #define RMAIL_EXIT_CFILE_CREATE        112 // unable to create C data file
  49. #define RMAIL_EXIT_CFILE_CLOSE        113 // unable to close C data file
  50. #define RMAIL_EXIT_ID_SOURCE        114 // unable to open ID source file
  51. #define RMAIL_EXIT_ID_TARGET        115 // unable to create ID target file
  52. #define RMAIL_EXIT_NULL_SOURCE        116 // empty data file
  53.