/*++ /* NAME /* maildir 3 /* SUMMARY /* delivery to maildir /* SYNOPSIS /* #include "virtual.h" /* /* int deliver_maildir(state, usr_attr) /* LOCAL_STATE state; /* USER_ATTR usr_attr; /* DESCRIPTION /* deliver_maildir() delivers a message to a qmail-style maildir. /* /* Arguments: /* .IP state /* The attributes that specify the message, recipient and more. /* .IP usr_attr /* Attributes describing user rights and environment information. /* DIAGNOSTICS /* deliver_maildir() always succeeds or it bounces the message. /* SEE ALSO /* bounce(3) /* LICENSE /* .ad /* .fi /* The Secure Mailer license must be distributed with this software. /* AUTHOR(S) /* Wietse Venema /* IBM T.J. Watson Research /* P.O. Box 704 /* Yorktown Heights, NY 10598, USA
/*--*/
/* *Themaildirlocationiscontrolledbythemailadministrator.If *deliveryfails,tryagainlater.Wewouldjustbouncewhenthemaildir *locationpossiblyunderusercontrol.
*/ if (mail_copy_status & MAIL_COPY_STAT_CORRUPT) {
deliver_status = DEL_STAT_DEFER;
} elseif (mail_copy_status != 0) { if (errno == EACCES) {
msg_warn("maildir access problem for UID/GID=%lu/%lu: %s",
(long) usr_attr.uid, (long) usr_attr.gid,
STR(why->reason));
msg_warn("perhaps you need to create the maildirs in advance");
}
vstring_sprintf_prepend(why->reason, "maildir delivery failed: ");
deliver_status =
(STR(why->status)[0] == '4' ?
defer_append : bounce_append)
(BOUNCE_FLAGS(state.request),
BOUNCE_ATTR(state.msg_attr));
} else {
dsb_simple(why, "2.0.0", "delivered to maildir");
deliver_status = sent(BOUNCE_FLAGS(state.request),
SENT_ATTR(state.msg_attr));
}
vstring_free(buf);
myfree(newdir);
myfree(tmpdir);
myfree(curdir);
myfree(tmpfile); if (newfile)
myfree(newfile); return (deliver_status);
}
Messung V0.5 in Prozent
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.0Bemerkung:
(vorverarbeitet am 2026-10-11)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.