Lines Matching refs:mbox
83 execl(LIBEXEC_PATH "/dma-mbox-create", "dma-mbox-create", name, NULL);
84 syslog(LOG_ERR, "cannot execute "LIBEXEC_PATH"/dma-mbox-create: %m");
96 syslog(LOG_ERR, "hung child while creating mbox `%s': %m", name);
101 syslog(LOG_ERR, "child disappeared while creating mbox `%s': %m", name);
106 syslog(LOG_ERR, "error creating mbox `%s'", name);
116 syslog(LOG_ERR, "error creating mbox");
134 int mbox;
151 mbox = open_locked(fn, O_WRONLY|O_APPEND);
152 if (mbox < 0) {
162 * Call dma-mbox-create to create it and fix permissions.
183 mboxlen = lseek(mbox, 0, SEEK_END);
185 /* New mails start with \nFrom ...., unless we're at the beginning of the mbox */
204 if (write(mbox, line, error) != error)
223 * - strict mbox processing only requires escaping after empty lines,
231 if (write(mbox, gt, 1) != 1)
239 if ((size_t)write(mbox, line, linelen) != linelen)
242 close(mbox);
249 if (ftruncate(mbox, mboxlen) != 0)
250 syslog(LOG_WARNING, "error recovering mbox `%s': %m", fn);
252 close(mbox);