#--------------------------------------------------------------------
#To test sorter
dosorter:
+ @ bin/sorter \
+ -d 2 \
+ -c ./conf/mailleur.conf.dvl \
+ -r $(TESTDIR)
+
+donesort:
@ bin/sorter \
-f \
-d 2 \
while (*ptr!=(TRATYP *)0) {
if ((*ptr)->code=='C') {
if (eml_countqfile((*ptr)->sessid,-1)==0) {
+ char fname[200];
+
(void) rou_alert(0,"%s JMPDBG need to remove <%s>",OPEP,(*ptr)->sessid);
+ (void) snprintf(fname,sizeof(fname),"%s.%s",(*ptr)->sessid,EXTCNT);
(void) eml_deleteqfile((*ptr)->sessid);
+ (void) eml_deleteqfile(fname);
}
}
else
/********************************************************/
/* */
/* Procedure to free memory used by a list of */
-/* session id. */
-/* */
-/********************************************************/
-PUBLIC SIDTYP **eml_freesid(SIDTYP **list)
-
-{
-if (list!=(SIDTYP **)0) {
- SIDTYP **ptr;
-
- ptr=list;
- while (*ptr!=(SIDTYP *)0) {
- (void) free(*ptr);
- ptr++;
- }
- (void) free(list);
- list=(SIDTYP **)0;
- }
-return list;
-}
-/*
-^L
-*/
-/********************************************************/
-/* */
-/* Procedure to add an session ID to a list of */
-/* session ID */
-/* */
-/********************************************************/
-PUBLIC SIDTYP *eml_addsid(SIDTYP ***list,char *sessid)
-
-{
-SIDTYP *found;
-
-found=(SIDTYP *)0;
-if (*list!=(SIDTYP **)0) {
- SIDTYP **ptr;
-
- ptr=*list;
- while (*ptr!=(SIDTYP *)0) {
- if (strcmp(sessid,(*ptr)->sessid)==0) {
- found=*ptr;
- break;
- }
- ptr++;
- }
- }
-if (found==(SIDTYP *)0) {
- found=(SIDTYP *)calloc(1,sizeof(SIDTYP));
- found->sessid=sessid;
- *list=(SIDTYP **)rou_addlist((void **)*list,(void *)found);
- }
-return found;
-}
-/*
-^L
-*/
-/********************************************************/
-/* */
-/* Procedure to free memory used by a list of */
/* recipient. */
/* */
/********************************************************/
char *userid; //recipient email userid
}RCPTYP;
-typedef struct { //definition of SID reference
- int count; //Number of SESSID reference
- char *sessid; //Session ID reference
- }SIDTYP;
-
-//Freeing list of sessid
-extern SIDTYP **eml_freesid(SIDTYP **list);
-
-//adding an session ID to a list of session
-extern SIDTYP *eml_addsid(SIDTYP ***list,char *sessid);
-
//procedure to Free one recipient info
extern RCPTYP *eml_freerecipient(RCPTYP *info);