transaction support

  • Thread starter Thread starter Craig Buchanan
  • Start date Start date
C

Craig Buchanan

i'd like to pull messages from a POP3 server and store them in a database.
What mechanisms are there to treat this process like a transaction?

thanks,

craig
 
Just curious as to why you might want to wrap this in a transaction.

By default, with POP3 servers, when you download messages, they will not be
deleted from the server until the command is given from the client. In
other words, if you attempt to D/L you mail from a POP3 server the
connection craps out before all the mail is D/L, the messages that you have
D/L thus far, are still on the server.

Therefore, in your app, you can verify that you have all of the mail D/L
according to the headers etc that you queried from the server. When that is
verified, then you can send the delete command to the server from your app.
 
good point. thanks for the clarity.

craig

Gerry O'Brien said:
Just curious as to why you might want to wrap this in a transaction.

By default, with POP3 servers, when you download messages, they will not
be deleted from the server until the command is given from the client. In
other words, if you attempt to D/L you mail from a POP3 server the
connection craps out before all the mail is D/L, the messages that you
have D/L thus far, are still on the server.

Therefore, in your app, you can verify that you have all of the mail D/L
according to the headers etc that you queried from the server. When that
is verified, then you can send the delete command to the server from your
app.
 

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

Back
Top