on Thu, Mar 07, 2002, Hans Ekbrand ([EMAIL PROTECTED]) wrote:
> On Thu, Mar 07, 2002 at 05:44:25AM -0800, Paul 'Baloo' Johnson wrote:
> > On Thu, 7 Mar 2002 [EMAIL PROTECTED] wrote:
> > 
> > > UNSUBSCRIBE [EMAIL PROTECTED]
> > 
> > To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> > 
> > 
> > -- 
> > Baloo
> 
> What about a procmail rule that auto-replied that off-list? I for one
> would happily use it :-)

Well, if we all did the same ;-)

I apply the following in my 'list rules' file, part of the spamfilter
procmail recipies.   Please note the use of X-Loop to prevent
autoresponder looping.  The variable MY_XLOOP is generated elsewhere in
my procmail recipies as my FQDN email address.

# Rule to handle "help", "subscribe", and "unsubscribe" posts to lists.
:0
* 1^0 ^Subject:[        ]*$
* 1^0 ^Subject:[        ]*help$
* 1^0 ^Subject:[        ]*(un)*subscribe$
{
    LOG="Administrative request on list mail"

    # Reply with a helpful suggestion unless a loop header's been found.
    :0c
        * !^$MY_XLOOP
    | ( formail -rtk -i "From: $OFFADDR" -i "$MY_XLOOP" ; \
        echo "This is an automatically generated message."; \
        echo ; \
        echo "You appear to be sending a subscription, unsubscription, or"; \
        echo "\"help\" message to a mailing list I'm subscribed to.  I am"; \
        echo "not the list manager, just another subscriber."; \
        echo ; \
        echo "For subscription issues, there's often information in the "; \
        echo "list mail itself.  Check the footer or email headers"; \
        echo "(methods for the latter vary by email client), of list mail"; \
        echo "(or of the quoted content of this message) and follow the "; \
        echo "procedures mentioned here, or contact the listed"; \
        echo "administrator."; \
        echo ; \
        echo "Failing that, try searching for a list management website"; \
        echo "for this list via Google (http://www.google.com/) or a"; \
        echo "similar search engine."; \
        echo ; \
        echo "If this still doesn't work, post a detailed description of"; \
        echo "your problem and methods attempted to unsubscribe, to the"; \
        echo "list."; \
        echo ; \
        echo "Note that mis-directed administrative mail to mailing lists"; \
        echo "is considered an annoyance by many (hence this response),"; \
        echo "but I also empathize with those who find themselves deluged"; \
        echo "with the spigot that is many high-traffic lists these days."; \
        echo ; \
        echo "If you're requesting help on a specific topic other than"; \
        echo "list subscription/unsubscription, please supply a more"; \
        echo "meaningful subject line."; \
        echo ; \
        echo "Your original message has been discarded."; \
        echo ; \
        echo "Cheers."; \
        echo ; \
        echo "-- "; cat $HOME/.signature \
        ) | $SENDMAIL -oi -t

    :0:
    $SPAMBOX
}

...though I should really test this on myself, no ;-)


-- 
Karsten M. Self <kmself@ix.netcom.com>    http://kmself.home.netcom.com/
 What part of "Gestalt" don't you understand?       There is no K5 cabal
  http://gestalt-system.sourceforge.net/         http://www.kuro5hin.org

Attachment: pgpTWdWuhe1BL.pgp
Description: PGP signature

Reply via email to