]> git.donarmstrong.com Git - bin.git/commitdiff
* Add more documentation to delay_mail
authorDon Armstrong <don@donarmstrong.com>
Mon, 24 Sep 2007 07:59:45 +0000 (07:59 +0000)
committerDon Armstrong <don@donarmstrong.com>
Mon, 24 Sep 2007 07:59:45 +0000 (07:59 +0000)
delay_mail

index d9443e2d6a0b18ff74660248af9b9bf26e8f7337..405e6954e90a955968288b5d9270042214bad3f8 100755 (executable)
@@ -41,7 +41,8 @@ Enqueue a message which should be sent out later
 
 =item B<--delay>
 
-Length of delay (man at for details of specification)
+Length of delay (man at for details of specification; Debian systems
+see /usr/share/doc/at/timespec)
 
 =item B<--email>
 
@@ -93,6 +94,25 @@ Display this manual.
 
 =head1 EXAMPLES
 
+The following entry in your procmailrc (or similar) will do the dirty
+work:
+
+ :0 Hhbw
+ * !Message-Id: .*delay[0-9]+@
+ * ^TO \/you\+de[^@]+
+ |delay_mail --mailto you@foo.com --enqueue --email --delay $MATCH
+
+ delay_mail --list;
+
+and
+
+ atq;
+
+will tell you that things are queued up and ready to go.
+
+You can then bounce messages that you want to deal with later to
+you+delay+10=30am_tomorrow@foo.com or similar, and you'll receive the
+message again at 10:30 AM tomorrow to deal with.
 
 =cut