Lines Matching defs:mbox
55 * Save all of the undetermined messages at the top of "mbox"
71 char *mbox = Getf("MBOX");
82 * See if there any messages to save in mbox. If no, we
83 * can save copying mbox to /tmp and back.
86 * Delete all untouched messages to keep them out of mbox.
164 * Create another temporary file and copy user's mbox file
165 * therein. If there is no mbox, copy nothing.
184 if ((fbuf = fopen(mbox, "r")) != NULL) {
197 if ((fd = open(mbox, O_RDWR|O_CREAT|O_TRUNC, MBOXPERM)) < 0 ||
199 perror(mbox);
206 if ((fd = open(mbox, O_RDWR|O_CREAT, MBOXPERM)) < 0 ||
208 perror(mbox);
216 perror(mbox);
229 * Copy the user's old mbox contents back
248 perror(mbox);
254 printf(gettext("Saved 1 message in %s\n"), mbox);
256 printf(gettext("Saved %d messages in %s\n"), mcount, mbox);