return w;
}
+/* Find a filename for the message according to the algorithm
+ * documented in the maildir(5) manual page from qmail
+ * (http://www.qmail.org/qmail-manual-html/man5/maildir.html).
+ */
static void
get_filename(char *fn)
{
}
}
+/* Strip the non-RFC2822-compliant 'From ' line some busted-ass
+ * mailers (such as Postfix) add as the first line of input. This bit
+ * of historical gunk originated with Berkeley mbox files, which use
+ * this line to indicate the beginning of a message. Postfix should
+ * only add such a line when it is acting as an MDA and delivering to
+ * a Berkeley mbox; the data written to an external MDA should be the
+ * raw RFC2822 message. >sigh<
+ */
/* buf is passed only as an (early, evil) space optimization). */
static void
strip_from(int fd, char *buf, char *fn)
}
}
+/* Copy the message from stdin to fd. */
/* buf is passed only as an (early, evil) space optimization). */
static void
copy_message(int fd, char *buf, char *fn)