Searched refs:mail (Results 1 - 13 of 13) sorted by relevance

/ast/src/cmd/mailx/
H A Dquit.c70 * Mail -- a mail program.
96 filetemp(state.tmp.mail, sizeof(state.tmp.mail), 'M', 0);
160 note(PROMPT, "\"%s\" ", state.path.mail);
161 mhgetcontext(&mh, state.path.mail, 1);
165 sfprintf(state.path.temp, "%s/%d", state.path.mail, mp - state.msg.list + 1);
170 sfprintf(state.path.move, "%s/%d~", state.path.mail, mp - state.msg.list + 1);
187 mhputcontext(&mh, state.path.mail);
193 if (stat(state.path.mail, &st) >= 0 && st.st_size > state.mailsize) {
200 if (!(ibuf = fileopen(state.path.mail, "E
[all...]
H A Dlocal.c70 * Mail -- a mail program
85 * mail is queued).
88 mailbox(const char* user, const char* mail) argument
97 "/var/spool/mail",
98 "/usr/spool/mail",
99 "/usr/mail"
102 if (!user || !*user || !stat(mail, &st) && S_ISREG(st.st_mode))
103 return (char*)mail;
104 if (mail) {
105 if (imap_name(mail))
[all...]
H A Dlex.c70 * Mail -- a mail program
109 strncopy(state.path.prev, state.path.mail, sizeof(state.path.prev));
110 if (name != state.path.mail)
111 strncopy(state.path.mail, name, sizeof(state.path.mail));
125 * editing the folder, otherwise we are reading our mail which has
186 * New mail has arrived while we were reading up the mail file,
199 note(ERROR, "No mail for %s", who);
201 note(ERROR, "No mail", wh
[all...]
H A Dcollect.c70 * Mail -- a mail program
289 note(SYSTEM, "%s", state.tmp.mail);
379 rm(state.tmp.mail);
387 if (!(state.collect.fp = fileopen(state.tmp.mail, "Ew+")))
389 remove(state.tmp.mail);
558 if (e = mimeview(state.part.mime, "compose", state.tmp.mail, t, NiL)) {
566 t = state.tmp.mail;
579 if (t == state.tmp.mail)
622 * are in receiving mail mode. Does the
711 * Force a quit of sending mail
[all...]
H A Dmailx.h70 * Mail -- a mail program
128 #define APPEND_MAILBOX 1 /* New mail goes to end of mailbox */
160 #define MAILMODE (S_IRUSR|S_IWUSR) /* private mail file mode */
541 * collect() and mail() flags
715 char mail[PATHSIZE]; /* Name of current file */ member in struct:__anon136::__anon141
772 char mail[256]; member in struct:__anon136::__anon146
827 char* mail; member in struct:__anon136::__anon147
982 extern int mail(char*);
H A Dsend.c70 * Mail -- a mail program
302 if (!(nfo = fileopen(state.tmp.mail, "Ew")))
304 if (!(nfi = fileopen(state.tmp.mail, "Er"))) {
308 rm(state.tmp.mail);
314 if (filecopy("message body", lp->fp, state.tmp.mail, nfo, NiL, (off_t)0, NiL, NiL, 0)) {
329 * Save the outgoing mail on the passed file.
405 note(DEBUG, "mail to %s: \"%s\"", cmd ? "pipe" : "file", name);
461 * Collect user's mail from standard input.
509 note(DEBUG, "record mail in \"%s\"", s);
517 * Set up the temporary mail fil
[all...]
H A Ddata.c2 * Mail -- a mail program
107 X("[ arg ... ]\nThe arguments are listed after mail and shell file name expansion."),
143 X("\nAppend any new mail to the current mailbox."),
154 "m[ail]", CMD(mail), I|M|R|STRLIST, 0, 0,
306 "MAIL", &state.var.mail, E, "",set_mail,
308 "MAILCAP", &state.var.mailcap, E, "~/.mailcap:/usr/local/etc/mailcap:/usr/etc/mailcap:/etc/mailcap:/etc/mail/mailcap:/usr/public/lib/mailcap",set_mailcap,
335 X("Prompt for a Bcc: line on outgoing mail if not already specified."),
337 X("Prompt for a Cc: line on outgoing mail if not already specified."),
339 X("Prompt for this list of header names on outgoing mail if not already specified."),
341 X("Prompt for a Subject: line on outgoing mail i
[all...]
H A Dfio.c70 * Mail -- a mail program
107 * Set up the input pointers while copying the mail file into /tmp.
130 * the temp file that has the copy of the mail file.
132 * different from the offset into the mail file.
440 state.msg.inbox = state.var.inbox && (s = expand(state.var.inbox, 1)) && streq(s, state.path.mail);
516 sfprintf(state.path.temp, "%s/%d", state.path.mail, mp - state.msg.list + 1);
586 * % for my system mail box
587 * %user for user's system mail box
616 return mailbox(name, state.var.mail);
698 * For mail purpose
[all...]
H A Dimap.c1733 note(ERROR, "Held %d message%s in %s", n, n == 1 ? "" : "s", state.path.mail);
1735 note(ERROR, "No more messages in %s", state.path.mail);
1771 strncopy(state.path.prev, state.path.mail, sizeof(state.path.prev));
1772 if (name != state.path.mail)
1773 strncopy(state.path.mail, name, sizeof(state.path.mail));
1927 sfprintf(sfstdout, " name %s\n", state.path.mail);
H A Dcmd2.c70 * Mail -- a mail program
557 * Send mail to a bunch of user names.
560 mail(char* str) function
913 * Update the mail file with any new messages that have
914 * come in since we started reading mail.
948 note(0, "No new mail");
H A Dvars.c70 * Mail -- a mail program
487 * Trap mail variable assignment.
493 state.var.mail = varkeep(mailbox(state.var.user, value));
/ast/src/cmd/ksh93/sh/
H A Dmain.c488 register char *mail; local
499 if((mail=nv_getval(MAILPNOD)) || (mail=nv_getval(MAILNOD)))
504 chkmail(shp,mail);
/ast/src/cmd/at/
H A Datd.c116 int mail; member in struct:__anon36
793 int mail; local
834 if (mail = *s == AT_MAIL)
901 job->mail = mail;
1043 if (!job->mail)

Completed in 35 milliseconds