<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — Fixed in iRedAdmin-1.0.0: not all arguments converted]]></title>
	<link rel="self" href="http://www.iredmail.org/forum/feed-atom-topic399.xml" />
	<updated>2009-11-05T08:38:58Z</updated>
	<generator>PunBB</generator>
	<id>http://www.iredmail.org/forum/topic399-fixed-in-iredadmin100-not-all-arguments-converted.html</id>
		<entry>
			<title type="html"><![CDATA[Fixed in iRedAdmin-1.0.0: not all arguments converted]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post1729.html#p1729" />
			<content type="html"><![CDATA[<p>This post is used to fix bug in iRedAdmin-1.0.0 (Full-Featured Edition), if it doesn&#039;t work for you, please post a new topic in this forum.<br />=================</p><p>Hi, all.</p><p>There is a bug in iRedAdmin-1.0.0 (Full-Featured Edition).</p><h5>Abstract</h5><p>When user&#039;s mail quota is less than 1KB, iRedAdmin will raise an &#039;Internal server error&#039;.</p><h5>Root Case</h5><p>There&#039;s a bug in iRedAdmin (libs/iredutils.py, function: filesizeformat()), not all arguments converted during string formatting.</p><h5>Affected versions</h5><ul><li><p>iRedAdmin-1.0.0 (Full-Featured Edition)</p></li></ul><h5>Steps to fix it</h5><ul><li><p>Download patch and copy to iRedAdmin installation directory, and change current directory to iRedAdmin.</p></li></ul><div class="codebox"><pre><code># ---- Download patch ----
# wget http://www.iredmail.org/patches/iredadmin/ent/1.0.0/iredadmin-v100-20091105-01.patch

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

# ---- On Debian/Ubuntu ----
# cp iredadmin-v100-20091105-01.patch /usr/share/apache2/iredadmin/
# cd /usr/share/apache2/iredadmin/</code></pre></div><ul><li><p>Use patch command with &#039;--dry-patch&#039; options to test whether this patch will be applied clearly. If command output is not <strong>SAME</strong> as below, please do <strong>NOT</strong> try further steps, and post a new topic in this forum.</p></li></ul><div class="codebox"><pre><code># patch --dry-run -p1 &lt; iredadmin-v100-20091105-01.patch
patching file libs/__init__.py
patching file libs/iredutils.py</code></pre></div><ul><li><p>Patch it.</p></li></ul><div class="codebox"><pre><code># patch -p1 &lt; iredadmin-v100-20091105-01.patch
patching file libs/__init__.py
patching file libs/iredutils.py</code></pre></div>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2009-11-05T08:38:58Z</updated>
			<id>http://www.iredmail.org/forum/post1729.html#p1729</id>
		</entry>
</feed>
