MESSAGE
DATE | 2007-11-17 |
FROM | Ruben Safir
|
SUBJECT | Re: [NYLXS - HANGOUT] Website Updates
|
> You do know that there are mbox-handeling function/modules for almost > every language includig perl? So why reinvent the wheel? And why would > you use a GUI or even non-gui MUA to process mail? > -K
All true Kev
If I didn't love you I'd be rubbed the wrong way. Write it down as another imperfection on my soul ;)
Rest assured that I have other motivations and humor me.
Anyway, even that code I wrote is now running 18 hours plus and still parsing mail. It makes me apreciaite what the boys working for Wall Street go through. My regex must be chewing up too much CPU power. It's using 99% of the CPU to do this and still running and it has parsed a little over 30,000 messages.
m/^From\s+[-.=\w]+\-at-[-.\w]+\.\w{2,3}\s+\w{3}\s+\w{3}\s+\d{1,2}\s+\d\d:\d\d:\d\d\s+\d\d\d\d/
is the From line regex. And it is still missing some From Headers.
Perhaps I should reduce this to a more generalized format such as
m/^From\s+w.*\-at-w.*\s+\w{3}\s+\w{3}\s+\d{1,2}\s+\d\d:\d\d:\d\d\s+\d\d\d\d/
or even
m/^From\s+w.*\-at-w.*\s+\w{3}\s+\w.*\s+\d+\s+\d.*\s+\d.*/
Would that make it run faster?
Ruben
> -- > | .''`. == Debian GNU/Linux == | my web site: | > | : :' : The Universal |mysite.verizon.net/kevin.mark/| > | `. `' Operating System | go to counter.li.org and | > | `- http://www.debian.org/ | be counted! #238656 | > | my keyserver: subkeys.pgp.net | my NPO: cfsg.org | > |join the new debian-community.org to help Debian! | > |_______ Unless I ask to be CCd, assume I am subscribed _______|
-- http://www.mrbrklyn.com - Interesting Stuff http://www.nylxs.com - Leadership Development in Free Software
So many immigrant groups have swept through our town that Brooklyn, like Atlantis, reaches mythological proportions in the mind of the world - RI Safir 1998
http://fairuse.nylxs.com DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
"Yeah - I write Free Software...so SUE ME"
"The tremendous problem we face is that we are becoming sharecroppers to our own cultural heritage -- we need the ability to participate in our own society."
"> I'm an engineer. I choose the best tool for the job, politics be damned.< You must be a stupid engineer then, because politcs and technology have been attached at the hip since the 1st dynasty in Ancient Egypt. I guess you missed that one."
© Copyright for the Digital Millennium
|
|