[comp.mail.elm] elm bug with displaying names

zeeff@b-tech.ann-arbor.mi.us (Jon Zeeff) (02/23/89)

It seems that if I receive mail with a From: line of: 

From: somewhere!b-tech.ann-arbor.mi.us!Jon_Zeeff

elm displays "b-tech.ann-arbor.m" on the screen which tells me 
nothing.  Since it only has 18 spaces, I'd much prefer 
"or.mi.us!Jon_Zeeff".  

It's an easy fix to take 18 from the end of the string.

Also, for rn users, it would be nice if 'v' did the same thing as 'h' 
currently does (in elm.c).  It's suprisingly hard to get used to 
different commands that do the same thing and v isn't being used.  

from screen.c

	/* now THIS is a frightening format statement!!!  */

	sprintf(buffer, "%s%s%c%-3d %3.3s %-2d %-18.18s (%d) %s%s", 
		(highlight && arrow_cursor)? "->" : "  ",
		show_status(entry->status),
		(entry->status & TAGGED?  '+' : ' '),
	        message_number,
	        entry->month, 
		atoi(entry->day), 
/* JZ */	(strlen(from) <= 18) ? from : from + strlen(from) - 18, 
		entry->lines, 
		(entry->lines / 1000   > 0? ""   :	/* spacing the  */
		  entry->lines / 100   > 0? " "  :	/* same for the */
		    entry->lines / 10  > 0? "  " :	/* lines in ()  */
		                            "   "),    /*   [wierd]    */
		subj);
}

-- 
  Jon Zeeff			zeeff@b-tech.ann-arbor.mi.us
  Ann Arbor, MI			mailrus!b-tech!zeeff