473,322 Members | 1,671 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,322 software developers and data experts.

Automatic email checking - best procedures/suggestions

Hi All,

I'm hoping someone has some experience in this field and could give me
a pointer in the right direction - it's not purely python related
though. Any modules/links someone has tried and found useful would be
greatly appreciated...

I want to have an automated process which basically has its own email
account on the LAN. The basic idea is that upon receipt of an email, it
logs this in a database and then forwards the message on to 'suitable'
recipients. (Well it will do more, but this is perfect to be going on
with and buildable on...)

The database and email account are set up and working fine. Using
smtplib, imaplib or poplib I can send and receive mail - this is not a
problem. What I'm unsure of is the best way to design this. Bear in
mind that network/email server configuration changes can be made. For
instance, do I connect to the email server and keep polling it every
'n' whatever for new messages, or should I be looking to the smtpd
module and get mail via that? (or any other way?)

I think I'm basically after the best way to implement:
Email in ------Python process ------Email out

Cheers,

Jon.

Jul 27 '06 #1
1 1322
"Jon Clements" <jo****@googlemail.comwrites:
problem. What I'm unsure of is the best way to design this. Bear in
mind that network/email server configuration changes can be made. For
instance, do I connect to the email server and keep polling it every
'n' whatever for new messages, or should I be looking to the smtpd
module and get mail via that? (or any other way?)

I think I'm basically after the best way to implement:
Email in ------Python process ------Email out
It depends on your mail server, on what you're willing to do and also on how
"locked" to your mail server you want to be.

Certainly fetching messages from your mailserver through POP3 and reinjecting
them to the correct mailaccounts will be a more portable solution than
writing, e.g., a filter to your mailserver.

On the other hand, if you need the message processed as soon as it arrives you
can make your program a filter -- or have a filter to call it somehow -- to
process the message.

Also consider the startup time of your code for each processed message,
concurrency issues, etc.

--
Jorge Godoy <jg****@gmail.com>
Jul 27 '06 #2

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

Similar topics

7
by: Lynn | last post by:
I'm running Oracle 8.1.7.4.1 on W2K and have the services for my oracle instances set to automatically startup and shutdown with the W2K server. Unfortunately, neither is working. Nothing gets...
4
by: Zlatko Matiæ | last post by:
I have a problem. I should rename some tables which are referenced in numerous stored procedures. Is there any way to automatically replace old table name with new one in all dependant stored...
2
by: kosta.triantafillou | last post by:
Hey everyone, trying to set up a SQL Query to run on a pre-determined batch cycle that will automatically dump out specific table data to a ..csv file so that users can load the file into Excel...
2
by: Trygve Lorentzen | last post by:
Hi, I'm developing an app with automatic version checking and updating. It must also track what version is installed for each customer in our customer database. I have made a small client to...
13
by: BK | last post by:
Our .Net team has just inherited a junior programmer that we need to get up to speed as quickly as possible. Unfortunately, his skill set is largely Access with some VB6 and ASP classic...
58
by: Jorge Peixoto de Morais Neto | last post by:
I was reading the code of FFmpeg and it seems that they use malloc just too much. The problems and dangers of malloc are widely known. Malloc also has some overhead (although I don't know what is...
0
by: Lysander | last post by:
Thought I would give something back with a few articles. This article is a bit of code to add error handling. When I have time, I want to write articles on multilingual databases, and Access...
25
by: sidd | last post by:
In the following code: int i = 5; ---it goes to .data segment int j; ---it goes to bss segment int main() { int c; int i = 5; ---stack
2
by: Denny | last post by:
I'm going from VB.net. Is there a way to have VS automatically add braces to methods? Also in VB, you do not need to add () for a method or function that does not need parameters. Is there a way...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.