[PATCH 3/3] Improve our MANUAL

Sebastian Spaeth Sebastian at SSpaeth.de
Mon Aug 29 09:25:52 UTC 2011


On Thu, 25 Aug 2011 10:16:18 -0400, Dan Christensen <jdc at uwo.ca> wrote:
> > Given that the target audience isn't exclusively Python programmers, how
> > about
> >   +     folderfilter = lambda folder: (folder in ['INBOX', 'Drafts', 'Sent'] \
> >                                        and folder or re.sub(r'^', r'GMX.', folder))
> >
> > which is equivalent but easier to generalize?

I agree that the above is easier to read and generalize. I don't care
strongly enough to whip up a patch right now to improve our docs
though. I simply copied from our wiki pages what had been in there, so
people have had their chance at improving this already ;).
 
> Both should be "nametrans", right?

Well spotted. While the lines would work for folderfilter, the above
description makes it clear that this should be nametrans. Seems like
I'll have to whip up a patch in the end if no one beats me to it (feel
free to do so :)) 

> Does offlineimap require a new enough python that the example could be
>   folder if folder in ['INBOX', 'Drafts', 'Sent'] \
>   else re.sub(r'^', r'GMX.', folder)

We require 2.5 now.

Sebastian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/offlineimap-project/attachments/20110829/0781ac60/attachment.pgp>


More information about the OfflineIMAP-project mailing list