summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
ecedbe8)
SCCS-vsn: usr.bin/mail/lex.c 5.10
SCCS-vsn: usr.bin/mail/glob.h 5.5
SCCS-vsn: usr.bin/mail/main.c 5.8
* software without specific prior written permission. This software
* is provided ``as is'' without express or implied warranty.
*
* software without specific prior written permission. This software
* is provided ``as is'' without express or implied warranty.
*
- * @(#)glob.h 5.4 (Berkeley) %G%
+ * @(#)glob.h 5.5 (Berkeley) %G%
char *rflag; /* -r address for network */
char *Tflag; /* -T temp file for netnews */
char nosrc; /* Don't source /usr/lib/Mail.rc */
char *rflag; /* -r address for network */
char *Tflag; /* -T temp file for netnews */
char nosrc; /* Don't source /usr/lib/Mail.rc */
-char noheader; /* Suprress initial header listing */
int selfsent; /* User sent self something */
int senderr; /* An error while checking */
int edit; /* Indicates editing a file */
int selfsent; /* User sent self something */
int senderr; /* An error while checking */
int edit; /* Indicates editing a file */
-static char sccsid[] = "@(#)lex.c 5.9 (Berkeley) %G%";
+static char sccsid[] = "@(#)lex.c 5.10 (Berkeley) %G%";
#endif /* notdef */
#include "rcv.h"
#endif /* notdef */
#include "rcv.h"
* give the message count, and print a header listing.
*/
* give the message count, and print a header listing.
*/
-char *greeting = "Mail version %s. Type ? for help.\n";
-
announce(pr)
{
int vec[2], mdot;
extern char *version;
if (pr && value("quiet") == NOSTR)
announce(pr)
{
int vec[2], mdot;
extern char *version;
if (pr && value("quiet") == NOSTR)
- printf(greeting, version);
+ printf( "Mail version %s. Type ? for help.\n", version);
mdot = newfileinfo();
vec[0] = mdot;
vec[1] = 0;
dot = &message[mdot - 1];
mdot = newfileinfo();
vec[0] = mdot;
vec[1] = 0;
dot = &message[mdot - 1];
- if (msgCount > 0 && !noheader) {
+ if (msgCount > 0 && value("noheader") == NOSTR) {
inithdr++;
headers(vec);
inithdr = 0;
inithdr++;
headers(vec);
inithdr = 0;
#endif /* notdef */
#ifdef notdef
#endif /* notdef */
#ifdef notdef
-static char sccsid[] = "@(#)main.c 5.7 (Berkeley) %G%";
+static char sccsid[] = "@(#)main.c 5.8 (Berkeley) %G%";
#endif /* notdef */
#include "rcv.h"
#endif /* notdef */
#include "rcv.h"
* getopt() can't handle optional arguments, so here
* is an ugly hack to get around it.
*/
* getopt() can't handle optional arguments, so here
* is an ugly hack to get around it.
*/
- if ((argv[optind]) && (argv[optind][0] != '-'))
+ if ((argv[optind]) && (argv[optind][0] != '-'))
ef = argv[optind++];
else
ef = mbox;
ef = argv[optind++];
else
ef = mbox;
/*
* Avoid initial header printing.
*/
/*
* Avoid initial header printing.
*/
+ assign("noheader", "");
- for (i = optind; (argv[i]) && (*argv[i] != '-'); i++)
+ for (i = optind; (argv[i]) && (*argv[i] != '-'); i++)
to = cat(to, nalloc(argv[i]));
for (; argv[i]; i++)
smopts = cat(smopts, nalloc(argv[i]));
to = cat(to, nalloc(argv[i]));
for (; argv[i]; i++)
smopts = cat(smopts, nalloc(argv[i]));
fprintf(stderr, "No mail for %s\n", myname);
exit(1);
}
fprintf(stderr, "No mail for %s\n", myname);
exit(1);
}
- if (!noheader && value("noheader") == NOSTR) {
- if (setjmp(hdrjmp) == 0) {
- if ((prevint = signal(SIGINT, SIG_IGN)) != SIG_IGN)
- signal(SIGINT, hdrstop);
- announce(!0);
- fflush(stdout);
- signal(SIGINT, prevint);
- }
+ if (setjmp(hdrjmp) == 0) {
+ if ((prevint = signal(SIGINT, SIG_IGN)) != SIG_IGN)
+ signal(SIGINT, hdrstop);
+ announce(!0);
+ fflush(stdout);
+ signal(SIGINT, prevint);
}
if (!edit && msgCount == 0) {
printf("No mail\n");
}
if (!edit && msgCount == 0) {
printf("No mail\n");