1

Topic: Fixed in iRedAdmin-0.1.1: not all arguments converted

This post is used to fix bug in iRedAdmin-0.1.1 (Open Source Edition), if it doesn't work for you, please post a new topic in our forum.
=================

Hi, all.

There is a bug in iRedAdmin-0.1.1 (Open Source Edition).

Abstract

When user's mail quota is less than 1KB, iRedAdmin will raise an 'Internal server error'.

Root Case

There's a bug in iRedAdmin (libs/iredutils.py, function: filesizeformat()), not all arguments converted during string formatting.

Affected versions
  • iRedAdmin which shipped in iRedMail-0.5.1

  • iRedAdmin-0.1.1 (Open Source Edition)

Steps to fix it
  • Download patch and copy to iRedAdmin directory, and change current directory to iRedAdmin.

# ---- Download patch ----
# wget http://www.iredmail.org/patches/iredadmin/ose/0.1.1/iredadmin-v011-20091105-01.patch

# ---- On RHEL/CentOS ----
# cp iredadmin-v011-20091105-01.patch /var/www/iredadmin/
# cd /var/www/iredadmin/

# ---- On Debian/Ubuntu ----
# cp iredadmin-v011-20091105-01.patch /usr/share/apache2/iredadmin/
# cd /usr/share/apache2/iredadmin/
  • Use patch command with '--dry-patch' options to test whether this patch will be applied clearly. If command output is not SAME as below, please do NOT try further steps, and post a new topic in our forum.

# patch --dry-run -p1 < iredadmin-v011-20091105-01.patch
patching file libs/iredutils.py
  • Patch it.

# patch -p1 < iredadmin-v011-20091105-01.patch
patching file libs/iredutils.py

----

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