setting_up_the_vacation_1_email_auto-responder_on_sdf
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
setting_up_the_vacation_1_email_auto-responder_on_sdf [2021/03/22 06:13] – created hc9 | setting_up_the_vacation_1_email_auto-responder_on_sdf [2021/03/22 06:33] (current) – [Misc:] hc9 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Setting up the vacation(1) email auto-responder on SDF: ===== | + | ====== Setting up the vacation(1) email auto-responder on SDF: ====== |
==== What: ==== | ==== What: ==== | ||
Line 12: | Line 12: | ||
==== How vacation(1) works: ==== | ==== How vacation(1) works: ==== | ||
- | The tool uses two files - "$HOME/ | + | The tool uses two files - '' |
=== Basic setup procedure: === | === Basic setup procedure: === | ||
- | * initialize the DB file; initialization creates the DB file if it doesn' | + | * initialize the DB file; initialization creates the DB file if it doesn' |
- | * create the auto-reply message. The message needs to be a routable email file with a header and body section. A "$SUBJECT" | + | * create the auto-reply message. The message needs to be a routable email file with a header and body section. A '' |
- | * edit the "$HOME/ | + | * edit the '' |
==== Some examples: ==== | ==== Some examples: ==== | ||
Line 25: | Line 25: | ||
< | < | ||
- | | + | % vacation -I # initialize DB; defaults to 30 days |
- | | + | % cat > $HOME/ |
- | From: sdf_user@sdf.org | + | From: sdf_user@sdf.org |
- | Subject: Vacation notice | + | Subject: Vacation notice |
- | Precedence: bulk | + | Precedence: bulk |
- | | + | I will be out of the office until next week. |
- | ^D | + | ^D |
- | | + | % cat > $HOME/ |
- | From frog@mud.bog | + | From frog@mud.bog |
- | To: sdf_user@sdf.org | + | To: sdf_user@sdf.org |
- | Subject: Hop on over here | + | Subject: Hop on over here |
- | | + | Check out my new pad! |
- | ^D | + | ^D |
- | | + | % vacation -d sdf_user < test.msg |
- | | + | |
- | To: frog@mud.bog | + | To: frog@mud.bog |
- | Auto-Submitted: | + | Auto-Submitted: |
- | From: sdf_user@sdf.org | + | From: sdf_user@sdf.org |
- | Subject: Vacation notice | + | Subject: Vacation notice |
- | Precedence: bulk | + | Precedence: bulk |
- | | + | |
- | note: if executed as-is more than once there won't be any output; use | + | note: if executed as-is more than once there won't be any output; use |
- | | + | |
- | | + | % cat > $HOME/ |
- | \sdf_user, " | + | \sdf_user, " |
- | ^D | + | ^D |
</ | </ | ||
Line 64: | Line 64: | ||
< | < | ||
- | | + | % vacation -I -t 2d # initialize DB; set timer to 2 days |
- | % cat > $HOME/ | + | % cat > $HOME/ |
- | From: sdf_user@sdf.org | + | From: sdf_user@sdf.org |
- | Subject: Out of the office | + | Subject: Out of the office |
- | Delivered-By: | + | Delivered-By: |
- | Precedence: bulk | + | Precedence: bulk |
- | | + | I will be out of the office until next week; please contact |
- | George about $SUBJECT if it's urgent. | + | George about $SUBJECT if it's urgent. |
- | ^D | + | ^D |
- | | + | % cat > $HOME/ |
- | From frog@mud.bog | + | From frog@mud.bog |
- | To: sdf_user@sdf.org | + | To: sdf_user@sdf.org |
- | Subject: the penski account | + | Subject: the penski account |
- | | + | Can you get this done this week? |
- | ^D | + | ^D |
- | | + | % vacation -d sdf_user < test2.msg |
- | | + | |
- | To: frog@mud.bog | + | To: frog@mud.bog |
- | Auto-Submitted: | + | Auto-Submitted: |
- | From: sdf_user@sdf.org | + | From: sdf_user@sdf.org |
- | Subject: Out of the office | + | Subject: Out of the office |
- | Delivered-By: | + | Delivered-By: |
- | Precedence: bulk | + | Precedence: bulk |
- | | + | |
- | George about the penski account if it's urgent. | + | George about the penski account if it's urgent. |
- | | + | % cat > $HOME/ |
- | \sdf_user, " | + | \sdf_user, " |
- | ^D | + | ^D |
</ | </ | ||
Line 109: | Line 109: | ||
- setup ssh(1) [[http:// | - setup ssh(1) [[http:// | ||
- on // | - on // | ||
- | | + | |
- | | + | |
- | To: frog@mud.bog | + | To: frog@mud.bog |
- | Auto-Submitted: | + | Auto-Submitted: |
- | From: sdf_user@ma.sdf.org | + | From: sdf_user@ma.sdf.org |
- | Subject: Vacation notice | + | Subject: Vacation notice |
- | Precedence: bulk | + | Precedence: bulk |
- | ... | + | ... |
+ | </ | ||
+ | - edit '' | ||
+ | # .forward | ||
+ | \sdf_user, "| ssh sdf_user@tty 'cat - | vacation sdf_user' | ||
</ | </ | ||
- | - edit " | ||
- | # .forward | ||
- | \sdf_user, "| ssh sdf_user@tty 'cat - | vacation sdf_user' | ||
=== ex.4) using vacation(1) with procmail(1): | === ex.4) using vacation(1) with procmail(1): | ||
- | Users of the procmail(1) program probably won't want to disable it just to make use of vacation(1). The following illustrates how to integrate vacation(1) into a typical user' | + | Users of the procmail(1) program probably won't want to disable it just to make use of vacation(1). The following illustrates how to integrate vacation(1) into a typical user' |
< | < | ||
- | | + | # ~sdf_user/ |
- | ... | + | ... |
- | ## selective vacation(1) auto-responder filter setup: | + | ## selective vacation(1) auto-responder filter setup: |
- | VACATION_SENDER=`formail -rx " | + | VACATION_SENDER=`formail -rx " |
- | VACATION_LIST=$HOME/ | + | VACATION_LIST=$HOME/ |
- | VACATION_MSG=$HOME/ | + | VACATION_MSG=$HOME/ |
- | VACATION_DB=$HOME/ | + | VACATION_DB=$HOME/ |
- | | + | ## Send vacation(1) notification if SENDER is in VACATION_LIST : |
- | :0 c # " | + | :0 c # " |
- | ## uncomment next line to do selective notifications | + | ## uncomment next line to do selective notifications |
- | #* ? egrep $VACATION_SENDER $VACATION_LIST | + | #* ? egrep $VACATION_SENDER $VACATION_LIST |
- | | / | + | | / |
</ | </ | ||
- | The "$HOME/ | + | The '' |
- | Note that "$HOME/ | + | Note that '' |
==== Misc: ==== | ==== Misc: ==== | ||
* There is a "pure procmail" | * There is a "pure procmail" | ||
- | * Passing the "'-F R'" | + | * Passing the '' |
- | * The "$HOME/ | + | * The '' |
- | % strings $HOME/ | + | % strings $HOME/ |
- | frog@mud.bog | + | frog@mud.bog |
- | itchy@bed.bug | + | itchy@bed.bug |
</ | </ | ||
setting_up_the_vacation_1_email_auto-responder_on_sdf.1616393619.txt.gz · Last modified: 2021/03/22 06:13 by hc9