Changed syntax of queue .filelist

This commit is contained in:
Michiel Broek 2004-07-16 11:09:04 +00:00
parent 44faa5da34
commit 34e2ac5116
3 changed files with 14 additions and 6 deletions

View File

@ -90,7 +90,7 @@ void ForwardFile(fidoaddr Node, fa_list *sbl)
if (nodes.Hold)
flavor = 'h';
fprintf(fl, "%c LEAVE %s\n", flavor, fwdfile);
fprintf(fl, "%c LEAVE FDN %s\n", flavor, fwdfile);
if (nodes.RouteVia.zone)
routeto = fido2faddr(nodes.RouteVia);
@ -256,7 +256,7 @@ void ForwardFile(fidoaddr Node, fa_list *sbl)
fprintf(fp, "Pw %s\r\n", nodes.Fpasswd);
fclose(fp);
fprintf(fl, "%c KFS %s\n", flavor, ticfile);
fprintf(fl, "%c KFS NOR %s\n", flavor, ticfile);
} else {
WriteError("$Can't create %s", ticfile);
}

View File

@ -70,7 +70,7 @@ void flush_dir(char *ndir)
FILE *fp, *inf, *ouf;
faddr noden, *bestaka;
fidoaddr nodenr;
int flavor, mode, Attach, fage, first, bread, rc;
int flavor, mode, Attach, fage, first, bread, rc, fdb;
long fsize;
char *p, *temp, *fname, *arcfile, *pktfile, *ext, maxnr, nr, oldnr, *buf;
time_t Now;
@ -550,8 +550,16 @@ void flush_dir(char *ndir)
}
p = strchr(p, ' ');
p++;
if (strncmp(p, "NOR ", 4))
fdb = FALSE;
else if (strncmp(p, "FDN ", 4))
fdb = TRUE;
else
fdb = FALSE;
p = strchr(p, ' ');
p++;
Syslog('p', "File attach %s", p);
Syslog('p', "File attach (fdb=%s) %s", fdb?"True":"False", p);
if (nodes.Session_out == S_DIRECT) {
attach(noden, p, mode, flavor);
} else if (nodes.Session_out == S_DIR) {

View File

@ -1063,10 +1063,10 @@ void ExportNet(unsigned long MsgNum, int UUCPgate)
WriteError("$Can't open %s", p);
} else {
if (strlen(CFG.dospath)) {
fprintf(fl, "%c LEAVE %s\n", flavor, Dos2Unix(Msg.Subject));
fprintf(fl, "%c LEAVE NOR %s\n", flavor, Dos2Unix(Msg.Subject));
Syslog('+', "FileAttach %s", Dos2Unix(Msg.Subject));
} else {
fprintf(fl, "%c LEAVE %s\n", flavor, Msg.Subject);
fprintf(fl, "%c LEAVE NOR %s\n", flavor, Msg.Subject);
Syslog('+', "FileAttach %s", Msg.Subject);
}
fsync(fileno(fl));