RE: Splitting string using split()

2001-07-18 Thread Mike Miller
; <[EMAIL PROTECTED]>'; > > If not, lemme know and I'll do my best (or somebody else will I'm sure) > to come up with something a bit more forgiving. This regexp is really > ugly and mean. > Actually, the string is a list of one or more email addresses where e

Splitting string using split()

2001-07-17 Thread Mike Miller
Gurus: I have a string like this: $s = '[EMAIL PROTECTED], "Blow, Joe" <[EMAIL PROTECTED]>,Joe Blow <[EMAIL PROTECTED]>' And I want to be able to split it up. Using split, like this: my @addresses = split(/, ?/, $s); But obviously this causes a problem because of the comma inside the quotes

Module to Parse MIME-encoded Email?

2001-07-07 Thread Mike Miller
Gurus: As a learning exercise I'm writing my own web-based POP3 client, and wish to be able to handle emails which are MIME-encoded. So I'm looking for perhaps a module which will take the full message, give me back headers I want, and parse the body and return it in a form that could be dumped