1

Topic: Quarantine Scroll Bar Not Working Properly

==== Required information ====
- iRedMail version: 1.8.1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: CentOS 6.5
- Related log if you're reporting an issue:
====

I currently have over 1300 messages in my quarantine and I have noticed that the only page I can view in the quarantine is the first page.  No matter what I click on the controls at the bottom right of the quarantine page, I always see "Quarantined Mails (1-50/1316)".  This happen no matter what I click, even if I click the last page arrow.  I have noticed that the URL will change.  For example, for page 2 I see https://myserver.com/iredadmin/activiti … ned/page/2 and for page 10 I see https://myserver.com/iredadmin/activiti … ed/page/10 but the contents of the page never change.  Plus, the button at the bottom left always has page 1 highlighted.

Is this a bug perhaps caused by the number of message I have in the quarantine or something else?

Thank you.

----

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

2

Re: Quarantine Scroll Bar Not Working Properly

Sorry about this trouble. It must be a bug in iRedAdmin-Pro, i will try to fix it later and come back to you soon.

3

Re: Quarantine Scroll Bar Not Working Properly

Attachment is patch to fix this issue, can be used for iRedAdmin-Pro-LDAP-2.1.1, iRedAdmin-Pro-MySQL-1.8.1, iRedAdmin-Pro-PGSQL-1.4.1.

Steps to apply this patch:

1: Download attached patch and upload to your server which has the latest iRedAdmin-Pro running. Assume it's /root/quarantined_page.patch.

2: Backup original file and verify this patch:

# cd /var/www/iredadmin/
# patch --dry-run -p1 < root/quarantined_page.patch
patching file controllers/amavisd/log.py
Hunk #1 succeeded at 147 (offset 1 line).

# cp controllers/amavisd/log.py controllers/amavisd/log.py.bak

It says "succeeded". it's safe to apply.

3: Apply patch without option '--dry-run':

# patch -p1 < /root/quarantined_page.patch

4: Restart Apache service to load patched code.

That's all.

Post's attachments

quarantined_page.patch 1.01 kb, 14 downloads since 2014-01-09 

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

4

Re: Quarantine Scroll Bar Not Working Properly

The fix is very close.  Now when I click on the number quarantined messages or the number of virus messages from the main dashboard, I get a page that say only:
internal server error

Nothing else.

However, I tried just for fun putting in the following URL and that works:
https://myserver.com/iredadmin/activiti … ned/page/1
or
https://myserver.com/iredadmin/activiti … ed/page/10

And the buttons at the bottom of the page now show up correct as does the page content.  So it appears that the initial link still has an issue but if I put in the correct URL, it now works.

Than you again for your quick attention.

5

Re: Quarantine Scroll Bar Not Working Properly

Kyle Harris wrote:

Now when I click on the number quarantined messages or the number of virus messages from the main dashboard, I get a page that say only:
internal server error

will try to reproduce this issue later, thanks for your feedback.

6

Re: Quarantine Scroll Bar Not Working Properly

Hi Zhang,

I was just wondering if you have had a chance to look into this any further?  I have users that are really starting to complain?  If this is not a bug, should I pay for a support incident to fix?

Thank you.

7

Re: Quarantine Scroll Bar Not Working Properly

Sorry for my late response.

Could you please open file libs/amavisd/quarantine.py, find below line:

        if quarantined_type in ['spam', 'virus', 'banned']:

Append one more value in the list like below:

        if quarantined_type in ['spam', 'virus', 'banned', None]:

Save change and restart Apache service. Now please try again.

8

Re: Quarantine Scroll Bar Not Working Properly

Hi Zhang,

That line is not present in that file?  I am using the latest MySQL version with your patch above applied.

Any other suggestions?

Thank you.

9

Re: Quarantine Scroll Bar Not Working Properly

My fault, it's file 'controllers/amavisd/log.py'.
Sorry about my mistake.

10

Re: Quarantine Scroll Bar Not Working Properly

No worries on the wrong file.  I just made the change to the correct file, restarted Apache and still no luck?

Kyle