* User commands.
*/
-static char *SccsId = "@(#)cmd1.c 2.2.1.1 %G%";
+static char *SccsId = "@(#)cmd1.c 2.9 %G%";
/*
* Print the current active headings.
if (mp->m_flag & MBOX)
dispc = 'M';
parse(headline, &hl, pbuf);
- sprintf(wcount, " %d/%d", mp->m_lines, mp->m_size);
+ sprintf(wcount, " %d/%ld", mp->m_lines, mp->m_size);
s = strlen(wcount);
cp = wcount + s;
while (s < 7)
}
/*
- * Type out the messages requested.
+ * Type out messages, honor ignored fields.
*/
+type(msgvec)
+ int *msgvec;
+{
+ return(type1(msgvec, 1));
+}
+
+/*
+ * Type out messages, even printing ignored fields.
+ */
+Type(msgvec)
+ int *msgvec;
+{
+
+ return(type1(msgvec, 0));
+}
+
+/*
+ * Type out the messages requested.
+ */
jmp_buf pipestop;
-type(msgvec)
+type1(msgvec, doign)
int *msgvec;
{
register *ip;
touch(mesg);
mp = &message[mesg-1];
dot = mp;
- print(mp, obuf);
+ print(mp, obuf, doign);
}
if (obuf != stdout) {
pipef = NULL;
* Print the indicated message on standard output.
*/
-print(mp, obuf)
+print(mp, obuf, doign)
register struct message *mp;
FILE *obuf;
{
if (value("quiet") == NOSTR)
fprintf(obuf, "Message %2d:\n", mp - &message[0] + 1);
touch(mp - &message[0] + 1);
- send(mp, obuf);
+ send(mp, obuf, doign);
}
/*
}
switch ((pid = fork())) {
case 0:
+ sigchild();
execlp("ls", "ls", dirname, 0);
clrbuf(stdout);
exit(1);