Changed syntax of queue .filelist
This commit is contained in:
parent
44faa5da34
commit
34e2ac5116
@ -90,7 +90,7 @@ void ForwardFile(fidoaddr Node, fa_list *sbl)
|
|||||||
if (nodes.Hold)
|
if (nodes.Hold)
|
||||||
flavor = 'h';
|
flavor = 'h';
|
||||||
|
|
||||||
fprintf(fl, "%c LEAVE %s\n", flavor, fwdfile);
|
fprintf(fl, "%c LEAVE FDN %s\n", flavor, fwdfile);
|
||||||
|
|
||||||
if (nodes.RouteVia.zone)
|
if (nodes.RouteVia.zone)
|
||||||
routeto = fido2faddr(nodes.RouteVia);
|
routeto = fido2faddr(nodes.RouteVia);
|
||||||
@ -256,7 +256,7 @@ void ForwardFile(fidoaddr Node, fa_list *sbl)
|
|||||||
|
|
||||||
fprintf(fp, "Pw %s\r\n", nodes.Fpasswd);
|
fprintf(fp, "Pw %s\r\n", nodes.Fpasswd);
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
fprintf(fl, "%c KFS %s\n", flavor, ticfile);
|
fprintf(fl, "%c KFS NOR %s\n", flavor, ticfile);
|
||||||
} else {
|
} else {
|
||||||
WriteError("$Can't create %s", ticfile);
|
WriteError("$Can't create %s", ticfile);
|
||||||
}
|
}
|
||||||
|
@ -70,7 +70,7 @@ void flush_dir(char *ndir)
|
|||||||
FILE *fp, *inf, *ouf;
|
FILE *fp, *inf, *ouf;
|
||||||
faddr noden, *bestaka;
|
faddr noden, *bestaka;
|
||||||
fidoaddr nodenr;
|
fidoaddr nodenr;
|
||||||
int flavor, mode, Attach, fage, first, bread, rc;
|
int flavor, mode, Attach, fage, first, bread, rc, fdb;
|
||||||
long fsize;
|
long fsize;
|
||||||
char *p, *temp, *fname, *arcfile, *pktfile, *ext, maxnr, nr, oldnr, *buf;
|
char *p, *temp, *fname, *arcfile, *pktfile, *ext, maxnr, nr, oldnr, *buf;
|
||||||
time_t Now;
|
time_t Now;
|
||||||
@ -550,8 +550,16 @@ void flush_dir(char *ndir)
|
|||||||
}
|
}
|
||||||
p = strchr(p, ' ');
|
p = strchr(p, ' ');
|
||||||
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) {
|
if (nodes.Session_out == S_DIRECT) {
|
||||||
attach(noden, p, mode, flavor);
|
attach(noden, p, mode, flavor);
|
||||||
} else if (nodes.Session_out == S_DIR) {
|
} else if (nodes.Session_out == S_DIR) {
|
||||||
|
@ -1063,10 +1063,10 @@ void ExportNet(unsigned long MsgNum, int UUCPgate)
|
|||||||
WriteError("$Can't open %s", p);
|
WriteError("$Can't open %s", p);
|
||||||
} else {
|
} else {
|
||||||
if (strlen(CFG.dospath)) {
|
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));
|
Syslog('+', "FileAttach %s", Dos2Unix(Msg.Subject));
|
||||||
} else {
|
} 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);
|
Syslog('+', "FileAttach %s", Msg.Subject);
|
||||||
}
|
}
|
||||||
fsync(fileno(fl));
|
fsync(fileno(fl));
|
||||||
|
Reference in New Issue
Block a user