break;
case 5 : //updating transfile
(void) eml_dump_list_tra(qfile,tra);
+ (void) eml_update_tradb(tra);
tra=(TRATYP **)rou_freelist((void **)tra,(genfree_t)eml_freetra);
break;
case 6 : //closing file
status=true;
break;
default : //SAFE Guard
- //tra=(TRATYP **)rou_freelist((void **)tra,(genfree_t)eml_freetra);
qfile=eml_closeqfile(qfile);
proceed=false;
break;
}
ptr++;
}
+ (void)eml_update_tradb(trans);
fname=(char **)rou_freelist((void *)fname,(genfree_t)rou_freestr);
}
break;
#undef OPEP
}
+/*
+^L
+*/
+/********************************************************/
+/* */
+/* Procedure to update the database with respond */
+/* Record associated with TRA. */
+/* Return the number of record stored within the */
+/* database. */
+/* */
+/********************************************************/
+PUBLIC int eml_update_tradb(TRATYP **tra)
+
+{
+int num;
+
+num=0;
+if (tra!=(TRATYP **)0) {
+ while (*tra!=(TRATYP *)0) {
+ (void) rou_alert(0,"JMPDBG ses=<%s>d rcpt=<%s>",(*tra)->sessid,(*tra)->rcptto);
+ tra++;
+ }
+ }
+return num;
+}
time_t date; //Transaction date
u_int delay; //Transaction execution delay
char *sessid; //session id
- char *mailfrom; //EMail Originator
- char *rcptto; //EMail Recipient
+ char *mailfrom; //Email Originator
+ char *rcptto; //Email Recipient
int sendcode; //Email sending status;
char **resp; //Transfer response status
}TRATYP;
//procedure to scan on line from email header
extern _Bool eml_scan_headerline(SESTYP *session,const char *line);
+//procedure to update database with transfer record (TRATYP)
+extern int eml_update_tradb(TRATYP **tra);
+
#endif