1

Topic: Delete All In Database - Sent Items

==== Provide required information ====
- iRedMail version and backend (LDAP/MySQL/PGSQL): 1.7.2
- Linux/BSD distribution name and version: RedHat
- Any related log? Log is helpful for troubleshooting.
====

When you click on a users email log and you click on Delete All Msg in Database its not deleting any of them.This is happening in the Sent section.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Delete All In Database - Sent Items

Did you login as global admin or normal admin?

I will try to reproduce it and fix it later. Thanks for your feedback.

3

Re: Delete All In Database - Sent Items

Dear melaleuca5,

It's confirmed that it's a bug in the latest iRedAdmin-Pro (all editions). Attachment is patch to fix it, applicable to all editions of iRedAdmin-Pro (-LDAP, MySQL, PGSQL).

Steps to apply this patch on your server:

1) Download attached patch, upload it to your server which has the latest iRedAdmin-Pro running. Assume uploaded file is /root/delete_all_user_activities.patch.

2) Change working directory to the root directory of iRedAdmin-Pro. For example:

# cd /var/www/iRedAdmin-Pro-LDAP-1.7.2/

3) Verify the patch with command 'patch --dry-run -p1':

# patch --dry-run -p1 < /root/delete_all_user_activities.patch
patching file controllers/amavisd/log.py

4) If you see the same output message, it's safe to apply it without '--dry-run':

# patch -p1 < /root/delete_all_user_activities.patch
patching file controllers/amavisd/log.py

5): Restart Apache web server.

That's all.

Let me know whether it works for you or not.

Post's attachments

delete_all_user_activities.patch 945 b, 4 downloads since 2012-07-13 

You don't have the permssions to download the attachments of this post.

4

Re: Delete All In Database - Sent Items

I tested the patch and it seems to work Zhang.

I also noticed an issue with the DELETE ALL IN DATABASE function for the RECEIVED e-mail log.

When trying to do a SELECT ALL on the emails in the email log, and then clicking "delete all in database", the following error is returned:

Error: not enough arguments for format string

I am running OpenLDAP-PRO 1.7.2 on Centos 6.3

5

Re: Delete All In Database - Sent Items

Hi juvix,

Thanks for your feedback, will try to reproduce it and fix it later today.

6

Re: Delete All In Database - Sent Items

Confirmed it's a bug in iRedAdmin-Pro-LDAP-1.7.2, iRedAdmin-Pro-MySQL-1.4.0, and iRedAdmin-Pro-PGSQL-1.0.
It was fixed about two weeks ago, and will be available in next release of iRedAdmin-Pro. (Sorry, no standalone patch for current stable release.)

7

Re: Delete All In Database - Sent Items

Do you have an idea when the next release of iredadmin-pro is scheduled?

8

Re: Delete All In Database - Sent Items

New release of iRedMail (0.8.2) and iRedAdmin-Pro will be available soon. smile