diff options
author | Stef Walter <stef@memberwebs.com> | 2004-10-18 22:54:51 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2004-10-18 22:54:51 +0000 |
commit | 8ffd57b3fe8fb56d77dde340af147255ce73ad1c (patch) | |
tree | 7b01b3934b77a648dd9bc3a1fdf86b4afd8d52a2 /scripts/add_header.sh | |
parent | 456d7cc777068bc31a529d6b05ceeb1826b9fece (diff) |
Added sample scripts.
Diffstat (limited to 'scripts/add_header.sh')
-rw-r--r-- | scripts/add_header.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/scripts/add_header.sh b/scripts/add_header.sh new file mode 100644 index 0000000..9a9af75 --- /dev/null +++ b/scripts/add_header.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +################################################################################ +# PROXSMTP SAMPLE SCRIPT +# +# These sample scripts are to give you an idea of how to use proxsmtp +# filtering. They are NOT intended for use on production servers. +# +# A simple proxsmtp script which replaces the subject line with one +# containing the senders email address. Uses the 'formail' command +# that comes with the 'procmail' package. +# +# Make sure the option 'FilterType' is set as follows: +# FilterType: pipe +# +# See proxsmtpd.conf(5) for configuration details +# + +# Pipe the email through this command +formail -i "Subject: Changed subject from $SENDER ..." + +# Filter success +exit 0
\ No newline at end of file |