<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Cleanup Maildir folders (archive/delete old mails)</title> <atom:link href="http://www.ducea.com/2006/11/25/cleanup-maildir-folders-archive-delete-old-mails/feed/" rel="self" type="application/rss+xml" /><link>http://www.ducea.com/2006/11/25/cleanup-maildir-folders-archive-delete-old-mails/</link> <description>The Journal Of A Linux Sysadmin</description> <lastBuildDate>Sun, 21 Mar 2010 12:26:48 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9.2</generator> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>By: Alexander</title><link>http://www.ducea.com/2006/11/25/cleanup-maildir-folders-archive-delete-old-mails/comment-page-2/#comment-181616</link> <dc:creator>Alexander</dc:creator> <pubDate>Mon, 22 Feb 2010 10:53:57 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/11/25/cleanup-maildir-folders-archivedelete-old-mails/#comment-181616</guid> <description>I am looking for a tool to remove attachments from mail in a maildir and put them in a different location. Does anyone know of such a script?</description> <content:encoded><![CDATA[<p>I am looking for a tool to remove attachments from mail in a maildir and put them in a different location. Does anyone know of such a script?</p> ]]></content:encoded> </item> <item><title>By: claudio</title><link>http://www.ducea.com/2006/11/25/cleanup-maildir-folders-archive-delete-old-mails/comment-page-2/#comment-181463</link> <dc:creator>claudio</dc:creator> <pubDate>Sat, 26 Dec 2009 13:28:28 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/11/25/cleanup-maildir-folders-archivedelete-old-mails/#comment-181463</guid> <description>I think this is the best solution here:
4 Jay Farschman
4th October 2007, 14:43
I’s use the find command to locate the (ctime) files over 7 days old and the pipe it through xargs rm… like thisfind /tmp/jo -type f -ctime +7 &#124; xargs rmTo test, replace the rm with ls -la so you can see the files and ages.with this insight is easy to script the whole thingthanks pal
Claudio</description> <content:encoded><![CDATA[<p>I think this is the best solution here:<br
/> 4 Jay Farschman<br
/> 4th October 2007, 14:43<br
/> I’s use the find command to locate the (ctime) files over 7 days old and the pipe it through xargs rm… like this</p><p>find /tmp/jo -type f -ctime +7 | xargs rm</p><p>To test, replace the rm with ls -la so you can see the files and ages.</p><p>with this insight is easy to script the whole thing</p><p>thanks pal<br
/> Claudio</p> ]]></content:encoded> </item> <item><title>By: /cur mail - cPanel Forums</title><link>http://www.ducea.com/2006/11/25/cleanup-maildir-folders-archive-delete-old-mails/comment-page-2/#comment-181462</link> <dc:creator>/cur mail - cPanel Forums</dc:creator> <pubDate>Sat, 26 Dec 2009 11:53:41 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/11/25/cleanup-maildir-folders-archivedelete-old-mails/#comment-181462</guid> <description>[...]  i found an interresting script here  Cleanup Maildir folders (archive/delete old mails) &#124; MDLog:/sysadmin  maybe it will help  there is paramters to purge old mail and also unread mail  i will try it and [...]</description> <content:encoded><![CDATA[<p>[...]  i found an interresting script here  Cleanup Maildir folders (archive/delete old mails) | MDLog:/sysadmin  maybe it will help  there is paramters to purge old mail and also unread mail  i will try it and [...]</p> ]]></content:encoded> </item> <item><title>By: dr-who</title><link>http://www.ducea.com/2006/11/25/cleanup-maildir-folders-archive-delete-old-mails/comment-page-2/#comment-181307</link> <dc:creator>dr-who</dc:creator> <pubDate>Thu, 19 Nov 2009 19:48:16 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/11/25/cleanup-maildir-folders-archivedelete-old-mails/#comment-181307</guid> <description>moris:~# ./cleanup-maildir -n --age=60 delete --maildir-root=/home/vpopmail/domains/cnc.bg/antov/
Traceback (most recent call last):
File &quot;./cleanup-maildir&quot;, line 499, in
cleaner.clean(mode, dir, minAge)
File &quot;./cleanup-maildir&quot;, line 351, in clean
maildir = mailbox.Maildir(path, MaildirMessage)
File &quot;/usr/lib/python2.5/mailbox.py&quot;, line 233, in __init__
os.mkdir(self._path, 0700)
OSError: [Errno 2] No such file or directory: &#039;/root/Maildir/.--maildir-root=/home/vpopmail/domains/cnc.bg/antov&#039;
moris:~#</description> <content:encoded><![CDATA[<p>moris:~# ./cleanup-maildir -n &#8211;age=60 delete &#8211;maildir-root=/home/vpopmail/domains/cnc.bg/antov/<br
/> Traceback (most recent call last):<br
/> File &#8220;./cleanup-maildir&#8221;, line 499, in<br
/> cleaner.clean(mode, dir, minAge)<br
/> File &#8220;./cleanup-maildir&#8221;, line 351, in clean<br
/> maildir = mailbox.Maildir(path, MaildirMessage)<br
/> File &#8220;/usr/lib/python2.5/mailbox.py&#8221;, line 233, in __init__<br
/> os.mkdir(self._path, 0700)<br
/> OSError: [Errno 2] No such file or directory: &#8216;/root/Maildir/.&#8211;maildir-root=/home/vpopmail/domains/cnc.bg/antov&#8217;<br
/> moris:~#</p> ]]></content:encoded> </item> <item><title>By: MikeBrum.com &#187; Cleaning Up Maildir Directories</title><link>http://www.ducea.com/2006/11/25/cleanup-maildir-folders-archive-delete-old-mails/comment-page-1/#comment-181210</link> <dc:creator>MikeBrum.com &#187; Cleaning Up Maildir Directories</dc:creator> <pubDate>Sat, 24 Oct 2009 00:56:25 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/11/25/cleanup-maildir-folders-archivedelete-old-mails/#comment-181210</guid> <description>[...] few Google searches have revealed this fun tool: cleanup-maildir. USAGE cleanup-maildir [OPTION].. COMMAND [...]</description> <content:encoded><![CDATA[<p>[...] few Google searches have revealed this fun tool: cleanup-maildir. USAGE cleanup-maildir [OPTION].. COMMAND [...]</p> ]]></content:encoded> </item> <item><title>By: John Peak</title><link>http://www.ducea.com/2006/11/25/cleanup-maildir-folders-archive-delete-old-mails/comment-page-1/#comment-179859</link> <dc:creator>John Peak</dc:creator> <pubDate>Sat, 14 Mar 2009 23:15:43 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/11/25/cleanup-maildir-folders-archivedelete-old-mails/#comment-179859</guid> <description>acme--fixed.  you da man.  Thanks!!</description> <content:encoded><![CDATA[<p>acme&#8211;fixed.  you da man.  Thanks!!</p> ]]></content:encoded> </item> <item><title>By: Jayen</title><link>http://www.ducea.com/2006/11/25/cleanup-maildir-folders-archive-delete-old-mails/comment-page-1/#comment-179649</link> <dc:creator>Jayen</dc:creator> <pubDate>Wed, 04 Feb 2009 06:00:45 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/11/25/cleanup-maildir-folders-archivedelete-old-mails/#comment-179649</guid> <description>Hi Petrus, I couldn&#039;t manage to set wrapper</description> <content:encoded><![CDATA[<p>Hi Petrus, I couldn&#8217;t manage to set wrapper</p> ]]></content:encoded> </item> <item><title>By: Petrus4</title><link>http://www.ducea.com/2006/11/25/cleanup-maildir-folders-archive-delete-old-mails/comment-page-1/#comment-179637</link> <dc:creator>Petrus4</dc:creator> <pubDate>Sat, 31 Jan 2009 22:08:47 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/11/25/cleanup-maildir-folders-archivedelete-old-mails/#comment-179637</guid> <description>This Script is great!  work well on my Ubuntu postfix courier-imap server.
I am also interested in having the cleanup script run for all my users. JAYEN did you ever get a wrapper made to do this and would you be willing to share it?I want  to run
cleanup-maildir --age=120 --archive-folder=Archive --archive-hierarchy-depth=1 --maildir-root=&#039;/home/username/Maildir&#039; archive &#039;&#039;  for each my users  and then have the new archive folders added to the subscribed imap folders list and the user and group permissions on the new archive folders be changed to the specific user and group so the folders can be accessed by each specific user.Anyone else have any ideas?Thanks,Petrus4</description> <content:encoded><![CDATA[<p>This Script is great!  work well on my Ubuntu postfix courier-imap server.<br
/> I am also interested in having the cleanup script run for all my users. JAYEN did you ever get a wrapper made to do this and would you be willing to share it?</p><p>I want  to run<br
/> cleanup-maildir &#8211;age=120 &#8211;archive-folder=Archive &#8211;archive-hierarchy-depth=1 &#8211;maildir-root=&#8217;/home/username/Maildir&#8217; archive &#8221;  for each my users  and then have the new archive folders added to the subscribed imap folders list and the user and group permissions on the new archive folders be changed to the specific user and group so the folders can be accessed by each specific user.</p><p>Anyone else have any ideas?</p><p>Thanks,</p><p>Petrus4</p> ]]></content:encoded> </item> <item><title>By: Corrado Fiore</title><link>http://www.ducea.com/2006/11/25/cleanup-maildir-folders-archive-delete-old-mails/comment-page-1/#comment-178395</link> <dc:creator>Corrado Fiore</dc:creator> <pubDate>Mon, 21 Jul 2008 07:56:15 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/11/25/cleanup-maildir-folders-archivedelete-old-mails/#comment-178395</guid> <description>Ok, found the trick:  the cleanup script looks at the date on filesystem, not inside each message.  So, if I copied a Maildir without keeping original modification datetimes, I would end up with the results above:  all files seem like new to the script.Kind regards,
Corrado Fiore</description> <content:encoded><![CDATA[<p>Ok, found the trick:  the cleanup script looks at the date on filesystem, not inside each message.  So, if I copied a Maildir without keeping original modification datetimes, I would end up with the results above:  all files seem like new to the script.</p><p>Kind regards,<br
/> Corrado Fiore</p> ]]></content:encoded> </item> <item><title>By: Corrado Fiore</title><link>http://www.ducea.com/2006/11/25/cleanup-maildir-folders-archive-delete-old-mails/comment-page-1/#comment-178394</link> <dc:creator>Corrado Fiore</dc:creator> <pubDate>Mon, 21 Jul 2008 06:30:26 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/11/25/cleanup-maildir-folders-archivedelete-old-mails/#comment-178394</guid> <description>I&#039;m trying it on a VPS with Python 2.5 and seems like even the modified version doesn&#039;t recognize date of messages.  For example:$ /usr/local/bin/cleanup-maildir -n -v --age=30 --maildir-root=/var/spool/imap/test/Maildir archive &#039;&#039;
...
INFO:cleanup-maildir:Total messages:       102
INFO:cleanup-maildir:Affected messages:      0
INFO:cleanup-maildir:Untouched messages:   102but I&#039;m sure that Maildir contains also messages older than 30 days!If that can help, messages are delivered into Maildir/new/ by Procmail and my IMAP server is Dovecot.Any suggestions?Thanks,
Corrado Fiore</description> <content:encoded><![CDATA[<p>I&#8217;m trying it on a VPS with Python 2.5 and seems like even the modified version doesn&#8217;t recognize date of messages.  For example:</p><p>$ /usr/local/bin/cleanup-maildir -n -v &#8211;age=30 &#8211;maildir-root=/var/spool/imap/test/Maildir archive &#8221;<br
/> &#8230;<br
/> INFO:cleanup-maildir:Total messages:       102<br
/> INFO:cleanup-maildir:Affected messages:      0<br
/> INFO:cleanup-maildir:Untouched messages:   102</p><p>but I&#8217;m sure that Maildir contains also messages older than 30 days!</p><p>If that can help, messages are delivered into Maildir/new/ by Procmail and my IMAP server is Dovecot.</p><p>Any suggestions?</p><p>Thanks,<br
/> Corrado Fiore</p> ]]></content:encoded> </item> </channel> </rss>
<!-- This site's performance optimized by W3 Total Cache. Dramatically improve the speed and reliability of your blog!

Learn more about our WordPress Plugins: http://www.w3-edge.com/wordpress-plugins/

Minified using memcached
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 8/24 queries in 0.010 seconds using memcached

Served from: www.ducea.com @ 2010-03-21 20:15:38 -->