You wouldn't be writing a More Agreeable SPAMBot would you? No, that's silly...they don't care about duplicate SPAM messages :)

I have a bad habit of doing this (that is, dodging the question), but for you this is the time to use a relational (SQL) database and force the email address field to be UNIQUE, or else do a "SELECT UNIQUE * FROM" or something like that.

Your flatfile technique is bound to be slower. 1200sec/60(sec/min) = 20 minutes. A database could fly through this sort of thing, and then you would have a system that would be better to write future tools on top of.

Postgre and MySQL are both great free DB servers available for most platforms. I tend to prefer Postgres for historical reasons about MySQL (most reasons no longer valid), both are rapidly imporving.


In reply to Re: End of the Time Out Tireny by flyingmoose
in thread End of the Time Out Tireny by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.