Fixed auto creation of newsgroup names in echomail areas

This commit is contained in:
Michiel Broek 2004-07-04 13:00:14 +00:00
parent adde3b0e5d
commit e2030a7907
2 changed files with 9 additions and 0 deletions

View File

@ -3,6 +3,11 @@ $Id$
v0.61.1 20-Jun-2004. v0.61.1 20-Jun-2004.
upgrade:
If you compiled with ./configure --enable-newsgate you may
need to erase the newsgroup names in the echomail areas you
don't want to gate to news.
general: general:
Added compile directive for full newsgate. If this switch is Added compile directive for full newsgate. If this switch is
used then mbfido behaves like it did upto version 0.50.0 and used then mbfido behaves like it did upto version 0.50.0 and
@ -20,6 +25,8 @@ v0.61.1 20-Jun-2004.
mbsetup: mbsetup:
Added user@domain login for pop3 servers in screen 1.12. Added user@domain login for pop3 servers in screen 1.12.
Added compile directive for full newsgate to prevent newsgroup
name creation in default compiled mode.
v0.61.0 06-Jun-2004 - 20-Jun-2004 v0.61.0 06-Jun-2004 - 20-Jun-2004

View File

@ -242,6 +242,7 @@ int OpenMsgarea(void)
} }
if ((int)msgs.Created == 0) { if ((int)msgs.Created == 0) {
msgs.Created = start; msgs.Created = start;
#ifndef USE_NEWSGATE
if ((strlen(msgs.Newsgroup) == 0) && (msgs.Type == ECHOMAIL) && strlen(msgs.Group)) { if ((strlen(msgs.Newsgroup) == 0) && (msgs.Type == ECHOMAIL) && strlen(msgs.Group)) {
sprintf(msgs.Newsgroup, "%s.%s", GetFidoDomain(msgs.Aka.zone), msgs.Tag); sprintf(msgs.Newsgroup, "%s.%s", GetFidoDomain(msgs.Aka.zone), msgs.Tag);
for (i = 0; i < strlen(msgs.Newsgroup); i++) { for (i = 0; i < strlen(msgs.Newsgroup); i++) {
@ -251,6 +252,7 @@ int OpenMsgarea(void)
} }
Syslog('+', "Area %s created newsgroup name %s", msgs.Tag, msgs.Newsgroup); Syslog('+', "Area %s created newsgroup name %s", msgs.Tag, msgs.Newsgroup);
} }
#endif
} }
fwrite(&msgs, sizeof(msgs), 1, fout); fwrite(&msgs, sizeof(msgs), 1, fout);
memset(&msgs, 0, sizeof(msgs)); memset(&msgs, 0, sizeof(msgs));