[imapfilter-devel] subfolders?

Lefteris Chatzimparmpas lefcha at hellug.gr
Thu Oct 4 20:08:33 EEST 2007


On Thu, 2007-10-04 at 17:34 +0200, Michael Skibbe wrote: 
> Hi,
> 
> sry for my "stupid" question but i'm a little bit confused from the config 
> file. i always used the "old" style but i want to rewrite with the "object 
> orientated" new syntax but i cannot find a possibility to move messages into 
> subfolders of INBOX.
> 
> i want to move some messages from Inbox to Inbox.Lists.imapfilter (for 
> example)
> 
> thanks for your answers
> Michael

Hello Michael,

No, it's not a "stupid" question, it's a bug, this should be clarified
in the documentation and some examples should be added...

You can do it like this:

  account.INBOX:move_messages(account['Lists/imapfilter'], results)

In case you wonder, you do not have to use "INBOX.Lists.imapfilter"
because with the namespace option, the prefix "INBOX." is added
automatically to the subfolder name and the delimiter '/' is changed to
'.' for mail servers that use this.  This is documented in the man
page...

So generally you do:

  myaccount.INBOX:move_messages(myaccount['folder/mailbox'], results)

... and if you want to do it the other way around:

  myaccount['folder/mailbox']:move_messages(myaccount.INBOX, results)

See, you can use characters like the directory delimiter '/' with the
format:

  account['mailbox']

... instead of:

  account.mailbox

Cheers,

Lefteris




More information about the Imapfilter-devel mailing list