Vacation Manager

The vacation manager is a procmail recipie that allows users to control their autoresponders through email. It's currently at version 0.3b. Here's a link to the latest version:

vacation_manager_03b.txt

Here's some notes from the top of the file:


# PROCMAIL VACATION MANAGER 0.3b [Feb 14, 2008]
#
# Email-based vacation autoresponder system
#
#   Written by James Cetrangelo  (noob)
#   based on an idea from Tony Lawrence (http://aplawrence.com)
#
# This code is free to distribute, change, publish, or sell.  Just keep
# my name & email somewhere in the comments, and this paragraph intact.
# If you like it, hate it, or make improvements, please let me know.
# Use at your own risk.  I'm not responsible if your mail gets eaten.
#
# Check http://www.blackfeathermedia.com for updates.
#
# NOTES:
# Change variables on top to suit your system.  The recipies are not 100%
# portable since it uses 'test -e' to check for existance of files.  This
# can probably be optimized and cleaned up by someone with more experience.
# Needless to say, it's not for fellow noobs.  You should know what you're
# doing before you let my rogue code near your email.  It could also use a 
# more substantial spam filter to prevent autoreplies to address farmers.
# I know some of my shell calls can be optomised to use internal procmail
# functions.  A good resource: http://pm-doc.sourceforge.net/pm-tips.html
#
# INSTALLATION:
#   - Change variables at top to match your system settings
#   - Rename to .procmailrc and add to your home directory
#   - Do NOT create 'vacation_message.txt' or header files
#       (required files will be created or deleted when needed)
# 
# USAGE:
#   - Send an email to yourself with 'Vacation On' in the subject.  The body
#       of this message will become your outgoing message.
#   - The system will save that message to local files, and email you back
#       with a random verification code.
#   - Reply to that confirmation message to enable the vacation autoresponder.
#   - Any incoming email will recieve your outgoing message as a reply.
#       This should exclude obvious spam (if Spam-Asassin is running) and
#       repeat messages (one reply per email address)
#   - Disable the autoresponder by sending an email to yourself with 
#       'Vacation Off' in the subject line.  It can also be disabled by
#       simply deleting the 'vacation_*.txt' files created.
#
# CHANGELOG:
#   v0.1b	First version, user-unfriendly
#
#   v0.2b	Initial release.  Generalized variables and added notes
#
#   v0.3b	Fixed bug that prevented some users from confirming the
#		verification code.  A stray "^" was removed. (thanks Jason!)