2012-03-14 13 views
0

私はC#でアプリケーションを作成しています。その一部は電子メールの処理を含んでいます。私はテキストファイルのすべての電子メールを持っています。これらから、Sender、Subject、Bodyなどを分離し、データベースに格納したいと考えています。例えば電子メールヘッダーからの情報の抽出

Path: cantaloupe.srv.cs.cmu.edu!das-news.harvard.edu!noc.near.net!howland.reston.ans.net!gatech!pitt.edu!alpha.smi.med.pitt.edu!fmg 
From: [email protected] (Filip Gieszczykiewicz) 
Newsgroups: sci.electronics 
Subject: FAQ - corrections 
Summary: PCB correction, FTP site, etc 
Message-ID: <[email protected]> 
Date: 15 Apr 93 16:30:42 GMT 
Sender: [email protected] 
Followup-To: poster 
Organization: Medical Informatics, Pittsburgh, PA USA 
Lines: 29 

Greetings. I received a reply stating that unless someone else 
confirms that the following company is operating, I should remove it from my lst:PCB Prototypes of Sandy, UT 
Ronald Baker 8195 South 2660 East 
Sandy, UT 84093 
Tel: [read below] 

This is from the COMM_PCB.FAQ (commercial PCB makers). 
Also, I don't have time to get the FAQ onto the sci.answers because of what I like to refer to is "red tape" - after the finals, I'll see what I can do... in the mean-time, anyone know of an FTP site that wouldn't mind a 250K file? :-) 

だからこのメールから、私はフィールドを選び出すしたい - >、件名、送信者、および実際の身体から、私のデータベースに保存します。私はC#でこれが欲しい。あなたの助けをありがとう

答えて

1

StackOverflowに同様の質問hereがあります、彼らは正規表現で解析しました。

関連する問題