Fix for file attaches to local points
This commit is contained in:
parent
00e6c0dd6b
commit
244d8124b7
@ -32,6 +32,8 @@ v0.35.04 29-Sep-2002
|
|||||||
Auto created area now get the link security from the group.
|
Auto created area now get the link security from the group.
|
||||||
With message areas auto update it should now only delete
|
With message areas auto update it should now only delete
|
||||||
missing echomail areas.
|
missing echomail areas.
|
||||||
|
File attaches to our own points were placed in the node's
|
||||||
|
outbound directory instead of the point outbound.
|
||||||
|
|
||||||
mbsetup:
|
mbsetup:
|
||||||
Added setup for the nodes record for security flags.
|
Added setup for the nodes record for security flags.
|
||||||
|
@ -782,7 +782,7 @@ void ExportNews(unsigned long MsgNum, fa_list **sbl)
|
|||||||
void ExportNet(unsigned long MsgNum, int UUCPgate)
|
void ExportNet(unsigned long MsgNum, int UUCPgate)
|
||||||
{
|
{
|
||||||
char *p, *q, ext[4], fromname[37], flavor, MailFrom[128], MailTo[128];
|
char *p, *q, ext[4], fromname[37], flavor, MailFrom[128], MailTo[128];
|
||||||
int i, rc, flags = 0, first, is_fmpt = FALSE, is_topt = FALSE, is_intl = FALSE;
|
int i, rc, flags = 0, first, is_fmpt = FALSE, is_topt = FALSE, is_intl = FALSE, mypoint = FALSE;
|
||||||
FILE *qp, *fp, *fl;
|
FILE *qp, *fp, *fl;
|
||||||
fidoaddr Dest, Route, *dest;
|
fidoaddr Dest, Route, *dest;
|
||||||
time_t now;
|
time_t now;
|
||||||
@ -935,15 +935,34 @@ void ExportNet(unsigned long MsgNum, int UUCPgate)
|
|||||||
sprintf(ext, (char *)"ccc");
|
sprintf(ext, (char *)"ccc");
|
||||||
else
|
else
|
||||||
sprintf(ext, (char *)"nnn");
|
sprintf(ext, (char *)"nnn");
|
||||||
point = Dest.point;
|
|
||||||
Dest.point = 0;
|
/*
|
||||||
if (point)
|
* If the destination is a point, check if it is our point
|
||||||
Syslog('+', "Routing via Boss %s", aka2str(Dest));
|
*/
|
||||||
if ((qp = OpenPkt(msgs.Aka, Dest, (char *)ext)) == NULL) {
|
for (i = 0; i < 40; i++) {
|
||||||
net_bad++;
|
if (CFG.akavalid[i] &&
|
||||||
return;
|
(CFG.aka[i].zone == Dest.zone) && (CFG.aka[i].net == Dest.net) && (CFG.aka[i].node == Dest.node)) {
|
||||||
|
if (Dest.point && !CFG.aka[i].point) {
|
||||||
|
mypoint = TRUE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (mypoint) {
|
||||||
|
if ((qp = OpenPkt(msgs.Aka, Dest, (char *)ext)) == NULL) {
|
||||||
|
net_bad++;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
point = Dest.point;
|
||||||
|
Dest.point = 0;
|
||||||
|
if (point)
|
||||||
|
Syslog('+', "Routing via Boss %s", aka2str(Dest));
|
||||||
|
if ((qp = OpenPkt(msgs.Aka, Dest, (char *)ext)) == NULL) {
|
||||||
|
net_bad++;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
Dest.point = point;
|
||||||
}
|
}
|
||||||
Dest.point = point;
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
Syslog('m', "Route via %s", aka2str(Route));
|
Syslog('m', "Route via %s", aka2str(Route));
|
||||||
|
Reference in New Issue
Block a user