Code cleanup in OLR

This commit is contained in:
Michiel Broek 2002-07-01 19:31:15 +00:00
parent 27a2222baa
commit 4347378fe8
6 changed files with 487 additions and 491 deletions

View File

@ -67,6 +67,7 @@ v0.35.02 22-Jun-2002
optional data to use handles or unix names.
The display lastcaller list now also supports the /U optional
data to display Unix names.
Code cleanup in offline reader.
mbtask:
When first run the goldnode command is only filled in if it

2
TODO
View File

@ -34,6 +34,8 @@ mbsebbs:
N: When a file is attached with netmail that doesn't exist the user
doesn't see an error message.
N: OLR, implement file requests.
mbfido:
U: Code cleanup and make a structure in this program. Remove duplicate
or similar functions.

View File

@ -637,7 +637,7 @@ int Save_Msg(int IsReply, faddr *Dest)
MsgText_Add2(Message[i]);
}
Add_Footkludges(TRUE);
Add_Footkludges(TRUE, NULL);
/*
* Save if to disk

View File

@ -244,7 +244,7 @@ void Add_Headkludges(faddr *dest, int IsReply)
* Add bottom message kludges. The flag Quote is false if this is called
* from Offline Reader, the user then may or may have not added a quote.
*/
void Add_Footkludges(int Quote)
void Add_Footkludges(int Quote, char *tear)
{
char *temp;
char *aka;
@ -276,7 +276,16 @@ void Add_Footkludges(int Quote)
MsgText_Add2(temp);
MsgText_Add2((char *)"");
}
MsgText_Add2(TearLine());
/*
* The offline reader may override the tearline
*/
if (tear == NULL) {
MsgText_Add2(TearLine());
} else {
sprintf(temp, "--- %s", tear);
MsgText_Add2(temp);
}
if ((msgs.Type == ECHOMAIL) || (msgs.Type == LIST)) {
/* RANDOM ORIGIN LINES IMPLEMENTEREN */

View File

@ -6,7 +6,7 @@ char *rfcdate(time_t); /* Create RFC style date */
int Open_Msgbase(char *, int); /* Open msgbase for read/write */
void Close_Msgbase(void); /* Close msgbase */
void Add_Headkludges(faddr *, int); /* Header part of kludges */
void Add_Footkludges(int); /* Footer part of kludges */
void Add_Footkludges(int, char *); /* Footer part of kludges */
void Sema_Mailout(void); /* Set mailout semafore */

File diff suppressed because it is too large Load Diff