<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Comments on article "When IMAP lags with big folders"</title>
<link>http://base-art.net/Articles/3/</link>
<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>
<language>en</language>
<copyright>The contents of this blog are available for non-commercial use only.</copyright>
<generator>Alinea http://pythonfr.org/alinea/</generator>


<item>
<title>phil on When IMAP lags with big folders</title>
<link>http://base-art.net/Comments/2/</link>
<guid isPermaLink="true">http://base-art.net/Comments/2/</guid>
<description><![CDATA[
&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>
<dc:creator>phil</dc:creator>
<dc:date>2004-04-18T01:18:19Z</dc:date>
</item>

<item>
<title>Jkx on When IMAP lags with big folders</title>
<link>http://base-art.net/Comments/1/</link>
<guid isPermaLink="true">http://base-art.net/Comments/1/</guid>
<description><![CDATA[
&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>
<dc:creator>Jkx</dc:creator>
<dc:date>2004-04-18T00:44:39Z</dc:date>
</item>


</channel>
</rss>