Changed PID and TID kludges to include OS and CPU
This commit is contained in:
parent
ca6e5dcafa
commit
e1e0abbc27
@ -24,12 +24,18 @@ v0.51.1 21-Feb-2004
|
|||||||
|
|
||||||
mbsebbs:
|
mbsebbs:
|
||||||
Writes the ^aCHRS: kludge again in new created messages.
|
Writes the ^aCHRS: kludge again in new created messages.
|
||||||
|
Changed ^aPID to include OS and CPU.
|
||||||
|
|
||||||
mbmsg:
|
mbmsg:
|
||||||
Writes the ^aCHRS: kludge again in new created messages.
|
Writes the ^aCHRS: kludge again in new created messages.
|
||||||
|
Changed ^aPID to include OS and CPU.
|
||||||
|
|
||||||
mbaff:
|
mbaff:
|
||||||
Writes the ^aCHRS: kludge again in new created messages.
|
Writes the ^aCHRS: kludge again in new created messages.
|
||||||
|
Changed ^aPID to include OS and CPU.
|
||||||
|
|
||||||
|
mbfido:
|
||||||
|
Changed ^aTID to include OS and CPU.
|
||||||
|
|
||||||
|
|
||||||
v0.51.0 09-Feb-2004 - 21-Feb-2004
|
v0.51.0 09-Feb-2004 - 21-Feb-2004
|
||||||
|
@ -132,7 +132,7 @@ FILE *ftnmsghdr(ftnmsg *fmsg, FILE *pkt, faddr *routeaddr, char flavor, char *Pi
|
|||||||
fmsg->reply_n);
|
fmsg->reply_n);
|
||||||
|
|
||||||
Now = time(NULL) - (gmt_offset((time_t)0) * 60);
|
Now = time(NULL) - (gmt_offset((time_t)0) * 60);
|
||||||
fprintf(pkt, "\001PID: %s %s\r", Pid, VERSION);
|
fprintf(pkt, "\001PID: %s %s (%s-%s)\r", Pid, VERSION, OsName(), OsCPU());
|
||||||
fprintf(pkt, "\001TZUTC: %s\r", gmtoffset(Now));
|
fprintf(pkt, "\001TZUTC: %s\r", gmtoffset(Now));
|
||||||
if (ferror(pkt))
|
if (ferror(pkt))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -97,7 +97,7 @@ int Bounce(faddr *f, faddr *t, FILE *fp, char *reason)
|
|||||||
fprintf(np, "\001REPLY:%s\r", Buf+7);
|
fprintf(np, "\001REPLY:%s\r", Buf+7);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fprintf(np, "\001PID: MBSE-FIDO %s\r", VERSION);
|
fprintf(np, "\001PID: MBSE-FIDO %s (%s-%s)\r", VERSION, OsName(), OsCPU());
|
||||||
fprintf(np, "\001TZUTC: %s\r", gmtoffset(Now));
|
fprintf(np, "\001TZUTC: %s\r", gmtoffset(Now));
|
||||||
|
|
||||||
fprintf(np, " Dear %s\r\r", MBSE_SS(f->name));
|
fprintf(np, " Dear %s\r\r", MBSE_SS(f->name));
|
||||||
|
@ -388,7 +388,7 @@ int UplinkRequest(faddr *t, faddr *From, int FileMgr, char *cmd)
|
|||||||
* Add MSGID, REPLY and PID
|
* Add MSGID, REPLY and PID
|
||||||
*/
|
*/
|
||||||
fprintf(qp, "\001MSGID: %s %08lx\r", aka2str(Orig), sequencer());
|
fprintf(qp, "\001MSGID: %s %08lx\r", aka2str(Orig), sequencer());
|
||||||
fprintf(qp, "\001PID: MBSE-FIDO %s\r", VERSION);
|
fprintf(qp, "\001PID: MBSE-FIDO %s (%s-%s)\r", VERSION, OsName(), OsCPU());
|
||||||
fprintf(qp, "\001TZUTC: %s\r", gmtoffset(Now));
|
fprintf(qp, "\001TZUTC: %s\r", gmtoffset(Now));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -87,7 +87,7 @@ void Msg_Pid(void)
|
|||||||
time_t tt;
|
time_t tt;
|
||||||
|
|
||||||
temp = calloc(81, sizeof(char));
|
temp = calloc(81, sizeof(char));
|
||||||
sprintf(temp, "\001PID: MBSE-FIDO %s", VERSION);
|
sprintf(temp, "\001PID: MBSE-FIDO %s (%s-%s)", VERSION, OsName(), OsCPU());
|
||||||
MsgText_Add2(temp);
|
MsgText_Add2(temp);
|
||||||
if (msgs.Charset != FTNC_NONE) {
|
if (msgs.Charset != FTNC_NONE) {
|
||||||
sprintf(temp, "\001CHRS: %s", getchrs(msgs.Charset));
|
sprintf(temp, "\001CHRS: %s", getchrs(msgs.Charset));
|
||||||
|
@ -101,7 +101,7 @@ int Ping(faddr *f, faddr *t, FILE *fp, int intransit)
|
|||||||
fprintf(np, "\001REPLY:%s\r", Buf+7);
|
fprintf(np, "\001REPLY:%s\r", Buf+7);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fprintf(np, "\001PID: MBSE-FIDO %s\r", VERSION);
|
fprintf(np, "\001PID: MBSE-FIDO %s (%s-%s)\r", VERSION, OsName(), OsCPU());
|
||||||
fprintf(np, "\001TZUTC: %s\r", gmtoffset(Now));
|
fprintf(np, "\001TZUTC: %s\r", gmtoffset(Now));
|
||||||
|
|
||||||
fprintf(np, " Dear %s\r\r", MBSE_SS(f->name));
|
fprintf(np, " Dear %s\r\r", MBSE_SS(f->name));
|
||||||
|
@ -189,7 +189,7 @@ void Post(char *To, long Area, char *Subj, char *File, char *Flavor)
|
|||||||
MsgText_Add2(temp);
|
MsgText_Add2(temp);
|
||||||
Msg.MsgIdCRC = upd_crc32(temp, crc, strlen(temp));
|
Msg.MsgIdCRC = upd_crc32(temp, crc, strlen(temp));
|
||||||
Msg.ReplyCRC = 0xffffffff;
|
Msg.ReplyCRC = 0xffffffff;
|
||||||
sprintf(temp, "\001PID: MBSE-FIDO %s", VERSION);
|
sprintf(temp, "\001PID: MBSE-FIDO %s (%s-%s)", VERSION, OsName(), OsCPU());
|
||||||
MsgText_Add2(temp);
|
MsgText_Add2(temp);
|
||||||
if (msgs.Charset != FTNC_NONE) {
|
if (msgs.Charset != FTNC_NONE) {
|
||||||
sprintf(temp, "\001CHRS: %s", getchrs(msgs.Charset));
|
sprintf(temp, "\001CHRS: %s", getchrs(msgs.Charset));
|
||||||
|
@ -398,7 +398,7 @@ int rfc2ftn(FILE *fp, faddr *recipient)
|
|||||||
fprintf(ofp, "\1PID:");
|
fprintf(ofp, "\1PID:");
|
||||||
kludgewrite(p, ofp);
|
kludgewrite(p, ofp);
|
||||||
} else {
|
} else {
|
||||||
fprintf(ofp, "\001PID: MBSE-FIDO %s\n", VERSION);
|
fprintf(ofp, "\001PID: MBSE-FIDO %s (%s-%s)\n", VERSION, OsName(), OsCPU());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -421,7 +421,7 @@ int rfc2ftn(FILE *fp, faddr *recipient)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!(hdr((char *)"X-FTN-Tearline", msg)) && !(hdr((char *)"X-FTN-TID", msg))) {
|
if (!(hdr((char *)"X-FTN-Tearline", msg)) && !(hdr((char *)"X-FTN-TID", msg))) {
|
||||||
sprintf(temp, " MBSE-FIDO %s", VERSION);
|
sprintf(temp, " MBSE-FIDO %s (%s-%s)", VERSION, OsName(), OsCPU());
|
||||||
hdrsize += 4 + strlen(temp);
|
hdrsize += 4 + strlen(temp);
|
||||||
fprintf(ofp, "\1TID:");
|
fprintf(ofp, "\1TID:");
|
||||||
kludgewrite(temp, ofp);
|
kludgewrite(temp, ofp);
|
||||||
|
@ -624,7 +624,7 @@ void ExportEcho(sysconnect L, unsigned long MsgNum, fa_list **sbl)
|
|||||||
* At the end of the kludges, add the TID kludge.
|
* At the end of the kludges, add the TID kludge.
|
||||||
*/
|
*/
|
||||||
kludges = FALSE;
|
kludges = FALSE;
|
||||||
fprintf(qp, "\001TID: MBSE-FIDO %s\r", VERSION);
|
fprintf(qp, "\001TID: MBSE-FIDO %s (%s-%s)\r", VERSION, OsName(), OsCPU());
|
||||||
}
|
}
|
||||||
fprintf(qp, "%s", p);
|
fprintf(qp, "%s", p);
|
||||||
if (strncmp(p, " * Origin:", 10) == 0)
|
if (strncmp(p, " * Origin:", 10) == 0)
|
||||||
@ -709,7 +709,7 @@ void ExportNews(unsigned long MsgNum, fa_list **sbl)
|
|||||||
* After the first kludges, send RFC headers
|
* After the first kludges, send RFC headers
|
||||||
*/
|
*/
|
||||||
kludges = FALSE;
|
kludges = FALSE;
|
||||||
fprintf(qp, "\001TID: MBSE-FIDO %s\n", VERSION);
|
fprintf(qp, "\001TID: MBSE-FIDO %s (%s-%s)\n", VERSION, OsName(), OsCPU());
|
||||||
fprintf(qp, "Subject: %s\n", Msg.Subject);
|
fprintf(qp, "Subject: %s\n", Msg.Subject);
|
||||||
Syslog('m', "Subject: %s", Msg.Subject);
|
Syslog('m', "Subject: %s", Msg.Subject);
|
||||||
fprintf(qp, "\n");
|
fprintf(qp, "\n");
|
||||||
@ -1116,7 +1116,7 @@ void ExportEmail(unsigned long MsgNum)
|
|||||||
if (p[0] == '\001') {
|
if (p[0] == '\001') {
|
||||||
fprintf(qp, "%s\n", p+1);
|
fprintf(qp, "%s\n", p+1);
|
||||||
if (!strncmp(p, "\001PID:", 5)) {
|
if (!strncmp(p, "\001PID:", 5)) {
|
||||||
fprintf(qp, "TID: MBSE-FIDO %s\n", VERSION);
|
fprintf(qp, "TID: MBSE-FIDO %s (%s-%s)\n", VERSION, OsName(), OsCPU());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (kludges) {
|
if (kludges) {
|
||||||
|
@ -119,7 +119,7 @@ FILE *SendMgrMail(faddr *t, int Keep, int FileAttach, char *bymgr, char *subj, c
|
|||||||
fprintf(qp, "\001MSGID: %s %08lx\r", aka2str(Orig), sequencer());
|
fprintf(qp, "\001MSGID: %s %08lx\r", aka2str(Orig), sequencer());
|
||||||
if (reply != NULL)
|
if (reply != NULL)
|
||||||
fprintf(qp, "\001REPLY: %s\r", reply);
|
fprintf(qp, "\001REPLY: %s\r", reply);
|
||||||
fprintf(qp, "\001PID: MBSE-FIDO %s\r", VERSION);
|
fprintf(qp, "\001PID: MBSE-FIDO %s (%s-%s)\r", VERSION, OsName(), OsCPU());
|
||||||
fprintf(qp, "\001TZUTC: %s\r", gmtoffset(Now));
|
fprintf(qp, "\001TZUTC: %s\r", gmtoffset(Now));
|
||||||
return qp;
|
return qp;
|
||||||
}
|
}
|
||||||
|
@ -237,7 +237,7 @@ void Add_Headkludges(faddr *dest, int IsReply)
|
|||||||
} else
|
} else
|
||||||
Msg.ReplyCRC = 0xffffffff;
|
Msg.ReplyCRC = 0xffffffff;
|
||||||
|
|
||||||
sprintf(temp, "\001PID: MBSE-BBS %s", VERSION);
|
sprintf(temp, "\001PID: MBSE-BBS %s (%s-%s)", VERSION, OsName(), OsCPU());
|
||||||
MsgText_Add2(temp);
|
MsgText_Add2(temp);
|
||||||
tt = time(NULL);
|
tt = time(NULL);
|
||||||
sprintf(temp, "\001TZUTC: %s", gmtoffset(tt));
|
sprintf(temp, "\001TZUTC: %s", gmtoffset(tt));
|
||||||
|
Reference in New Issue
Block a user