Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.023 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'messages.': 0.05; 'subject:password': 0.05; 'references,': 0.09; 'subject:PyPI': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'thread': 0.14; 'constructs': 0.16; 'folder,': 0.16; 'from:addr:pobox.com': 0.16; 'from:addr:skip': 0.16; 'imap,': 0.16; 'letters.': 0.16; 'lists).': 0.16; 'lot!': 0.16; 'two.': 0.16; 'words.': 0.16; 'sender:addr:gmail.com': 0.17; 'wrote:': 0.18; 'connects': 0.19; '(in': 0.22; 'aug': 0.22; 'separate': 0.22; 'cc:addr:python.org': 0.22; 'skip': 0.24; 'cc:2**0': 0.24; 'posts': 0.26; 'certain': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'properties': 0.29; 'words': 0.29; 'label': 0.30; 'message-id:@mail.gmail.com': 0.30; 'facility': 0.31; 'guess': 0.33; 'could': 0.34; 'created': 0.35; 'something': 0.35; 'case,': 0.35; 'received:google.com': 0.35; 'add': 0.35; "i'll": 0.36; 'similar': 0.36; 'should': 0.36; 'list': 0.37; 'server': 0.38; 'checks': 0.38; 'filter': 0.38; 'little': 0.38; 'commands': 0.60; 'guy': 0.60; 'most': 0.60; 'lower': 0.61; 'new': 0.61; 'show': 0.63; 'more': 0.64; 'to:addr:gmail.com': 0.65; 'world': 0.66; 'believe': 0.68; '26,': 0.68; 'frequently': 0.68; 'prompt': 0.68; 'construction': 0.72; 'incoming': 0.72; 'day': 0.76; 'emails.': 0.78; 'listens': 0.84; 'instant': 0.97 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=/qVDk1MWX1QB1cOZMWpLDfvlUs6rApCq2yMmIcp3uLk=; b=FDfiq4kECKVLQQsm8L5ZWxwu8/yy4kCn2OjBOGAoYyxLWN6r2mP2LRqRKqxWDkMenj ZX5m+M10LMJPEr6pOMwXAGuz15FnJe8FHt59WX53GbLwKQp/u9GAIS1RbtGkiZdoz1GB hiFaLedy/YU+8lMAPkBtavQhtjDLMsE29QSSToSftfd8p7+RzKhT/LAkF6vtEVJnOw0h qrV/mKljs5D7X3BAcIsoiyO7ZbBfwcn2I5BnPG4GyDBeRgIiwplkxv35VGlvc++s6iXV e+u6Slp2bY5oo+mC8VxCD3z7KpynpGpsjJ9vnNQgbTHwMrZFnpm59JqbRKiRDEVETwp1 4dHQ== MIME-Version: 1.0 X-Received: by 10.42.67.133 with SMTP id t5mr14277905ici.62.1409149391823; Wed, 27 Aug 2014 07:23:11 -0700 (PDT) Sender: skip.montanaro@gmail.com In-Reply-To: References: Date: Wed, 27 Aug 2014 09:23:11 -0500 X-Google-Sender-Auth: C_2N8mlPMBCXYOOnLqgwO6i3DxU Subject: Re: PyPI password rules From: Skip Montanaro To: Chris Angelico Content-Type: text/plain; charset=UTF-8 Cc: "python-list@python.org" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1409149400 news.xs4all.nl 2978 [2001:888:2000:d::a6]:56834 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:77135 On Tue, Aug 26, 2014 at 11:05 AM, Skip Montanaro wrote: > I guess I could write a little program that listens to my incoming > email via IMAP. I'll have to see what that generates. Lots of Python > and bike references, no doubt. I should have something to show the world in a day or two. I have a program which (in a separate thread) connects to a mail server via IMAP, processes all the messages in the "polly" folder, and constructs a word list from the most frequently seen words. It checks every minute for new messages. I believe it classifies words using criteria similar to Chris's D&D Polly - all letters, all lower case, nothing < four letters. In the main thread you can enter commands like "password" to prompt Polly to generate a password and "bad" to mark one or more words as "bad". Gmail's label facility made the construction of a "corpus" particularly easy. I just created a new filter and told it to add the label "polly" to messages with certain properties (stuff sent here, and to a couple bike-related and swimming-related lists). Voila! An instant corpus with over 30,000 emails. As an aside, I found it interesting that one of the "words" it saved was "luofeiyu". Man, that guy posts a lot! Skip