static void print_help(void)
{
printf(
-"Usage: deliver [-c <config file>] [-a <address>] [-d <username>] [-p <path>]\n"
-" [-f <envelope sender>] [-m <mailbox>] [-e] [-k]\n");
+"Usage: dovecot-lda [-c <config file>] [-a <address>] [-d <username>] [-p <path>]\n"
+" [-f <envelope sender>] [-m <mailbox>] [-e] [-k]\n");
}
int main(int argc, char *argv[])
enum mail_error error;
if (getuid() != geteuid() && geteuid() == 0) {
- /* running setuid - don't allow this if deliver is
+ /* running setuid - don't allow this if the binary is
executable by anyone */
struct stat st;
if (strcmp(mail->box->storage->name, MAILDIR_STORAGE_NAME) == 0)
src_mbox = (struct maildir_mailbox *)mail->box;
else if (strcmp(mail->box->storage->name, "raw") == 0) {
- /* deliver uses raw format */
+ /* lda uses raw format */
src_mbox = NULL;
} else {
/* Can't hard link files from the source storage */
do_hardlink, &do_ctx) < 0)
return -1;
} else {
- /* raw / deliver */
+ /* raw / lda */
if (mail_get_special(mail, MAIL_FETCH_UIDL_FILE_NAME,
&path) < 0 || *path == '\0')
return 0;
if (auser == NULL) {
/* ACLs disabled for this user */
} else if ((list->ns->flags & NAMESPACE_FLAG_INTERNAL) != 0) {
- /* no ACL checks for internal namespaces (deliver, shared) */
+ /* no ACL checks for internal namespaces (lda, shared) */
if (list->ns->type == NAMESPACE_SHARED)
acl_mailbox_list_init_shared(list);
} else {
if (auser == NULL) {
/* ACLs disabled for this user */
} else if ((storage->ns->flags & NAMESPACE_FLAG_INTERNAL) != 0) {
- /* no ACL checks for internal namespaces (deliver) */
+ /* no ACL checks for internal namespaces (lda) */
} else {
astorage = p_new(storage->pool, struct acl_mail_storage, 1);
astorage->module_ctx.super = storage->v;