<?xml version="1.0" encoding="iso-8859-1"?>
<rdf:RDF xmlns="http://purl.org/rss/1.0/"
         xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
         xmlns:dc="http://purl.org/dc/elements/1.1/"
         xmlns:content="http://purl.org/rss/1.0/modules/content/">

<channel rdf:about="http://base-art.net/Articles/3/">
<description>&lt;p&gt;I'm using mutt to read my mail through IMAP4_SSL... But currently it lacks of a cache system, so dealing with big folders (~2000) is quite hard for it.&lt;/p&gt;
&lt;p&gt;That's why I hacked an archive utility script to better fit with my needs. The original one is &lt;a class="reference" href="http://gray.mine.nu/maildirarchive/mdirarchive-0.1.py"&gt;here&lt;/a&gt;. The purpose is to move old mails on subtrees of the folder we want to archive, sorted by month.&lt;/p&gt;
&lt;p&gt;I mainly added an option relating mail dates comparisons. So now there are two possibilities :&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;believe IMAP dates (appearing as timestamps in beginning of mail filenames) (default behavior)&lt;/li&gt;
&lt;li&gt;believe &lt;cite&gt;Date:&lt;/cite&gt; Mail header (-m option)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Use-case :)&lt;/p&gt;
&lt;pre class="literal-block"&gt;
$ ./mdirarchive.py -m respyre
$ tree ~/Maildir/.respyre* -L 1
/home/phil/Maildir/.respyre
|-- courierimapacl
|-- courierimapkeywords
|-- courierimapuiddb
|-- cur
|-- new
`-- tmp
/home/phil/Maildir/.respyre.2003-06
|-- cur
|-- new
`-- tmp
/home/phil/Maildir/.respyre.2003-09
|-- cur
|-- new
`-- tmp
/home/phil/Maildir/.respyre.2003-10
|-- cur
|-- new
`-- tmp
&lt;/pre&gt;
&lt;p&gt;There is now a subfolder per month. Check script online help for more options.&lt;/p&gt;
&lt;p&gt;&lt;a class="reference" href="/static/mdirarchive.py"&gt;Download&lt;/a&gt;&lt;/p&gt;
</description>
<link>http://base-art.net/Articles/3/</link>
<title>Comments on article "When IMAP lags with big folders"</title>



<items>
<rdf:seq>

<rdf:li rdf:resource="http://base-art.net/Comments/2/"/>

<rdf:li rdf:resource="http://base-art.net/Comments/1/"/>

</rdf:seq>
</items>


</channel>


<item rdf:about="http://base-art.net/Comments/2/">
<dc:date>2004-04-18T03:18:19.000006+01:00</dc:date>
<title>phil on When IMAP lags with big folders</title>
<link>http://base-art.net/Comments/2/</link>
<author>phil</author>
<description>
&lt;p&gt;Ask it to the guy who coded the original script. I only added things I needed ..&lt;/p&gt;
&lt;p&gt;And I didn't knew &lt;a class="reference" href="http://archivemail.sf.net"&gt;http://archivemail.sf.net&lt;/a&gt; which have many many (usefull ?) features.. But it could also complete the same kind of job&lt;/p&gt;

</description>
</item>

<item rdf:about="http://base-art.net/Comments/1/">
<dc:date>2004-04-18T02:44:39.000006+01:00</dc:date>
<title>Jkx on When IMAP lags with big folders</title>
<link>http://base-art.net/Comments/1/</link>
<author>Jkx</author>
<description>
&lt;p&gt;You used a Minitel to write your code ? You use a really fancy code style for example :&lt;/p&gt;
&lt;pre class="literal-block"&gt;
if doit:
    if (not isdir(target)):
        raise &amp;quot;Target '%s' not a directory!&amp;quot; % target
    rename(&amp;quot;%s/cur/%s&amp;quot; % (folder, file), \
    '%s/new/%s' % (target, file))
&lt;/pre&gt;

</description>
</item>


</rdf:RDF>