Lines Matching full:mbox
58 * Save all of the undetermined messages at the top of "mbox"
70 char *mbox, tempname[PATHSIZE]; in quit() local
88 * See if there any messages to save in mbox. If no, we in quit()
89 * can save copying mbox to /tmp and back. in quit()
92 * Delete all untouched messages to keep them out of mbox. in quit()
134 holdbit = autohold ? MPRESERVE : MBOX; in quit()
135 nohold = MBOX|MSAVED|MDELETED|MPRESERVE; in quit()
156 if (mp->m_flag & MBOX) in quit()
187 * Create another temporary file and copy user's mbox file in quit()
188 * darin. If there is no mbox, copy nothing. in quit()
193 mbox = expand("&"); in quit()
212 if ((abuf = Fopen(mbox, "r")) != NULL) { in quit()
225 if ((fd = open(mbox, O_CREAT | O_TRUNC | O_WRONLY, 0600)) >= 0) in quit()
227 if ((obuf = Fopen(mbox, "r+")) == NULL) { in quit()
228 warn("%s", mbox); in quit()
235 if ((obuf = Fopen(mbox, "a")) == NULL) { in quit()
236 warn("%s", mbox); in quit()
243 if (mp->m_flag & MBOX) in quit()
245 warnx("%s", mbox); in quit()
253 * Copy the user's old mbox contents back in quit()
272 warn("%s", mbox); in quit()
279 printf("Saved 1 message in mbox\n"); in quit()
281 printf("Saved %d messages in mbox\n", mcount); in quit()
421 "%s/mbox.XXXXXXXXXX", tmpdir); in edstop()