OZONE Asylum
Forums
Server-Side Scripting - Oh my!
Anyone used IMAP Proxy????
This page's ID:
30748
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Ok that pretty much set everything in perspective. So right now what I've done so far is pretty much separate the process of downloading emails into the db from the IMAP server from the actual mail program that reads teh db as though it was a mailbox. It pretty much made sense that why would u want to restrict downloading of emails to the db only when someone is browsing your website. The entire aim seems self defeated with the iframe idea though. Because the point was to access the db as though it was a mailbox and remove all imap calls from the client interface. The logic I've used so far is that the downloading script would be called using a windows scheduler and it would check downloaded messages against a certain message unique ID which is said to be unique to each and every email created its a huge ugly string but this check is pretty secondary as the aim is that once we download the email and its attachments we would delete the email fro good from the online IMAP server - so the logic goes like this: [code]Get all emails from imap server - assuming that if an email exists it wasnt downloaded and deleted For each allemails as one email does the message id of this email exist btw? If yes donot download this email and move on else download this email If this email has attachments { download attachments and associate to teh email }else{ go on } // if we get till here then only would we delete the email delete the email from the imap server loop[/code] The only pitfall woudl be in teh case that should this cease midway there can be two situations we have downloaded an email but not one or all of its attachments We downloaded but couldn't delete To counter that the fact that deletion is only possible should everything be downloaded - running a simple check to make sure we don't have an existing email in our db online should solve the problem. The thing is that how do I set up a scheduler to run in such a way that when it makes periodic calls to run the script it doesn't make a call whilst the script hasn't finished running. In which case we would have two instances of teh program running most probably... or wait isnt that supposed to be a good thing?
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »
Maximum Security
OZONE
DHTML/Javascript
Server-Side Scripting - Oh my!
CSS - DOM - XHTML - XML - XSL - XSLT
Stupid Basic HTML
Visual Therapy
Photoshop
Photoshop Pong, Anyone?
***WARNING*** BIG SIG APPROACHING
Photography
3D Modelling & Rendering
Multimedia/Animation
Print Graphics
Holding Pens
Philosophy and other Silliness
Outpatient Counseling
Site reviews!
Mad Scientists' Laboratory
Getting to know the Grail