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.
|
||||
With message areas auto update it should now only delete
|
||||
missing echomail areas.
|
||||
File attaches to our own points were placed in the node's
|
||||
outbound directory instead of the point outbound.
|
||||
|
||||
mbsetup:
|
||||
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)
|
||||
{
|
||||
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;
|
||||
fidoaddr Dest, Route, *dest;
|
||||
time_t now;
|
||||
@ -935,6 +935,24 @@ void ExportNet(unsigned long MsgNum, int UUCPgate)
|
||||
sprintf(ext, (char *)"ccc");
|
||||
else
|
||||
sprintf(ext, (char *)"nnn");
|
||||
|
||||
/*
|
||||
* If the destination is a point, check if it is our point
|
||||
*/
|
||||
for (i = 0; i < 40; i++) {
|
||||
if (CFG.akavalid[i] &&
|
||||
(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)
|
||||
@ -944,6 +962,7 @@ void ExportNet(unsigned long MsgNum, int UUCPgate)
|
||||
return;
|
||||
}
|
||||
Dest.point = point;
|
||||
}
|
||||
|
||||
} else {
|
||||
Syslog('m', "Route via %s", aka2str(Route));
|
||||
|
Reference in New Issue
Block a user