[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Blocking 'unsubscribe'



on Sun, May 19, 2002, Michael C Alonzo (mikhz@pacific.net.ph) wrote:
> Good Day,
> 
> How do i block mails(through procmail) with a subject line of 'unsubcribe'?

To do something slightly more helpful (LART the user with some useful
information.  Define $SPAMBOX elsewhere to save or discard the messages:

------------------------------------------------------------------------
# un/subscribe messages to list, help.
:0
* -1^0
* 2^0 ^Subject:[ 	]*$
* 2^0 ^Subject:[ 	]*help$
* 2^0 ^Subject:[ 	]*URGENT$
* 2^0 ^Subject:[ 	]*(un)*subscribe$
* 2^0 ^Subject:[ 	]*Unidentified subject!
* 1^0 ^From:.*accts@tlmbangladesh.org
* 1^0 ^TO:.*\@lists.debian.org

{
    LOG="Administrative request on list mail"

    # Reply with a helpful suggestion unless a loop header's been found.
    :0c
	* !^$MY_XLOOP
	* !^X-Been-There:.*fsl.*@lists.alt.org
    | ( formail -rtk \
        -i "From: Karsten M. Self <kmself@ix.netcom.com>" \
	-i "X-Loop: kmself@ix.netcom.com" \
	-i "Bcc: karsten" ; \
	echo "This is an automatically generated message."; \
	echo ; \
	echo "You appear to be sending a subscription, unsubscription, "; \
	echo "\"help\" or \"URGENT\" message to a mailing list I'm" ; \
	echo "subscribed to.  I am not the list manager, just another"; \
	echo "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.  If you feel your matter is
	echo "urgent, consider that others may not agree, and would
	echo "probably prefer more information to form their own
	echo "conclusions rather than a gratuitous screech."; \
	echo ; \
	echo "Your original message has been discarded."; \
	echo ; \
	echo "Cheers."; \
	echo ; \
	echo "-- "; signify \
	) | $SENDMAIL -oi -t

    :0:
	$SPAMBOX
}

------------------------------------------------------------------------

-- 
Karsten M. Self <kmself@ix.netcom.com>        http://kmself.home.netcom.com/
 What Part of "Gestalt" don't you understand?
   zIWETHEY: Not just a stick in the MUD:  http://z.iwethey.org/forums/

Attachment: pgpsnV1AQf11N.pgp
Description: PGP signature


Reply to: