
On 6/10/2013 11:01 PM, Russell Coker wrote:
Does anyone know of a good free library for parsing email addresses? Preferrably something that's already packaged for Debian.
I want to have a library sort out the local part, the domain, and the comment of an email address.
I've just discovered a bug in a program which does this. The fact that the program in question has been running for many years (last update was over a year ago and the code in question wasn't changed for some time before that) and processed probably hundreds of thousands of messages without the bug being noticed demonstrates that it's not so easy to get this right. It seems likely that there may be other bugs after I fix this one. So I'd rather use a library to ensure that it's had wider testing before I use it.
I think you need to provide more details ..... What was the package that you were using? And at what point do you need to process the data? Is the data source: 1. incoming email; 2. outgoing mail; 3. Stored mail [what type of storage]; 4. just a plain list of email addresses; or something else? This might get you going: A Perl Extensible Mail Filter --> http://marginalhacks.com/Hacks/pemf/ Cheers A.