in reply to Newbie: Parsing Email
I would use Mail::Audit. Presumably, your MTA can deliver emails to a program and not to a mailbox. This would alleviate the need for a cron. You can use the body method to parse for your desired info. You can use your database of choice (MySQL, PostgreSQL, DBD::SQLite, etc) to store/retrieve your information. Next, you can use the reply method to send the desired response back. Finally, you can use the resend method to send the email to a real mailbox for long term storage.
As far as parts 2 and 3, these are separate scripts that interact with the database in part 1. The second one can be done with a cron job that determines the difference between the create timestamp stored in the database and the current timestamp. The 3rd one can be done by incrementing a column in the database each time someone logs in.
Of course there are lot's of issues such as session management, properly handling locking to avoid DoS attacks, etc. When you are beyond this general description and down in the weeds, come back and ask specific advice and we will be here waiting.
Cheers - L~R
|
|---|