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

@@ -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