summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9b88876)
listing at the first new message (failing that, at the first message
as before)
SCCS-vsn: usr.bin/mail/lex.c 1.6
* Lexical processing of commands.
*/
* Lexical processing of commands.
*/
-static char *SccsId = "@(#)lex.c 1.5 %G%";
+static char *SccsId = "@(#)lex.c 1.6 %G%";
/*
* Set up editing on the given file name.
/*
* Set up editing on the given file name.
extern char *version;
register struct message *mp;
extern char *version;
register struct message *mp;
+ for (mp = &message[0]; mp < &message[msgCount]; mp++)
+ if (mp->m_flag & MNEW)
+ break;
+ if (mp < &message[msgCount])
+ vec[0] = mp - &message[0] + 1;
+ else
+ vec[0] = 1;
vec[1] = 0;
if (pr && value("quiet") == NOSTR)
printf(greeting, version);
vec[1] = 0;
if (pr && value("quiet") == NOSTR)
printf(greeting, version);