Re: using perl in a c code
From: Ramprasad A Padmanabhan (ramprasad_at_netcore.co.in)
Date: 12/02/03
- Previous message: Casey West: "Re: CGI - DBI"
- In reply to: Robert Brown: "using perl in a c code"
- Next in thread: Robert Brown: "Re: using perl in a c code"
- Reply: Robert Brown: "Re: using perl in a c code"
- Reply: Manish Uskaikar: "Re: using perl in a c code"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: Robert Brown <eli@xnet.com> Date: Tue, 02 Dec 2003 11:33:54 +0530
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
----------------------------------------------------------------
NETCORE SOLUTIONS *** Ph: +91 22 5662 8000 Fax: +91 22 5662 8134
MailServ and FlexiMail: Messaging Solutions: http://netcore.co.in
Pragatee: Integrated Server-Software Suite: http://www.pragatee.com
Emergic Freedom: Server-centric Computing: http://www.emergic.com
BlogStreet: Blog Profiles and RSS Ecosystem: http://blogstreet.com
Deeshaa: Rural Development: http://www.deeshaa.com
Rajesh Jain's Weblog on Technology: http://www.emergic.org
----------------------------------------------------------------
- Previous message: Casey West: "Re: CGI - DBI"
- In reply to: Robert Brown: "using perl in a c code"
- Next in thread: Robert Brown: "Re: using perl in a c code"
- Reply: Robert Brown: "Re: using perl in a c code"
- Reply: Manish Uskaikar: "Re: using perl in a c code"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|