/*
\f
*/
+/********************************************************/
+/* */
+/* Procedure to free memory used by a usesion */
+/* definition. */
+/* */
+/********************************************************/
+PUBLIC SESTYP *sql_freeses(SESTYP *ses)
+
+{
+if (ses!=(SESTYP *)0) {
+ ses->efrom=rou_freestr(ses->efrom);
+ ses->sfrom=rou_freestr(ses->sfrom);
+ ses->sessid=rou_freestr(ses->sessid);
+ (void) free(ses);
+ ses=(SESTYP *)0;
+ }
+return ses;
+}
+/*
+\f
+*/
/************************************************/
/* */
/* Routine to check if string is properly */
u_long mxspace; //user maximun space
}USRTYP;
+//structure about an email session
+//A session is the exchaneg mail from, rcpts and data
+//with a remote server
+typedef struct {
+ char *sessid; //session id
+ char *sfrom; //the "mail from" comming from SMTP exchange
+ char *efrom; //the "mail from" as within the email itself
+ }SESTYP;
+
//procedure to free space used by an USRTYP
extern USRTYP *sql_freeusr(USRTYP *usr);
+//procedure to free memory used by a SESTYP
+extern SESTYP *sql_freeses(SESTYP *ses);
+
//Procedure to check if string is properly coded according DB_LANG
extern void sql_checkencoding(char *strencoded);