nelson@sunrise.ece.clarkson.edu (Russ Nelson) (11/04/88)
The following two context diffs make two changes to mp. First, since it assumes that it's processing a Unix mailbox, I convinced it to restart header processing when it sees the "From ..." line. Second, if your mail file has a ^D in it, mp would happily pass it on to your PostScript interpreter, which would then flush the remainder of the job and display nothing. *** mp.c.orig Fri May 27 09:46:52 1988 --- mp.c Thu Nov 3 11:20:03 1988 *************** *** 142,148 **** } else maybe_more = 0 ; break ; ! case DOMESSAGE : textshow(nextline) ; } } endpage() ; --- 142,156 ---- } else maybe_more = 0 ; break ; ! case DOMESSAGE : if (EQUAL("From")) ! { ! linect = PAGELENGTH ; ! useline() ; ! boldshow(nextline) ; ! state = DOHEADER ; ! } ! else textshow(nextline) ; ! break ; } } endpage() ; *************** *** 224,229 **** --- 232,238 ---- PRINTF(" ") ; n = n + 8 - (n % 8) ; break ; + case '\004` : break; default : PRINTF("%c",s[i]) ; n++ ; } -- --russ (nelson@clutx [.bitnet | .clarkson.edu]) To surrender is to remain in the hands of barbarians for the rest of my life. To fight is to leave my bones exposed in the desert waste.