473,395 Members | 1,696 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Listening on port

Hello,
I want to write a spam filter, and for that I have to
listen on the incoming mail port in order to catch the
arriving mail messages (from any server) and filter them.
How can I listen on a port and catch any transportation
going through it?
Thanks.
Nov 16 '05 #1
3 1570
Beholder wrote:
Hello,
I want to write a spam filter, and for that I have to
listen on the incoming mail port in order to catch the
arriving mail messages (from any server) and filter them.
How can I listen on a port and catch any transportation
going through it?
Thanks.


Why do you have to do that?

Why don't you use an Outlook Interop, and parse through the mail.Body
with a regex parser, looking for spam words. Then if the mail meets
criteria, delete, archive or flag it.

In a Linux/sendmail spam filter they have it arrive on sendmail, then
use a parser called procmail and pass the mail through it to filter and
then forward based on spam rules.
Nov 16 '05 #2
Why don't you use an Outlook Interop, and parse through the mail.Bodywith a regex parser, looking for spam words. Then if the mail meetscriteria, delete, archive or flag it.

In a Linux/sendmail spam filter they have it arrive on sendmail, thenuse a parser called procmail and pass the mail through it to filter andthen forward based on spam rules.
.


The reason is that I want the spam filter to work with any
POP3 mail agent, not just Outlook.

Nov 16 '05 #3
Beholder wrote:
Why don't you use an Outlook Interop, and parse through

the mail.Body
with a regex parser, looking for spam words. Then if

the mail meets
criteria, delete, archive or flag it.

In a Linux/sendmail spam filter they have it arrive on

sendmail, then
use a parser called procmail and pass the mail through it

to filter and
then forward based on spam rules.
.


The reason is that I want the spam filter to work with any
POP3 mail agent, not just Outlook.


I see -- so is the inbound mail stored in a sendmail queue then?
--
w 4
Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Laszlo Csabi | last post by:
Hi guys, What I would like to achieve is create a client-server messenger application. The problem I run into is : I have created a listener socket on the client and connect to the remote...
5
by: lazydb2dba | last post by:
I would like to know if there is any reason that a connection port is not listening. I've found the following message in my db2diag.log DIA3003E Error encountered in "TCPIP" protocol support....
3
by: ssantamariagarcia | last post by:
I am trying to program a server in C for UNIX to get a kind of "bridge" between the clients of a port A and the clients of a port B. For that, I create 2 processes: one that listen the requests of...
4
by: Xarky | last post by:
Hi, I am writing a small web server, to listen on web browser port(8080), if I'm not wrong. Basically for parsing some tags found in html. Now I am doing as follows TcpListener mainTcp =...
5
by: Bob Garbados | last post by:
I have a .net website and I need to connect to a service listening on a specific port from that website. The service and website are on the same windows 03 server. I don't know where to start on...
6
by: kai | last post by:
Hi, I was tring to run an example (HelloWorld.aspx) from MSPrss book, I get this message: "ASP.NET Development Server faild to start listening port 1034. Error message: An attempt was made...
2
by: Richard Gass | last post by:
First weird problem... The other day, out of the blue, our application reported an error saying it could not connect to the postgres db. The hostname that it reported is the name of the machine...
6
by: Marc | last post by:
How could I directly trigger a very simple on localhost and a known port listening server from my internet browser client? Local host means the little server would be running on the client machine,...
0
by: Daniel Walton | last post by:
I have been working on a problem for a full week now. If someone could please help me it would be great. Even a clue would be great at this point. What I am seeing is quite a mystery. I have...
1
by: bomahony | last post by:
Ive installed db2 V8.1 FP11. when i run a local connection, it connects correctly. However when i run a remote connect (using squirel) it gives a connection refused error. i ran a tcpdump on the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.