]> diplodocus.org Git - nmh/commitdiff
mts/smtp/smtp.h: Remove unused `MMDF' macros.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 22 Apr 2017 17:32:55 +0000 (18:32 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sat, 22 Apr 2017 17:32:55 +0000 (18:32 +0100)
The header file has a specification of a historical interface and
removing the unused parts leaves it incomplete, but it's unlikely those
parts will be needed and what remains seems more understandable;  partly
due to it being less to grok, and also because it relates more to modern
use.

mts/smtp/smtp.h

index 953b3de..6bf3f9e 100644 (file)
@@ -99,9 +99,6 @@ char *rp_string (int);
 
 /* FIELD 1:  Basic degree of success (2-bits) */
 
-#define RP_BTYP '\200'      /* good vs. bad; on => bad            */
-#define RP_BVAL '\300'      /* basic degree of success            */
-
 #define RP_BOK  '\000'      /* went fine; all done                */
 #define RP_BPOK '\100'      /* only the first part got done       */
 #define RP_BTNO '\200'      /* temporary failure; try later       */
@@ -109,19 +106,11 @@ char *rp_string (int);
 
 /* FIELD 2:  Basic domain of discourse (3-bits) */
 
-#define RP_CVAL '\070'      /* basic category (domain) of reply   */
-
 #define RP_CSYN '\000'      /* purely a matter of form            */
 #define RP_CGEN '\010'      /* couldn't find anywhere else for it */
 #define RP_CCON '\020'      /* data-transfer-related issue        */
 #define RP_CUSR '\030'      /* pertaining to the user             */
 #define RP_CMAI '\040'      /* specific to mail semantics         */
-#define RP_CFIL '\050'      /* file system                        */
-#define RP_CLIO '\060'      /* local i/o system                   */
-
-/* FIELD 3:  Specific value for this reply (3-bits) */
-
-#define RP_SVAL '\007'      /* specific value of reply            */
 
 
 /*
@@ -132,9 +121,6 @@ char *rp_string (int);
  * Complete Success
  */
 
-/* done (e.g., w/transaction) */
-#define RP_DONE (RP_BOK | RP_CGEN | '\000')
-
 /* general-purpose OK */
 #define RP_OK   (RP_BOK | RP_CGEN | '\001')
 
@@ -146,12 +132,6 @@ char *rp_string (int);
  * Partial Success
  */
 
-/* you are the requestor */
-#define RP_MAST (RP_BPOK| RP_CGEN | '\000')
-
-/* you are the requestee */
-#define RP_SLAV (RP_BPOK| RP_CGEN | '\001')
-
 /* message address is accepted */
 #define RP_AOK  (RP_BPOK| RP_CMAI | '\000')
 
@@ -164,71 +144,23 @@ char *rp_string (int);
  * Partial Failure
  */
 
-/* not now; maybe later */
-#define RP_AGN  (RP_BTNO | RP_CGEN | '\000')
-
-/* timeout */
-#define RP_TIME (RP_BTNO | RP_CGEN | '\001')
-
-/* no-op; nothing done, this time */
-#define RP_NOOP (RP_BTNO | RP_CGEN | '\002')
-
-/* encountered an end of file */
-#define RP_EOF  (RP_BTNO | RP_CGEN | '\003')
-
-/* channel went bad */
-#define RP_NET  (RP_BTNO | RP_CCON | '\000')
-
 /* foreign host screwed up */
 #define RP_BHST (RP_BTNO | RP_CCON | '\001')
 
-/* host went away */
-#define RP_DHST (RP_BTNO | RP_CCON | '\002')
-
-/* general net i/o problem */
-#define RP_NIO  (RP_BTNO | RP_CCON | '\004')
-
-/* error reading/writing file */
-#define RP_FIO  (RP_BTNO | RP_CFIL | '\000')
-
-/* unable to create file */
-#define RP_FCRT (RP_BTNO | RP_CFIL | '\001')
-
-/* unable to open file */
-#define RP_FOPN (RP_BTNO | RP_CFIL | '\002')
-
-/* general local i/o problem */
-#define RP_LIO  (RP_BTNO | RP_CLIO | '\000')
-
-/* resource currently locked */
-#define RP_LOCK (RP_BTNO | RP_CLIO | '\001')
-
 
 /*
  * Complete Failure
  */
 
-/* bad mechanism/path; try alternate? */
-#define RP_MECH (RP_BNO | RP_CGEN | '\000')
-
 /* general-purpose NO */
 #define RP_NO   (RP_BNO | RP_CGEN | '\001')
 
-/* general prototocol error */
-#define RP_PROT (RP_BNO | RP_CCON | '\000')
-
 /* bad reply code (PERMANENT ERROR) */
 #define RP_RPLY (RP_BNO | RP_CCON | '\001')
 
 /* couldn't deliver */
 #define RP_NDEL (RP_BNO | RP_CMAI | '\000')
 
-/* couldn't parse the request */
-#define RP_HUH  (RP_BNO | RP_CSYN | '\000')
-
-/* no such command defined */
-#define RP_NCMD (RP_BNO | RP_CSYN | '\001')
-
 /* bad parameter */
 #define RP_PARM (RP_BNO | RP_CSYN | '\002')
 
@@ -247,34 +179,6 @@ char *rp_string (int);
 #define rp_gval(val)    ((signed char) (val))
 
 
-/*
- * The next three give the field's bits, within the whole value
- */
-
-/* get the basic part of return value */
-#define rp_gbval(val)   (rp_gval (val) & RP_BVAL)
-
-/* get the domain part of value */
-#define rp_gcval(val)   (rp_gval (val) & RP_CVAL)
-
-/* get the specific part of value */
-#define rp_gsval(val)   (rp_gval (val) & RP_SVAL)
-
-
-/*
- * The next three give the numeric value within the field
- */
-
-/* get the basic part right-shifted */
-#define rp_gbbit(val)   ((rp_gval (val) >> 6) & 03)
-
-/* get the domain part right-shifted */
-#define rp_gcbit(val)   ((rp_gval (val) >> 3) & 07)
-
-/* get the specific part right-shifted */
-#define rp_gsbit(val)   (rp_gval (val) & 07)
-
-
 /*
  * MACHINE DEPENDENCY
  *
@@ -283,9 +187,6 @@ char *rp_string (int);
  * negative.
  */
 
-/* is return value positive? */
-#define rp_isgood(val)  (rp_gval (val) >= 0)
-
 /* is return value negative? */
 #define rp_isbad(val)   (rp_gval (val) < 0)