Limit restore mail

Issue #578 resolved
Arunmani Murugan created an issue

Dear jsuto,

We are using piler as archival solution but we would like to limit restoring mail option to 5 mails per user per hour for security purpose. Please help to resolve this.

Thanks in Advance..!! Regards, Arun.

Comments (6)

  1. Janos SUTO repo owner

    I'm not sure how it's a major bug. Anyway it can be done for regular users. I have something like to hide the bulk download button, and check the last 60 mins of audit records for the given user. If he has already restored 5 emails, then hide the restore link (and probably worth to hide the download link as well).

    The only requirement is to enable auditing (turned on by default)

  2. Arunmani Murugan reporter

    Dear jsuto, Sorry for assigning this as major bug I am unaware of this... I hope this option will hide only for that particular user if he exceeded and not for all.. please guide me how to set this.

    -- regards arun

  3. Janos SUTO repo owner

    OK, I think it's ready to test. Upgrade to the master branch, and add the following to config-site.php:

    config['MAX_RESTORE_PER_HOUR'] = 5;
    
  4. Arunmani Murugan reporter

    Dear jsuto,

    Thanks for the solution.. I will do the same in our setup and update.

  5. Arunmani Murugan reporter

    sorry janos.. I really forgot to update.. provided solution just simply worked fine...

    Thanks a lot...!!! it helped me on time...!!

  6. Log in to comment