[imapfilter-devel] some more patches and a question

Lefteris Chatzimparmpas lefcha at hellug.gr
Sat Oct 13 12:43:41 EEST 2007


On Thu, 11 Oct 2007 23:25:10 +0200, Tim Smith wrote:
> Hi everyone
> 
> After playing around some more I wonder why you changed the syntax for
> the "messages" table from:
> { 1, 5, 6 }
> to
> { [1] = true, [5] = true, [6] = true }
> 
> I preferred the old way, but maybe I just have to recognize that for
> my purposes I should skip the convenience wrapper (*.lua) and directly
> use the ifcore.* functions.

Hello,

This was done because it is simpler to handle sets when they are in
this format (the current one); it is easier to do unions,
intersections, etc. this way.  But by adding some more code you can make
it return old style tables.  I'm attaching a patch, a quick hack, that
does this...

> So much for the question, now comes the fun part:
> Attached are two patches, neither of them may be of any use for you
> (in the current form) but I thought you might be interested in what
> other people do with your software.
> 
> My own project is a FUSE filesystem implementation based on email;
> imapfilter (as a library) is used as my IMAP backend.
> 
> [...]

Wow! That's very interesting! Thanks for sharing this.

Although, this functionality is not very important for imapfilter now,
both the UIDPLUS extension and the MIME stuff would be useful for when
I plan to rewrite/refactor the backend of imapfilter as a library and
Lua modules.  Now that I think of it, the MIME body parts functionality
might be useful inside current imapfilter... Will see...

L.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-2.0.6-oldmessages.diff
Type: text/x-patch
Size: 2334 bytes
Desc: not available
URL: <http://lists.hellug.gr/pipermail/imapfilter-devel/attachments/20071013/5f04c37e/attachment.bin>


More information about the Imapfilter-devel mailing list