Subject: How can I parse a mail ?

From: [email-masked] ()
Date: 7 Aug 1995 23:50:15 GMT

Hi,
I am trying to write an email server, and need to parse 
the header info. I tried looking into the RFC822 specs, 
but I figured that there must be some code lying around 
considering the number of server programs. If any of you 
could please drect me to some source for the code, or 
email me a rudimentary parser I would greatly appreciate 
yor help.

Thanks
Shashi

Please email the replies to me.