X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/cfc525a9b85207225cb4071d1d3b01e8d1db2424..9f8418e870a70c264eda1598f2d470e5428c216d:/mts/smtp/smtp.h diff --git a/mts/smtp/smtp.h b/mts/smtp/smtp.h index 1d7d2c98..df02c1a4 100644 --- a/mts/smtp/smtp.h +++ b/mts/smtp/smtp.h @@ -1,16 +1,11 @@ /* * smtp.h -- definitions for the nmh SMTP Interface - * - * $Id$ */ -/* various modes for SMTP */ -#define S_MAIL 0 -#define S_SEND 1 -#define S_SOML 2 -#define S_SAML 3 - +/* length is the length of the string in text[], which is also NUL + * terminated, so s.text[s.length] should always be 0. + */ struct smtp { int code; int length; @@ -21,8 +16,9 @@ struct smtp { * prototypes */ /* int client (); */ -int sm_init (char *, char *, int, int, int, int, int, int, char *, char *); -int sm_winit (int, char *); +int sm_init (char *, char *, char *, int, int, int, int, const char *, + const char *, const char *, int); +int sm_winit (char *, int, int); int sm_wadr (char *, char *, char *); int sm_waend (void); int sm_wtxt (char *, int); @@ -30,11 +26,6 @@ int sm_wtend (void); int sm_end (int); char *rp_string (int); -#ifdef MPOP -int sm_bulk (char *); -#endif - - /* The remainder of this file is derived from "mmdf.h" */ /* @@ -266,7 +257,7 @@ int sm_bulk (char *); /* - * The next three give the numeric value withing the field + * The next three give the numeric value within the field */ /* get the basic part right-shifted */