Added some forgotten client encoding
This commit is contained in:
parent
3f4c2aa548
commit
26dbee01a5
@ -3,6 +3,9 @@ $Id$
|
||||
|
||||
v0.81.4 23-Oct-2005
|
||||
|
||||
libmbse.a:
|
||||
Added some forgotten client/server encoding.
|
||||
|
||||
|
||||
v0.81.3 17-Oct-2005 - 23-Oct-2005
|
||||
|
||||
|
26
lib/clcomm.c
26
lib/clcomm.c
@ -197,7 +197,7 @@ char *SockR(const char *format, ...)
|
||||
|
||||
void WriteError(const char *format, ...)
|
||||
{
|
||||
char *outputstr;
|
||||
char *outputstr, *temp;
|
||||
va_list va_ptr;
|
||||
int i;
|
||||
|
||||
@ -235,9 +235,15 @@ void WriteError(const char *format, ...)
|
||||
lcnt = 0;
|
||||
}
|
||||
|
||||
SockS("ALOG:5,%s,%s,%d,?,%s;", logdebug, progname, mypid, *outputstr == '$' ? outputstr+1 : outputstr);
|
||||
SockS("ALOG:5,%s,%s,%d,?,%s;", logfile, progname, mypid, *outputstr == '$' ? outputstr+1 : outputstr);
|
||||
SockS("ALOG:5,%s,%s,%d,?,%s;", errfile, progname, mypid, *outputstr == '$' ? outputstr+1 : outputstr);
|
||||
if (*outputstr == '$') {
|
||||
temp = xstrcpy(clencode(outputstr+1));
|
||||
} else {
|
||||
temp = xstrcpy(clencode(outputstr));
|
||||
}
|
||||
SockS("ALOG:5,%s,%s,%d,?,%s;", logdebug, progname, mypid, temp);
|
||||
SockS("ALOG:5,%s,%s,%d,?,%s;", logfile, progname, mypid, temp);
|
||||
SockS("ALOG:5,%s,%s,%d,?,%s;", errfile, progname, mypid, temp);
|
||||
free(temp);
|
||||
free(outputstr);
|
||||
}
|
||||
|
||||
@ -333,13 +339,13 @@ void Syslogp(int level, char *outstr)
|
||||
printf("%c %s\n", level, outstr);
|
||||
|
||||
if (*outstr == '$') {
|
||||
SockS("ALOG:5,%s,%s,%d,%c,%s: %s;", logdebug, progname, mypid, level, outstr+1, strerror(errno));
|
||||
SockS("ALOG:5,%s,%s,%d,%c,%s: %s;", logdebug, progname, mypid, level, clencode(outstr+1), strerror(errno));
|
||||
if (!debug)
|
||||
SockS("ALOG:5,%s,%s,%d,%c,%s: %s;", logfile, progname, mypid, level, outstr+1, strerror(errno));
|
||||
SockS("ALOG:5,%s,%s,%d,%c,%s: %s;", logfile, progname, mypid, level, clencode(outstr+1), strerror(errno));
|
||||
} else {
|
||||
SockS("ALOG:5,%s,%s,%d,%c,%s;", logdebug, progname, mypid, level, outstr);
|
||||
SockS("ALOG:5,%s,%s,%d,%c,%s;", logdebug, progname, mypid, level, clencode(outstr));
|
||||
if (!debug)
|
||||
SockS("ALOG:5,%s,%s,%d,%c,%s;", logfile, progname, mypid, level, outstr);
|
||||
SockS("ALOG:5,%s,%s,%d,%c,%s;", logfile, progname, mypid, level, clencode(outstr));
|
||||
}
|
||||
}
|
||||
|
||||
@ -363,7 +369,7 @@ void Mgrlog(const char *format, ...)
|
||||
if (strlen(outstr) > (SS_BUFSIZE - 64))
|
||||
outstr[SS_BUFSIZE - 64] = '\0';
|
||||
|
||||
SockS("ALOG:5,%s,%s,%d,+,%s;", mgrfile, progname, mypid, outstr);
|
||||
SockS("ALOG:5,%s,%s,%d,+,%s;", mgrfile, progname, mypid, clencode(outstr));
|
||||
Syslogp('+', outstr);
|
||||
free(outstr);
|
||||
}
|
||||
@ -381,7 +387,7 @@ void IsDoing(const char *format, ...)
|
||||
vsnprintf(outputstr, SS_BUFSIZE, format, va_ptr);
|
||||
va_end(va_ptr);
|
||||
|
||||
SockS("ADOI:2,%d,%s;", mypid, outputstr);
|
||||
SockS("ADOI:2,%d,%s;", mypid, clencode(outputstr));
|
||||
free(outputstr);
|
||||
}
|
||||
|
||||
|
@ -1124,7 +1124,7 @@ void ExportEmail(unsigned int MsgNum)
|
||||
if (Msg_Read(MsgNum, 79)) {
|
||||
if ((p = (char *)MsgText_First()) != NULL) {
|
||||
do {
|
||||
Syslog('m', "%s", printable(p, 0));
|
||||
Syslogp('m', printable(p, 0));
|
||||
/*
|
||||
* GoldED places ^A characters in front of the RFC headers,
|
||||
* so does mbsebbs as well.
|
||||
|
Reference in New Issue
Block a user