[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

maildata statistics



Hi all,

There is a large mail data file "1.txt". Each mail is separated by the 
strings "\n\.\n". Mail header and mail body is separated by "\n\n".

For example, this mail data format is the following.
-----------------------
Return-Path: <something>
Received: <something>
<something>
<something>
To: <something>
From: foo@example.com

Hello!
World!
.
Return-Path: <something>
...
-----------------------

I want to output all the "To:" fields in the mail which contains
"example.com" in the "From:" field.
-------------
To: hoge@hoge.com
To: foo@example.net
...
------------

What language/software/environment do you use to develop this program?
You can use any programming languages or softwares or environments,
but I make a point of development speed rather than processing speed.

regards,


-- 
Tsuyoshi Takada <wretched@mail.goo.ne.jp>




Reply to: