SkÃ¥ne Sjælland Linux User Group - http://www.sslug.dk Forside   Tilmelding   Postarkiv   Forum   Kalender   Søg
MhonArc Dato: [Date Prev] [Kronologisk oversigt] [Date Next]   TrÃ¥d: [Date Prev] [Oversigt trÃ¥de] [Date Next]   MhonArc
 

Re: [PERL] email grab



Citat fra Dilbert: "He shouts code reuse, and the croud goes wild".

1 module found in 1 distribution matching 'Email::Find' 
   
Email-Find-0.04  by  Michael G Schwern  Released
5th June 2001  
Email::Find  - Find RFC 822 email addresses in plain text  0.04  

Der står godtnok:
Why a subset of RFC 822? 

I say that this module finds a subset of RFC 822 because if I attempted to look for all possible valid RFC 822 addresses I'd wind up practically matching the entire block of text! The complete specification is so wide open that its difficult to construct soemthing that's not an RFC 822 address. 
To keep myself sane, I look for the 'address spec' or 'global address' part of an RFC 822 address. This is the part which most people consider to be an email address (the 'sslug@sslug' part) and it is also the part which contains the information necessary for delivery. 

Why are some of the matches not email addresses? 

Alas, many things which aren't email addresses look like email addresses and parse just fine as them. The biggest headache is email and usenet and email message IDs. I do my best to avoid them, but there's only so much cleverness you can pack into one library. 

Men det er jo bare at kombinere den med Email::Valid.

Regards, Lars
Student at Department of Computer Science and Department of Psychology  
University of Copenhagen --- http://www.diku.dk/students/larsj/     
When's the last time you used duct tape on a duct? -- Larry Wall



 
Forside   Tilmelding   Postarkiv   Oversigt   Kalender   Søg

 
 
Henvendelse vedrørende websiderne til <www_admin>. Senest ændret 2005-08-10, klokken 19:53
Denne side vedligeholdes af MHonArc .