Go to file
Mike Dawson cde94e5047 Patch for maxage and maxsize options
Dear All,
Attached is the patch that I have developed to provide maxage and
maxsize options.  You can thus sync only the last x days of messages and
exclude large messages.  All details in the attached git file.

Regards,

-Mike

-- Attached file included as plaintext by Ecartis --
-- File: submit

From 04fead2b46a79675a5b29de6f2b4088b9c9448e5 Mon Sep 17 00:00:00 2001
From: mike <mike@mikelaptop.(none)>
Date: Sun, 16 Aug 2009 17:00:49 +0430
Subject: [PATCH] Patch to provide maxage and maxsize account options to exclude old/large messages

This is designed to make offlineimap even better for low bandwidth connections.

maxage allows you to specify a number of days and only messages within
that range will be considered by offlineimap for the sync.  This can be
useful if you would like to start using offlineimap with a large
existing account and do not want to import large archives of mail.

maxsize allows you to specify the maximum size of a message to consider so
that you can exclude messages with large attachments etc.

In both cases the cachemessagelist function of the folder was modified to ignore
messages that do not meet the criteria.  If the criteria are not specified
then the existing code will be executed the same as before.  If a message
does not meet the criteria it will be as though this message does not exist
- offlineimap will completely ignore it.  It will not have flags updated,
it will not be deleted, it will not be considered at all.

When operating against an IMAP repository a server side search function
is used.  This of course requires support for server side search.

I have tested this with either option, no options etc. against IMAP, Maildir
and Gmail.  I have run variations of this patch here for the last 3 weeks or
so syncing about 4 accounts normally.
2009-08-16 09:27:49 -05:00
bin Prepping 6.1.2 2009-07-16 00:03:23 -05:00
debian Fix 6.1.2 changelog 2009-07-16 00:05:34 -05:00
docs/sgml-common Step 2 of SVN to arch tree conversion 2005-04-16 20:33:35 +01:00
offlineimap Patch for maxage and maxsize options 2009-08-16 09:27:49 -05:00
.gitignore gitignore generated files from 'make doc' 2009-04-17 10:37:48 -05:00
COPYING Update FSF address 2006-08-12 05:15:55 +01:00
COPYRIGHT Update for 5.99.7 2008-03-04 08:32:29 -06:00
FAQ.html Add the FAQ 2006-12-02 22:03:05 +01:00
Makefile 'make clean' remove manual.ps 2009-04-17 10:37:37 -05:00
UPGRADING Step 2 of SVN to arch tree conversion 2005-04-16 20:33:35 +01:00
offlineimap.conf Patch for maxage and maxsize options 2009-08-16 09:27:49 -05:00
offlineimap.conf.minimal Step 2 of SVN to arch tree conversion 2005-04-16 20:33:35 +01:00
offlineimap.py Prepping 6.1.2 2009-07-16 00:03:23 -05:00
offlineimap.sgml Small doc grammar fix. fixes #74. 2008-06-11 15:27:03 -05:00
offlineimap.spec Updating version number to 4.0.16 2006-12-02 21:59:02 +01:00
setup.py Updated copyright and version info for 4.0.15 2006-11-30 10:51:14 +01:00