Ramprasad A Padmanabhan writes:
 > On Mon, 2003-12-01 at 22:02, Robert Brown wrote:
 > 
 > > Sounds like you are trying to write a harvesting tool to build a
 > > spammer's email address list to me.  Since you want to do it in C, I
 > > suspect that either you have a huge amount of text to parse, probably
 > > from web pages and news group postings, or you need to write a tool
 > > that will run inside of a worm or virus to extract email addresses
 > > from an address list of a machine you just hacked.  Please explain to
 > > the list why it would be beneficial to help you.  For one, you could
 > > just write it in perl and then use one of the perl2c tools out there
 > > to translate it into C.
 > 
 > 
 > Oops , I am sorry , If I sounded like a spammer.  But What I actually
 > want to do is find out the recipients in a email in a milter program (
 > from the headers , and not from rcpt callback ) . This milter plugs in
 > to the SMTP server  , ie sendmail and now I can do a whole lot of
 > validation and email redirection  depending on the headers, which is the
 > real requirement.
 > 
 > There is actually a perl module for milter  Sendmail::Milter, But it
 > uses some untested thread functions and simply hangs most unpredictably
 > ( I am using perl5.6.1 with threads on redhat 7.2) . Also A milter in
 > perl is inherently very slow as compared to one in C.
 > 
 > So I translated most of code into C and this script runs very well.
 > But I miss my favorite regex's in C 
 > 
 > 
 > BTW , I cant see any reason Why a spammer would    insist on using C
 > against perl  for his database
 > 
 > Thanks 
 > Ram

Please excuse me, but I just recently had to turn down a client when I
realized exactly what he was wanting to do -- generate spam to promote
a pyramid scheme MLM.  I guess I was just a bit on edge about spam at
the time.

Regex in C is really not that hard, but you do not get the fully
extended stuff perl offers.

The reason a spammer would want to use C is the same as yours: speed.
Imagine harvesting millions of email addresses every day from
newsgroups, mailing list archives on the web, and just about anywhere
he can find them.  That is a lot of text parsing!

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to