Home | History | Annotate | Download | only in mail

Lines Matching defs:mbox

177 		    "%s/mbox.XXXXXXXXXX", tmpdir);
260 * Save all of the undetermined messages at the top of "mbox"
273 const char *mbox;
301 * See if there any messages to save in mbox. If no, we
302 * can save copying mbox to /tmp and back.
305 * Delete all untouched messages to keep them out of mbox.
365 holdbit = autohold ? MPRESERVE : MBOX;
366 nohold = MBOX|MSAVED|MDELETED|MPRESERVE;
387 if (mp->m_flag & MBOX)
420 * Create another temporary file and copy user's mbox file
421 * darin. If there is no mbox, copy nothing.
426 mbox = expand("&");
450 if ((abuf = Fopen(mbox, "ref")) != NULL) {
464 if ((fd = creat(mbox, 0600)) != -1)
466 if ((obuf = Fopen(mbox, "ref+")) == NULL) {
467 warn("%s", mbox);
475 if ((obuf = Fopen(mbox, "aef")) == NULL) {
476 warn("%s", mbox);
484 if (mp->m_flag & MBOX)
486 warn("%s", mbox);
496 * Copy the user's old mbox contents back
516 warn("%s", mbox);
524 (void)printf("Saved 1 message in mbox\n");
526 (void)printf("Saved %d messages in mbox\n", mcount);