Fixes for handles in mbsebbs, fixes for areamgr listings

This commit is contained in:
Michiel Broek 2003-02-02 15:03:40 +00:00
parent 078a4e9d08
commit 063ee8e631
5 changed files with 49 additions and 12 deletions

View File

@ -36,6 +36,8 @@ v0.37.01 14-Jan-2003.
mbfido:
Removed all code for charset translation.
In areamgr/filemgr lists the messages are forced splitted when
the force limit is reached in the middle of a group listing.
mbsetup:
Added protection against wrong database sizes depending on
@ -46,6 +48,11 @@ v0.37.01 14-Jan-2003.
mbsebbs:
It will now refuse to up/download OLR packets when the system
bbs id is not set in the global setup.
When a reply is made on a message in a area which allows
aliases, the user is asked to use his alias.
When a reply is made on a message in a newsgroup and your
systems has a permanent mail domain the email address is used
as from name.
v0.37.00 26-Dec-2002 - 14-Jan-2003

11
TODO
View File

@ -13,10 +13,6 @@ $Id$
N = Normal, second priority.
L = Cosmetic or nice to have.
general:
N: Add the default root domain DNS lookup if no DNS info is available
in the nodelist. Setting per zone.
libdiesel.a:
U: Processed stringlines containing unbalanced " characters are not
processed, instead the previous macro value will be returned.
@ -43,7 +39,6 @@ mbsebbs:
N: If a new mailcheck takes longer then the idle timeout, the user is
disconnected as soon as the mailcheck is ready.
N: In mail areas for only Alias names, the normal usernames show up.
mbfido:
U: Code cleanup and make a structure in this program. Remove duplicate
@ -52,10 +47,6 @@ mbfido:
N: Remove memory leak during toss. (It's ok for less 5000 messages for
each run).
N: When a news article is received from a mailinglist there is a valid
To: address in the message, the gate doesn't see that and uses the
name to "All".
U: GoldED netmail from points, FMPT kludge is missing.
U: GoldED messages to internet becomes null.
@ -97,8 +88,6 @@ mbfido:
N: Send notifications to downlinks about changed areas from uplink.
N: Better areamgr message split.
mbcico:
N: Implement MD5 crypt in binkp protocol driver.

View File

@ -267,6 +267,16 @@ void A_List(faddr *t, char *replyid, int Notify)
fgetpos(fi,&fileptr2);
SubTot++;
Total++;
/*
* Panic message split
*/
if (((ftell(qp) - msgptr) / 1024) >= CFG.new_force) {
MacroVars("Z","d",1);
Syslog('-', " Forced splitting message at %ld bytes", ftell(qp) - msgptr);
CloseMail(qp, t);
qp = SendMgrMail(t, CFG.ct_KeepMgr, FALSE, (char *)"Areamgr", subject, replyid);
msgptr = ftell(qp);
}
}
} else
fseek(mp, msgshdr.syssize, SEEK_CUR);

View File

@ -252,6 +252,16 @@ void F_List(faddr *t, char *replyid, int Notify)
fgetpos(fi,&fileptr2);
SubTot++;
Total++;
/*
* Panic message split
*/
if (((ftell(qp) - msgptr) / 1024) >= CFG.new_force) {
MacroVars("Z","d",1);
Syslog('-', " Forced splitting message at %ld bytes", ftell(qp) - msgptr);
CloseMail(qp, t);
qp = SendMgrMail(t, CFG.ct_KeepMgr, FALSE, (char *)"Filemgr", subject, replyid);
msgptr = ftell(qp);
}
}
} else
fseek(fp, tichdr.syssize, SEEK_CUR);

View File

@ -1272,7 +1272,28 @@ void Reply_Msg(int IsReply)
strncpy(Msg.ReplyAddr, replyaddr, 80);
/* From : */
strncpy(Msg.From, exitinfo.sUserName, 100);
if (Alias_Option()) {
/*
* Set handle
*/
strcpy(Msg.From, exitinfo.sHandle);
tlcap(Msg.From); // Do we want this???
} else {
if (msgs.Type == NEWS) {
if (CFG.EmailMode != E_PRMISP) {
/*
* If no inernet mail domain, use fidonet addressing
*/
strcpy(Msg.From, exitinfo.sUserName);
tlcap(Msg.From);
} else {
sprintf(Msg.From, "%s@%s (%s)", exitinfo.Name, CFG.sysdomain, exitinfo.sUserName);
}
} else {
strncpy(Msg.From, exitinfo.sUserName, 100);
tlcap(Msg.From);
}
}
pout(YELLOW, BLACK, (char *) Language(209));
pout(CFG.MsgInputColourF, CFG.MsgInputColourB, Msg.From);
Enter(1);