Changed logging

This commit is contained in:
Michiel Broek 2004-09-25 11:19:22 +00:00
parent 75051be04a
commit 88b21d47fd
2 changed files with 8 additions and 9 deletions

View File

@ -55,6 +55,8 @@ v0.61.4 11-Aug-2004
During scan the Msg_Read function is now called with a width
of 79 characters instead of 78. This fixes the missing address
on Origin lines of 79 characters long.
The *.msg function now uses Fgets instead of fgets to read the
message.
mbfile:
The html index now uses html named character entities on the

View File

@ -136,10 +136,10 @@ int toss_onemsg(char *msgname)
strncpy(subject, buf+0x48, 72);
strncpy(DateTime, buf+0x90, 20);
Syslog('m', "\"%s\"", printable(fromUserName, 0));
Syslog('m', "\"%s\"", printable(toUserName, 0));
Syslog('m', "\"%s\"", printable(subject, 0));
Syslog('m', "\"%s\"", printable(DateTime, 0));
Syslog('m', "From \"%s\"", printable(fromUserName, 0));
Syslog('m', "To \"%s\"", printable(toUserName, 0));
Syslog('m', "Subj \"%s\"", printable(subject, 0));
Syslog('m', "Date \"%s\"", printable(DateTime, 0));
destNode = (buf[0xa7] << 8) + buf[0xa6];
origNode = (buf[0xa9] << 8) + buf[0xa8];
@ -153,11 +153,8 @@ int toss_onemsg(char *msgname)
Syslog('m', "From %d:%d/%d.%d to %d:%d/%d.%d", origZone, origNet, origNode, origPoint, destZone, destNet, destNode, destPoint);
while (fgets(temp, PATH_MAX-1, fp)) {
Striplf(temp);
if (temp[strlen(temp)-1] == '\r')
temp[strlen(temp)-1] = '\0';
Syslogp('m', printable(temp, 0));
while (Fgets(temp, PATH_MAX-1, fp)) {
Syslog('m', "Line \"%s\"", printable(temp, 0));
if (!strncmp(temp, "\001MSGID: ", 8)) {
msgid = xstrcpy(temp + 8);
/*