From 584ed1329aa3ab81e8e68b4ef2f17db0ae34308e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Fonseca?= Date: Wed, 8 Feb 2006 23:45:22 +0000 Subject: Tips for adding missing Date: headers in messages for local delivery (Bruce Schultz). --- README | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'README') diff --git a/README b/README index 8bb8796..f85aea3 100644 --- a/README +++ b/README @@ -134,7 +134,24 @@ Interfacing to Mail Delivery Agents mda="/usr/bin/procmail -d %T" ----------------------------- + If the mail message doesn't have a Date: header, such as those generated by + vixie-cron, neither <> or <> will add one for you. A simple + hack is to pipe the message through the <> program (also part of the + <> distribution), such as: +------------------------------------------------------------ +mda='/usr/bin/formail -a "Date: `date -R`" | /usr/bin/procmail -d %T' +------------------------------------------------------------ + + Or, alternatively, add the following rule to your <<<.procmailrc>>>: + +---------------------------------------------- +:0fw +* ! ^Date: +| formail -a "Date: `date -R`" +------------------------------ + + Interfacing with other mail applications ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- cgit v1.2.3-2-g168b