Topic awaiting preservation: CRON job script to download emails from imap server to local database - bat file programming issue?? (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: you tell me |
posted 01-25-2009 09:17
OK so Im following on the last thread here - well I got my system all set to read from a database the emails. The tricky part now is downloading the emails to the database in the first place. However I tried a few options and all of them have some issues. |
Paranoid (IV) Inmate From: Florida |
posted 01-25-2009 10:02 |
Bipolar (III) Inmate From: you tell me |
posted 01-25-2009 11:44
Uh how do I make this do what I want? I want to download emails and then ENTER then into my database .. |
Maniac (V) Inmate From: there...no..there..... |
posted 01-25-2009 15:07
quote:
|
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 01-25-2009 15:29
quote:
|
Bipolar (III) Inmate From: you tell me |
posted 01-25-2009 15:50
quote:
|
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 01-26-2009 11:14
How are you determining the include paths? |
Bipolar (III) Inmate From: you tell me |
posted 01-26-2009 22:49
Well I got this figured out to run from explorer but the thing is that this is a temporary solution. The issue is that we need a permanent scalable solution that would download emails from an IMAP server. Right now we have one script that does the downloading called by a scheduled task. Now the issue is that we want to launch our product such that lets say a new user signs up to use this website - it would require that a scheduled task be set up to download the users emails into his database as we plan on having separate databases for users. Is there anyway to like automate this part i.e. creation of cron or scheduled tasks in this fashion? Or is there a better way to do this? |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 01-27-2009 09:31
You don't need seperate scripts for that. Just one script that correctly closes and opens database connections. |
Bipolar (III) Inmate From: you tell me |
posted 01-27-2009 10:09
Well teh thing is that this woudl be running as a daemon - I want to know is it possibel to create a cron job dynamically ? Liek lets say when a user signs up or so.. |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 01-27-2009 12:39
Please learn to type 'the' . I know, we're all in a hurry, but it annoys me to no end. |