summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
Diffstat (limited to 'README')
-rw-r--r--README17
1 files changed, 17 insertions, 0 deletions
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 <<esmtp>> or <<procmail>> will add one for you. A simple
+ hack is to pipe the message through the <<formail>> program (also part of the
+ <<procmail>> 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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~