[imapfilter-devel] IMAPFilter 1.1-rc1
Lefteris Chatzibarbas
lefcha at hellug.gr
Sun Aug 7 20:32:07 EEST 2005
Hello,
Almost a year has passed by since imapfilter's last release... I
finally finished implementing the IMAP LIST/LSUB commands. Two new
commands are introduced for this purpose: list() and lsub(). The list()
command gets a list of the mailboxes available to the client, while the
lsub() command gets a list of the subscribed mailboxes. Additionally,
support for the IMAP CHILDREN (RFC 3348) and IMAP NAMESPACE (RFC 2342)
extensions, that are relating to the IMAP LIST/LSUB commands, has been
also implemented.
The syntax of the list() and lsub() commands is identical:
mailboxes, folders = list(account, folder)
mailboxes, folders = lsub(account, folder)
Where "mailboxes" and "folders" are tables containing strings, "account"
is an account table, and "folder" is a string, the hierarchy path or
folder to search for mailboxes.
Lets see how they work through some examples:
Consider the following folder tree in "myaccount":
- mbox1
+ dir1
- mbox2
- mbox3
- mbox4
+ dir2
- mbox5
- mbox6
+ dir3
- mbox7
- mbox8
- mbox9
Now lets see some commands and their results:
--
mailboxes, folders = list(myaccount, '')
print(unpack(mailboxes))
mbox1 mbox4 mbox9
print(unpack(folders))
dir1 dir2
--
mailboxes, folders = list(myaccount, 'dir1')
print(unpack(mailboxes))
mbox2 mbox3
print(unpack(folders))
--
mailboxes, folders = list(myaccount, 'dir2')
print(unpack(mailboxes))
mbox5 mbox6
print(unpack(folders))
dir3
--
mailboxes, folders = list(myaccount, 'dir2/dir3')
print(unpack(mailboxes))
mbox7 mbox8
print(unpack(folders))
--
Simple enough? No? Heh... Well, I'm here for questions...
Also, some new program options have been added: the "-e" option, that
allows execution of a string from the command line without loading a
configuration file (like Perl's "-e 'command'" option), and the "-i"
option that can be used to enter interactive mode (like Python's "-i"
option) after executing the configuration file or the command line.
Of course, there is a long list of internal improvements and some bug
fixes...
IMAPFilter version 1.1-rc1:
http://imapfilter.hellug.gr/source/imapfilter-1.1-rc1.tar.gz (36K)
http://imapfilter.hellug.gr/source/imapfilter-1.1-rc1.tar.gz.sig
MD5 (imapfilter-1.1-rc1.tar.gz) = 0d7db74a90fa6aa4a0b3edac93b05115
http://imapfilter.hellug.gr/source/imapfilter-1.1-rc1.tar.bz2 (31K)
http://imapfilter.hellug.gr/source/imapfilter-1.1-rc1.tar.bz2.sig
MD5 (imapfilter-1.1-rc1.tar.bz2) = 4ae9e75a760313fa76fed10e517f71ca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.hellug.gr/pipermail/imapfilter-devel/attachments/20050807/0219be33/attachment.pgp>
More information about the Imapfilter-devel
mailing list