Author Topic: autodele of inactive users  (Read 6595 times)

Offline gea

  • Newbie
  • *
  • Posts: 3
autodele of inactive users
« on: January 16, 2009, 11:19:31 AM »
hello

i am evaluating rc as webmailer for the students of our university.
every three years all of our users are changing and i am wondering if the mysql database is growing and growing or if there is a chance to auto-remove users for ex. after a specific time of inactivity.

i do not want to edit rc´s database. i also do not want to modify our ad domain for rc.

i prefer rc for being a complete standalone and independant system.


guenther

Offline Julius Caesar

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 498
    • http://www.de-keizer.net/
autodele of inactive users
« Reply #1 on: January 23, 2009, 05:44:31 AM »
This can only be done by a query on the database. If you want I can to create the query for you.
Julius Caesar

You can download the Groupvice4 theme here.
Sie können Groupvice4 hier he

Offline gea

  • Newbie
  • *
  • Posts: 3
re: autodelete
« Reply #2 on: January 23, 2009, 12:13:05 PM »
hello julius caesar

the point is: i do not want to edit the database(s) manually.
that should be an automated action by roundcube for example
at login or logout of first user every month.

i selected roundcube because its a standalone copy and run solution.
(copy ../httdocs, start apache, use sqlite or start mysql and ok)

it would be nice if it could also be set and forget.
webmailing is always temporary or mobile use with our users


greetings



guenther

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
autodele of inactive users
« Reply #3 on: January 23, 2009, 12:45:20 PM »
You need a volunteer to write an embedded database maintenance script. The starting point is "users" table to get inactive accounts by the field "last_login" and then to wipe out all rows linked to the master key "user_id" in all roundcube database tables. Nice idea, but not on the top of my TODO's!

I recommend Rent A Coder: How Software Gets Done -- Home of the worlds' largest number of completed software projects
Regards,
Rosali
__________________
MyRoundcube Project (commercial)