-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, May 29, 2003 at 06:55:25AM -0500, Jamie Lawrence wrote:
> At times, yes. Although I don't know what dotfile is doing. Can you 
> post the filter generated?

Sure.

### Recipe number 2
### Name: Kill off unsubscribes
RECIPE = "
- ----------------------------------------------------------------------
Kill off unsubscribes
- ----------------------------------------------------------------------
"
:0H
* ^subject: *$unsubscribe^
{
        ### Backup delivered mail
        :0cw
        {
                ### test if the directory exists
                FILE = backup/backup-delivered-`/bin/date +%Y`-`/bin/date +%B`
                FILE = `/bin/echo $FILE | /bin/sed -e 'y/ /_/'`
                DIR = `/usr/bin/dirname $FILE`
                :0 icw
                * !? test -d $DIR
                | /usr/share/dotfile/english/procmail/mkdirhier $DIR

                :0hf
                | /usr/bin/formail -i 'X-deliveredBy:Kill off unsubscribes'
                :0:
                | /bin/gzip >> $FILE.gz
        }
        ### Reply to mail
        :0c
        * !^FROM_DAEMON
        * !^X-Loop: [EMAIL PROTECTED]
        |(/usr/bin/formail -rA"Precedence: junk"\
        -A"X-Loop: [EMAIL PROTECTED]";\
        /bin/echo "If you're having problems unsubsribing from a debian mailing 
list.";\
        /bin/echo "First step:  keep a record of what you've attempted and what is or 
is";\
        /bin/echo "not working.";\
        /bin/echo "";\
        /bin/echo "Note that I'm just another list member, not an official member of";\
        /bin/echo "Debian.org.  This message does not reflect any official viewpoint 
or";\
        /bin/echo "policy of Debian or Software in the Public Interest.";\
        /bin/echo "";\
        /bin/echo "";\
        /bin/echo "  - *READ THE FOOTER*  There are simple unsubscription instructions 
on";\
        /bin/echo "    every mail that gets sent to the list.  Follow these 
directions.";\
        /bin/echo "    Note that if your email address or delivery has changed, this 
may";\
        /bin/echo "    not work.  Most lists have a similar informational message.";\
        /bin/echo "";\
        /bin/echo "  - *IF THIS DOESN'T WORK*:  Go to the online list unsubscription 
page";\
        /bin/echo "    at http://www.debian.org/MailingLists/unsubscribe  Check off 
the";\
        /bin/echo "    lists you want to unsubscribe from, AND supply your email 
address.";\
        /bin/echo "    You will be sent a confirmation email (this protects you from 
being";\
        /bin/echo "    unsubscribed, against your will, by a third party).";\
        /bin/echo "";\
        /bin/echo "  - If you are still receiving list mail, send a message to";\
        /bin/echo "    [EMAIL PROTECTED]  Note that Debian is a volunteer";\
        /bin/echo "    organization, and it can take a while for your mail to be 
responded";\
        /bin/echo "    to.  Allow a day or two.  There have been historic issues 
with";\
        /bin/echo "    people not getting appropriate response in a short period, 
please";\
        /bin/echo "    bear with us.";\
        /bin/echo "";\
        /bin/echo "  - If you're still receiving list mail, escalate with a mail to";\
        /bin/echo "    [EMAIL PROTECTED]  This will reach the current Debian Leader.";\
        /bin/echo "";\
        /bin/echo "";\
        /bin/echo "";\
        /bin/echo "If  *** ALL ***  of these attempts are unsuccessful, send a post 
to";\
        /bin/echo "the mailing list with the following information.  This may not 
get";\
        /bin/echo "you unsubscribed (assume the listmaster is not subscribed to the";\
        /bin/echo "list in question), but it may give other people information which 
can";\
        /bin/echo "be helpful in identifying your problem:";\
        /bin/echo "";\
        /bin/echo "  - Steps you've taken to unsubscribe.  There are far too many";\
        /bin/echo "    unsubscribe posts sent to list by those who simply fail to 
read";\
        /bin/echo "    instructions.  These tend to be poorly received by regulars (if 
not";\
        /bin/echo "    simply automatically deleted).";\
        /bin/echo "";\
        /bin/echo "  - Responses, messages, error output, or anything else you've";\
        /bin/echo "    received in response to your attempts to unsubscribe.";\
        /bin/echo "";\
        /bin/echo "  - Email headers from your list mail.  There's a chance you're";\
        /bin/echo "    getting mail forwarded from an old address, that your mail is";\
        /bin/echo "    being rewritten by your ISP's or company's email system, or 
that";\
        /bin/echo "    you're being sent mail by way of a relay operated by a third";\
        /bin/echo "    party.";\
        /bin/echo "";\
        /bin/echo "    IN THIS LAST CASE, THERE IS NOTHING ANYONE AT DEBIAN.ORG";\
        /bin/echo "    CAN DO TO HELP YOU.  You will have to take up the issue with 
the";\
        /bin/echo "    third-party relay, or block mail from this source to your 
address.";\
        /bin/echo "";\
        /bin/echo "    A sample of email headers are included at the end of this 
message.";\
        /bin/echo "";\
        /bin/echo "";\
        /bin/echo "";\
        /bin/echo "Some additional considerations as you try to get unsubscribed:";\
        /bin/echo "";\
        /bin/echo "  - As stated, Debian's a volunteer organization.  It tends to 
work";\
        /bin/echo "    well, though some things are occasionally slow.  List";\
        /bin/echo "    unsubscriptions have been a noted issue over the years.  This 
mail";\
        /bin/echo "    is one attempt to clarify the issue.";\
        /bin/echo "";\
        /bin/echo "  - Try to get yourself unsubscribed following directions 
*first*.";\
        /bin/echo "    There's little anyone on list can do other than give advice, 
and";\
        /bin/echo "    most of that advice is in this email.";\
        /bin/echo "";\
        /bin/echo "  - Provide relevant information if you're posting to list.";\
        /bin/echo "";\
        /bin/echo "  - Behave professionally.  The importance of this cannot be 
overstated.";\
        /bin/echo "    At the very least, expect to find yourself permanently banned 
from";\
        /bin/echo "    the list you're abusive to, if not others.  Past episodes of 
abusive";\
        /bin/echo "    or outrageous behavior have resulted in censure by ISP, loss of 
ISP";\
        /bin/echo "    accounts, loss of jobs, academic discipline (in the case of";\
        /bin/echo "    university accounts), etc.  One notorious example includes a";\
        /bin/echo "    Psychology PhD. formerly engaged in research at Princeton";\
        /bin/echo "    University.  His outburst resulted in email notifications to 
the";\
        /bin/echo "    Princeton's IT staff, his boss, the University President, and 
former";\
        /bin/echo "    colleagues.";\
        /bin/echo "";\
        /bin/echo "    Similarly, threatening lawsuits, DMCA takedown requests, and 
other";\
        /bin/echo "    legal maneuvers are likely to result in your email address 
being";\
        /bin/echo "    added to ban lists on other email lists.";\
        /bin/echo "";\
        /bin/echo "    An additional note on DMCA takedowns:  you can add the";\
        /bin/echo "    "'"'"X-No-Archive: Yes"'"'" header to your email to prevent it 
from being";\
        /bin/echo "    included in (many) Net archives.  Of course, those who feel 
that";\
        /bin/echo "    participation in a mailing list inherently dictates that the";\
        /bin/echo "    participation be public can add a filter rule to delete posts 
with";\
        /bin/echo "    such headers from their mailboxes.  This is a quid pro quo 
exchange,";\
        /bin/echo "    and insisting on privacy in an inherently public exchange is 
a";\
        /bin/echo "    violation of norms to some.  The header is also no protection";\
        /bin/echo "    against your post, email address, etc., from being quoted in";\
        /bin/echo "    responses.";\
        /bin/echo "";\
        /bin/echo "    Most Internet groups are small, essentially volunteer 
organizations,";\
        /bin/echo "    with few resources against a fight.  It's far easier to avoid 
the";\
        /bin/echo "    issue by barring participation from those who demonstrate 
they";\
        /bin/echo "    cannot participate reasonably.";\
        /bin/echo "";\
        /bin/echo "    Note that the Internet has a memory that's both wide and deep.  
In";\
        /bin/echo "    its own way, it's a very karmic place.";\
        /bin/echo "";\
        /bin/echo "";\
        /bin/echo "";\
        /bin/echo "Email headers will look something like the following.";\
        /bin/echo "";\
        /bin/echo "Refer to your email software documentation for how you can display 
and";\
        /bin/echo "save headers.  The sample below shows that my system";\
        /bin/echo "(ganymede.tranquility.lan) received mail from localhost, via";\
        /bin/echo "netcom.com's POP server, from debian.org, originally from 
cwctv.net.";\
        /bin/echo "Given that this is how I'd expect my mail to receive, it matches";\
        /bin/echo "expectations.  Note also that the headers include several 
"'"'"List-*:"'"'"";\
        /bin/echo "lines with information on the list and unsubscribing.";\
        /bin/echo "";\
        /bin/echo "    Received: from mail by ganymede.tranquillity.lan with 
spam-scanned";\
        /bin/echo "            (Exim 3.36 #1 (Debian)) id 19JddZ-0005ms-00";\
        /bin/echo "            for <[EMAIL PROTECTED]>; Sat, 24 May 2003 19:21:00 
+0100";\
        /bin/echo "    Received: from localhost ([127.0.0.1])";\
        /bin/echo "            by ganymede.tranquillity.lan with esmtp (Exim 3.36 #1 
(Debian))";\
        /bin/echo "            id 19JddV-0005mc-01";\
        /bin/echo "            for <[EMAIL PROTECTED]>; Sat, 24 May 2003 19:20:54 
+0100";\
        /bin/echo "    Status: U";\
        /bin/echo "    Received: from popd.ix.netcom.com [207.217.120.161]";\
        /bin/echo "            by localhost with POP3 (fetchmail-5.9.11)";\
        /bin/echo "            for [EMAIL PROTECTED] (single-drop); Sat, 24 May 2003 
19:20:53 +0100";\
        /bin/echo "    (BST)";\
        /bin/echo "    Received: from murphy.debian.org ([146.82.138.6])";\
        /bin/echo "            by killdeer (EarthLink SMTP Server) with ESMTP id 
19jDzmwC3NZFlr0";\
        /bin/echo "            for <[EMAIL PROTECTED]>; Sat, 24 May 2003 11:16:36 
-0700 (PDT)";\
        /bin/echo "    Received: from localhost (localhost [127.0.0.1])";\
        /bin/echo "            by murphy.debian.org (Postfix) with QMQP";\
        /bin/echo "            id 94FDD1F68E; Sat, 24 May 2003 13:15:27 -0500 (CDT)";\
        /bin/echo "    Old-Return-Path: <[EMAIL PROTECTED]>";\
        /bin/echo "    Received: from smtp.cwctv.net (smtp-outbound.cwctv.net 
[213.104.18.10])";\
        /bin/echo "            by murphy.debian.org (Postfix) with ESMTP id 
218F01F4B8";\
        /bin/echo "            for <[EMAIL PROTECTED]>; Sat, 24 May 2003 12:56:48 
-0500";\
        /bin/echo "            (CDT)";\
        /bin/echo "    Received: from cwctv.net ([172.16.33.42]) by smtp.cwctv.net  
with Microsoft";\
        /bin/echo "    SMTPSVC(5.5.1877.447.44);";\
        /bin/echo "             Sat, 24 May 2003 18:57:19 +0100";\
        /bin/echo "    From: [EMAIL PROTECTED]";\
        /bin/echo "    To: [EMAIL PROTECTED]";\
        /bin/echo "    Date: Sat, 24 May 2003 18:56:47 +0100";\
        /bin/echo "    Subject: Resistance Is Futile.";\
        /bin/echo "    MIME-Version: 1.0";\
        /bin/echo "    X-Mailer: Liberate TVMail 2.6";\
        /bin/echo "    Content-Type: text/plain; charset=us-ascii";\
        /bin/echo "    Message-ID: <[EMAIL PROTECTED]>";\
        /bin/echo "    Resent-Message-ID: <[EMAIL PROTECTED]>";\
        /bin/echo "    Resent-From: [EMAIL PROTECTED]";\
        /bin/echo "    X-Mailing-List: <[EMAIL PROTECTED]> archive/latest/281359";\
        /bin/echo "    X-Loop: [EMAIL PROTECTED]";\
        /bin/echo "    List-Post: <mailto:[EMAIL PROTECTED]>";\
        /bin/echo "    List-Help: <mailto:[EMAIL PROTECTED]>";\
        /bin/echo "    List-Subscribe:";\
        /bin/echo "+<mailto:[EMAIL PROTECTED]>";\
        /bin/echo "    List-Unsubscribe:";\
        /bin/echo "    <mailto:[EMAIL PROTECTED]>";\
        /bin/echo "    Precedence: list";\
        /bin/echo "    Resent-Sender: [EMAIL PROTECTED]";\
        /bin/echo "    Resent-Date: Sat, 24 May 2003 13:15:27 -0500 (CDT)";\
        /bin/echo "    Resent-Bcc:";\
        /bin/echo "";\
        /bin/echo "Thank you.";\
        /bin/echo "";\
        /bin/echo "";\
        ) | $SENDMAIL -oi -t

        ### Now stop this action.
        :0i
        | /bin/false
}

> A useful method of finding out what is going on is to add
> 
> LOGFILE=$MAILDIR/.procmaillog
> VERBOSE=on
> 
> to the top of your .procmailrc. Expect the file to grow quickly, 
> especially if you're on debian-user...

I leave it like this anyway.  During the time procmail was
segfaulting, nothing was getting added here, so I thought I just
wasn't getting any email.  After this was the case for ~14 hours, I
realised that something was wrong and disabled that rule.

- -- 
 .''`.     Baloo Ursidae <[EMAIL PROTECTED]>
: :'  :    proud Debian admin and user
`. `'`
  `-  Debian - when you have better things to do than fix a system
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE+1e+AJ5vLSqVpK2kRAjxrAJ9OIQv/j/ezpbX/tXbPtE1XzDcTEQCfeZ5J
AMnln3kwVXDqliTJHO+CaPY=
=NNlf
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to