Lines Matching full:mbox
85 execl(LIBEXEC_PATH "/dma-mbox-create", "dma-mbox-create", name, (char *)NULL); in create_mbox()
86 syslog(LOG_ERR, "cannot execute "LIBEXEC_PATH"/dma-mbox-create: %m"); in create_mbox()
98 syslog(LOG_ERR, "hung child while creating mbox `%s': %m", name); in create_mbox()
103 syslog(LOG_ERR, "child disappeared while creating mbox `%s': %m", name); in create_mbox()
108 syslog(LOG_ERR, "error creating mbox `%s'", name); in create_mbox()
118 syslog(LOG_ERR, "error creating mbox"); in create_mbox()
136 int mbox; in deliver_local() local
153 mbox = open_locked(fn, O_WRONLY|O_APPEND); in deliver_local()
154 if (mbox < 0) { in deliver_local()
164 * Call dma-mbox-create to create it and fix permissions. in deliver_local()
185 mboxlen = lseek(mbox, 0, SEEK_END); in deliver_local()
187 /* New mails start with \nFrom ...., unless we're at the beginning of the mbox */ in deliver_local()
206 if (write(mbox, line, error) != error) in deliver_local()
225 * - strict mbox processing only requires escaping after empty lines, in deliver_local()
233 if (write(mbox, gt, 1) != 1) in deliver_local()
241 if ((size_t)write(mbox, line, linelen) != linelen) in deliver_local()
244 close(mbox); in deliver_local()
251 if (ftruncate(mbox, mboxlen) != 0) in deliver_local()
252 syslog(LOG_WARNING, "error recovering mbox `%s': %m", fn); in deliver_local()
254 close(mbox); in deliver_local()