How to parse email in real time?

  • Thread starter http://links.i6networks.com
  • Start date
H

http://links.i6networks.com

What I want to make is something to automatically analyzing the email
received

Is there a way to parse email in real time in Perl or Shell, assuming the
script is sitting with the mail server.

I looked into the email format, sometimes, it has something like =3D =0 at
the end of line. Sometimes, it email looks a like a binary file, but it
should be text file as only text and html are in the file.
 
E

Ed Morton

http://links.i6networks.com said:
What I want to make is something to automatically analyzing the email
received

Is there a way to parse email in real time in Perl or Shell, assuming the
script is sitting with the mail server.

I looked into the email format, sometimes, it has something like =3D =0 at
the end of line. Sometimes, it email looks a like a binary file, but it
should be text file as only text and html are in the file.

Check out procmail (http://www.procmail.org/) and formail (google).

Ed.
 
K

Kevin Rodgers

http://links.i6networks.com said:
What I want to make is something to automatically analyzing the email
received

Is there a way to parse email in real time in Perl or Shell, assuming the
script is sitting with the mail server.

procmail can invoke any executable or script on incoming messages:
http://www.procmail.org/
 
H

http://links.i6networks.com

http://links.i6networks.com said:
Check out procmail (http://www.procmail.org/) and formail (google).

The file is C based source codes. How do I install it on the server as I
don't have admin access to it. Is there something similar to it in
Perl/PHP/Shell?

Is ProcMail runable on Windows?
 
E

Ed Morton

http://links.i6networks.com said:
The file is C based source codes. How do I install it on the server as I
don't have admin access to it. Is there something similar to it in
Perl/PHP/Shell?

Is ProcMail runable on Windows?

I expect most of the above questions are addressed in the FAQs on that page.

Ed.
 
B

Bill Marcum

["Followup-To:" header set to comp.unix.shell.]
What I want to make is something to automatically analyzing the email
received

Is there a way to parse email in real time in Perl or Shell, assuming the
script is sitting with the mail server.

I looked into the email format, sometimes, it has something like =3D =0 at
the end of line. Sometimes, it email looks a like a binary file, but it
should be text file as only text and html are in the file.
That sounds like quoted-printable encoding. If you can edit the email
to add these header lines, your mail client might decode it:
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0
 
J

John Bokma

What I want to make is something to automatically analyzing the email
received

For Spam?
Is there a way to parse email in real time in Perl or Shell, assuming
the script is sitting with the mail server.

I use spamassassin for this (for spam that is). Written in Perl ;-)
 
W

William Park

In said:
What I want to make is something to automatically analyzing the email
received

Is there a way to parse email in real time in Perl or Shell, assuming
the script is sitting with the mail server.

I looked into the email format, sometimes, it has something like =3D
=0 at the end of line. Sometimes, it email looks a like a binary file,
but it should be text file as only text and html are in the file.

Steps that are involve are the same as spam filtering. For that,
standard answer is
man procmail procmailrc procmailex
man formail
asuming you're running Linux. For Windows, I've heard the
www.cygwin.org has something offer. Though I don't know whether you can
invoke Procmail from whatever MTA you're running.
 
Z

Zebee Johnstone

In comp.lang.perl.misc on Wed, 18 Aug 2004 16:15:34 GMT
http://links.i6networks.com said:
The file is C based source codes. How do I install it on the server as I
don't have admin access to it. Is there something similar to it in
Perl/PHP/Shell?

YOu could look at the cpan module Mail::Audit and write a perlscript
using that.

I use it instead of procmail.

You will probably have to describe the exact problem and setup in order
to get useful information. Such as is this "server" a machine you read
mail on, or one you pop mail from? What ability do you have to run the
mail through anything?


Zebee
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,189
Latest member
CryptoTaxSoftware

Latest Threads

Top