<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — Add new function to delete email in User page]]></title>
	<link rel="self" href="http://www.iredmail.org/forum/feed-atom-topic735.xml" />
	<updated>2010-03-17T02:58:27Z</updated>
	<generator>PunBB</generator>
	<id>http://www.iredmail.org/forum/topic735-add-new-function-to-delete-email-in-user-page.html</id>
		<entry>
			<title type="html"><![CDATA[Add new function to delete email in User page]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post3085.html#p3085" />
			<content type="html"><![CDATA[<p>Per our client request, I am looking for a function to Delete or purge email in Inbox/Spam/IMAP Folder which older than (1,3,5,7,10,30,60,366 days) etc.&nbsp; This function is shown in directadmin, so I believe it&#039;s only a script to handle it.&nbsp; </p><p>For the way to apply in iredadmin, </p><p>1. Add a button to execute the script in User page<br />2. Create a script to delete the select Maildir by date.&nbsp; <br />find /var/vmail01/vmail/&lt;$USER DIR PATH&gt;/Maildir/cur* -mtime $DAY -exec rm {} \;<br />find /var/vmail01/vmail/&lt;$USER DIR PATH&gt;/Maildir/new* -mtime $DAY -exec rm {} \;</p><p>Please let me know if I am on the right path.&nbsp; Thanks.</p>]]></content>
			<author>
				<name><![CDATA[bongdotcom]]></name>
				<uri>http://www.iredmail.org/forum/user1436.html</uri>
			</author>
			<updated>2010-03-17T02:58:27Z</updated>
			<id>http://www.iredmail.org/forum/post3085.html#p3085</id>
		</entry>
</feed>
