(the preferred format): joe@some.where joe@some.where (some comment) joe@some.where (some comment) (some more comments) Depreciated, but allowed: <joe@some.where> <joe@some.where> some comment <joe@some.where> (some comment) Not allowed: (some comment) joe@some.where some comment <joe@some.where>The email address must be the first thing on the line, and must be separated from the comments by a space.
help.txt | Sent as a response to a help command, or if anything smartlist doesnt understand is sent to the listname-request address. |
subscribe.txt | Sent to new subscribers. |
unsubscribe.txt | Sent to someone who just unsubscribed. |
archive.txt | A description of how to use the archive server, and the commands it understands. |
---- Cut Here ---- SUBJ=`formail -zx Subject:` # extract the subject :0fw * ! ^Subject:.*\[listname\] * ! ^Subject:.Re: * | formail -I "Subject: [listname] $SUBJ" ---- End Here ----Be sure to replace "[listname]" with what you would like to be at the beginning of the subject line. (Posted to SmartList@Informatik.RWTH-Aachen.DE by Leigh Wolenczak
# # Adding a disclaimer in front of every mail: # :0 fhw | cat - header.txtYou will also need to create a file called header.txt, which contains the text to add to the message (this file can be empty though, so you can create the files, but only fill them in when you need to add something)
# # Appending a disclaimer to every outgoing mail: # :0 fbw | cat - footer.txtYou will also need to create a file called footer.txt, which contains the text to add to the message (this file can be empty though, so you can create the files, but only fill them in when you need to add something)
# # Appending a disclaimer to every outgoing mail: # :0 fbw * ! to unsubscribe | cat - footer.txtthen (assuming that the phrase "to unsubscribe" appears in your footer.txt file), the footer won't be repeated if some bozo list member quotes an entire message without trimming the footer. (Answer submitted by Doug Landauer)
# # Adding some custom headers (although it will work, this is not # needed for Reply-To related headers, see the reply_to variable in # rc.custom): # :0 fhw | formail -i "X-Subliminal-Message: SmartList is great" \ -I "X-Mailer: procmail, which is great too :-)"
# # To get rid of some headers: # :0 fhw | formail -I X-Mailing-List: -I X-Mailer:
# # To get rid of all X- fields: # :0 fhw | formail -I X-
#! /bin/sh : # # rc.dedup.list # # mdm 11/5/97 borrow code from David W. Tamkin, with additional # suggestions from Martin Konold and Hal Wine # # # This script will sort and remove duplicates from a Smartlist # distribution file. Smartlist dist files contain a comment line # that looks like this # # (Only addresses below this line can be automatically removed) # # Addresses above and including this line will not be sorted. # lockfile=lockfile # /usr/bin/lockfile cat=cat # /bin/cat rm=rm # /bin/rm sed=sed # /bin/sed # create lock file to discourage smartlist running a job $lockfile -10 -l3600 -r11 -s30 rc.lock $sed -e "1,/(Only addresses below this line can be automatically removed)/{ ;w slabove.$$ ;d; } " dist | sort -fu -o slbelow.$$ $cat sl?????.$$ > dist $rm -f sl?????.$$ $rm -rf rc.lock