cornerhost wiki   AutoResponders UserPreferences
 
HelpContents FindPage Diffs Info Edit Subscribe XML Print View

How to create an Autoresponder (or vacation message)

You can create an Autoresponder with the following .procmailrc file.

Note that the mail still goes into your mailbox.

# shell is required for formail to work
SHELL=/bin/bash

# replace this with your address
# you also have to replace it in the ^TO line, below :(
AUTOREPLY_TO=username@example.org

:0hc
* ^TOusername@example.org
* !^FROM_DAEMON
* !^FROM_MAILER
* !^Precedence: list
* !^X-Loop: $AUTOREPLY_TO
| (formail -rt -A"Precedence: junk (autoreply)"\
               -A"X-Loop: $AUTOREPLY_TO" \
               -A"From: $AUTOREPLY_TO"; \
   cat $HOME/.autoreply ) | $SENDMAIL -t

Make sure to upload your .procmail file in ASCII mode if you use FTP

see also:

man vacation

PythonPowered