Lines Matching refs:mailbox
1 /* $NetBSD: mailbox.c,v 1.3 2020/03/18 19:05:22 christos Exp $ */
5 /* mailbox 3
7 /* mailbox delivery
16 /* deliver_mailbox() delivers to UNIX-style mailbox or to maildir.
24 /* Attributes describing user rights and mailbox location.
80 /* deliver_mailbox_file - deliver to recipient mailbox */
103 dsb_simple(why, "2.0.0", "delivers to mailbox");
118 * Lock the mailbox and open/create the mailbox file.
125 mp = mbox_open(usr_attr.mailbox, O_APPEND | O_WRONLY | O_CREAT,
132 state.msg_attr.rcpt.address, usr_attr.mailbox);
137 "destination %s is not owned by recipient", usr_attr.mailbox);
138 msg_warn("specify \"%s = no\" to ignore mailbox ownership mismatch",
142 msg_fatal("%s: seek mailbox file %s: %m",
157 vstring_sprintf_prepend(why->reason, "delivery failed to mailbox %s: ",
158 usr_attr.mailbox);
165 dsb_simple(why, "2.0.0", "delivered to mailbox");
172 /* deliver_mailbox - deliver to recipient mailbox */
198 * Look up the mailbox location. Bounce if not found, defer in case of
215 usr_attr.mailbox = concatenate(var_virt_mailbox_base, "/",
218 #define RETURN(res) { myfree(usr_attr.mailbox); return (res); }
221 * Look up the mailbox owner rights. Defer in case of trouble.
244 * Look up the mailbox group rights. Defer in case of trouble.
268 myname, state.level, usr_attr.mailbox,
272 * Deliver to mailbox or to maildir.
276 if (LAST_CHAR(usr_attr.mailbox) == '/')